diff options
Diffstat (limited to 'packages/spamd_db_ext.php')
-rw-r--r-- | packages/spamd_db_ext.php | 2 |
1 files changed, 2 insertions, 0 deletions
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(); } |