aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd_db_ext.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-20 00:52:55 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-20 00:52:55 +0000
commit6a14b7ee4c222ae1bfe8e3cdd7db078fa41ed941 (patch)
tree1e02f7e4d155267a8511a0041bb1fa30685c552a /packages/spamd_db_ext.php
parente107c246f4be207d95c3d3907fd9802a1d494015 (diff)
downloadpfsense-packages-6a14b7ee4c222ae1bfe8e3cdd7db078fa41ed941.tar.gz
pfsense-packages-6a14b7ee4c222ae1bfe8e3cdd7db078fa41ed941.tar.bz2
pfsense-packages-6a14b7ee4c222ae1bfe8e3cdd7db078fa41ed941.zip
Add in blacklist items to spamd table on change
Diffstat (limited to 'packages/spamd_db_ext.php')
-rw-r--r--packages/spamd_db_ext.php2
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();
}