diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-20 03:29:26 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-20 03:29:26 +0000 |
commit | 470faf7e296cb5b9d3d0b060ae76e293d417d2ca (patch) | |
tree | f72399dc325df1b5196aefff0c43ae9518548f39 /packages/spamd_db.php | |
parent | 8af676f1665a0c5a4fcff2497d36e1f1b4893a0a (diff) | |
download | pfsense-packages-470faf7e296cb5b9d3d0b060ae76e293d417d2ca.tar.gz pfsense-packages-470faf7e296cb5b9d3d0b060ae76e293d417d2ca.tar.bz2 pfsense-packages-470faf7e296cb5b9d3d0b060ae76e293d417d2ca.zip |
* Delete ips from tables during delete calls
* Replace tables if needed after deleting
Diffstat (limited to 'packages/spamd_db.php')
-rw-r--r-- | packages/spamd_db.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php index 3189f0f5..4ce29cd8 100644 --- a/packages/spamd_db.php +++ b/packages/spamd_db.php @@ -59,13 +59,16 @@ if($_GET['action'] or $_POST['action']) { if($action == "whitelist") { exec("/usr/local/sbin/spamdb -d {$srcip}"); exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -T"); - exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -t"); + exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -t"); + mwexec("/sbin/pfctl -q -t blacklist -T replace -f /var/db/blacklist.txt"); exec("echo spamdb -a {$srcip} > /tmp/tmp"); exec("/usr/local/sbin/spamdb -a {$srcip}"); } else if($action == "delete") { exec("/usr/local/sbin/spamdb -d {$srcip}"); exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -T"); exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -t"); + mwexec("/sbin/pfctl -q -t spamd -T delete $srcip"); + mwexec("/sbin/pfctl -q -t blacklist -T replace -f /var/db/blacklist.txt"); } else if($action == "spamtrap") { exec("/usr/local/sbin/spamdb -d {$srcip}"); exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -T"); |