diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-07 01:59:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-07 01:59:18 +0000 |
commit | 9f64b0d09640533d9d5c881170fd2e94e69af426 (patch) | |
tree | 334f68de054bd5cc1de7e6b5833e2d7f851b7dae /packages/spamd.inc | |
parent | 7c168b308a5fe31ee9cb6cad6d4061ce5649609a (diff) | |
download | pfsense-packages-9f64b0d09640533d9d5c881170fd2e94e69af426.tar.gz pfsense-packages-9f64b0d09640533d9d5c881170fd2e94e69af426.tar.bz2 pfsense-packages-9f64b0d09640533d9d5c881170fd2e94e69af426.zip |
* Do not add ips to spamtrap, it really wants an email address
* Add blacklist.txt and set it up as a blacklist in SpamD
* Use new blacklist.txt when trapping $srcip
Diffstat (limited to 'packages/spamd.inc')
-rw-r--r-- | packages/spamd.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/spamd.inc b/packages/spamd.inc index 2edcb129..3ef1b979 100644 --- a/packages/spamd.inc +++ b/packages/spamd.inc @@ -44,6 +44,10 @@ function sync_package_spamd() { fwrite($fd, "whitelist:\\\n"); fwrite($fd, "\t:white:\\\n"); fwrite($fd, "\t:file=/var/db/whitelist.txt\n"); + fwrite($fd, ":\n\n# begin of blacklist\n"); + fwrite($fd, "blacklist:\\\n"); + fwrite($fd, "\t:black:\\\n"); + fwrite($fd, "\t:file=/var/db/blacklist.txt\n"); /* loop through each item and write out its configuration */ fwrite($fd, "\n# begin of user created entries\n"); if($config['installedpackages']['spamdsources']['config'] != "") { @@ -169,6 +173,7 @@ function sync_spamd_config_to_backup() { function custom_php_install_command() { global $config, $g; system("touch /var/db/whitelist.txt"); + system("touch /var/db/blacklist.txt"); sync_package_spamd(); } |