aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/spamd_verify_to_email_addresses.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/spamd_verify_to_email_addresses.php b/packages/spamd_verify_to_email_addresses.php
index 6299d4a1..ad4ec36b 100644
--- a/packages/spamd_verify_to_email_addresses.php
+++ b/packages/spamd_verify_to_email_addresses.php
@@ -73,8 +73,8 @@ foreach($grey_hosts as $grey) {
} else {
/* spammer picked the wrong person to mess with */
if($server_ip) {
- echo "/usr/local/sbin/spamdb -T -a $server_ip\n";
- $result = exec("/usr/local/sbin/spamdb -T -a $server_ip\n");
+ echo "/usr/local/sbin/spamdb -a $server_ip -t\n";
+ $result = mwexec("/usr/local/sbin/spamdb -a $server_ip -t");
} else {
if($debug)
echo "Could not locate server ip address.";
@@ -84,4 +84,11 @@ foreach($grey_hosts as $grey) {
}
}
+mwexec("killall -HUP spamlogd");
+
+if($debug) {
+ system("spamdb | grep TRAPPED | wc -l");
+ system("spamdb | grep SPAMTRAP | wc -l");
+}
+
?> \ No newline at end of file