From 6a1dc9798447b0a5b01985e6cb78fd571daf2347 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 20 Mar 2006 04:30:36 +0000 Subject: * Remove old version * Lock during adding to blacklist.txt --- packages/spamd_verify_to_address.php | 2 + packages/spamd_verify_to_email_addresses.php | 94 ---------------------------- 2 files changed, 2 insertions(+), 94 deletions(-) delete mode 100644 packages/spamd_verify_to_email_addresses.php diff --git a/packages/spamd_verify_to_address.php b/packages/spamd_verify_to_address.php index 5fa4a2ca..1ff4b303 100644 --- a/packages/spamd_verify_to_address.php +++ b/packages/spamd_verify_to_address.php @@ -109,7 +109,9 @@ foreach($grey_hosts as $grey) { if($debug) echo "/usr/local/sbin/spamdb -a \"<$email_to>\" -T\n"; exec("/usr/local/sbin/spamdb -a \"<$email_to>\" -T"); + config_lock(); system("echo $server_ip >> /var/db/blacklist.txt"); + config_unlock(); $result = mwexec("/usr/local/sbin/spamdb -a $server_ip -t"); } else { if($debug) diff --git a/packages/spamd_verify_to_email_addresses.php b/packages/spamd_verify_to_email_addresses.php deleted file mode 100644 index ad4ec36b..00000000 --- a/packages/spamd_verify_to_email_addresses.php +++ /dev/null @@ -1,94 +0,0 @@ -","",$grey_lower); - $grey_split = split("\|", $grey_lower); - $email_from = strtolower($grey_split[2]); - $email_to = strtolower($grey_split[3]); - $server_ip = strtolower($grey_split[1]); - if($debug) - echo "Testing $email_from | $email_to \n"; - if (in_array($email_to, $valid_list)) { - if($debug) - echo "$email_to is in the valid list\n"; - } else { - /* spammer picked the wrong person to mess with */ - if($server_ip) { - 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."; - } - if($debug) - echo "Script result code: {$result}\n"; - } -} - -mwexec("killall -HUP spamlogd"); - -if($debug) { - system("spamdb | grep TRAPPED | wc -l"); - system("spamdb | grep SPAMTRAP | wc -l"); -} - -?> \ No newline at end of file -- cgit v1.2.3