From 6a14b7ee4c222ae1bfe8e3cdd7db078fa41ed941 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 20 Mar 2006 00:52:55 +0000 Subject: Add in blacklist items to spamd table on change --- packages/spamd_db_ext.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/spamd_db_ext.php') diff --git a/packages/spamd_db_ext.php b/packages/spamd_db_ext.php index 6eec5bbd..d931e580 100644 --- a/packages/spamd_db_ext.php +++ b/packages/spamd_db_ext.php @@ -172,6 +172,7 @@ function add_to_blacklist($srcip) { $fd = fopen("/var/db/blacklist.txt", "a"); fwrite($fd, "{$srcip}\n"); fclose($fd); + mwexec("/sbin/pfctl -q -t spamd -T add -f /var/db/blacklist.txt"); config_unlock(); } @@ -184,6 +185,7 @@ function delete_from_blacklist($srcip) { fwrite($fd, "{$srcip}\n"); } fclose($fd); + mwexec("/sbin/pfctl -q -t spamd -T add -f /var/db/blacklist.txt"); config_unlock(); } -- cgit v1.2.3