diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-15 03:01:21 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-15 03:01:21 +0000 |
commit | e8f994f8c0f1c6272329e99ed0df3c628cb40b20 (patch) | |
tree | e8c8aa35ba3b88cab783d2d2ae9cab79e9f35777 | |
parent | 6cf002d1d7c286f0acea6aae08848fe5f1de590d (diff) | |
download | pfsense-packages-e8f994f8c0f1c6272329e99ed0df3c628cb40b20.tar.gz pfsense-packages-e8f994f8c0f1c6272329e99ed0df3c628cb40b20.tar.bz2 pfsense-packages-e8f994f8c0f1c6272329e99ed0df3c628cb40b20.zip |
* Add some more commands for debugging
* Send HUP to spamlogd after we do our spammer assault
-rw-r--r-- | packages/spamd_verify_to_email_addresses.php | 11 |
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 |