diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-29 00:36:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-29 00:36:19 +0000 |
commit | f42593287dae5e6d667e300b123e517851c62ee6 (patch) | |
tree | b9748038ad18f003a2f0ccf1a3034fd784bf9852 /packages/spamd.inc | |
parent | 97e55208dfe2c84ea3a4db9f5c46e5ef55c4590b (diff) | |
download | pfsense-packages-f42593287dae5e6d667e300b123e517851c62ee6.tar.gz pfsense-packages-f42593287dae5e6d667e300b123e517851c62ee6.tar.bz2 pfsense-packages-f42593287dae5e6d667e300b123e517851c62ee6.zip |
Seperate 25:5:864 into three boxes passtime, greyexp and whiteexp
Diffstat (limited to 'packages/spamd.inc')
-rw-r--r-- | packages/spamd.inc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/packages/spamd.inc b/packages/spamd.inc index 5e5e33e4..6f8b6d16 100644 --- a/packages/spamd.inc +++ b/packages/spamd.inc @@ -37,7 +37,9 @@ function sync_package_spamd() { fwrite($fd, $spamd['ip'] . "\n"); } fclose($fd); - $passtime = "5:4:864"; + $passtime = "5"; + $greyexp = "4"; + $whiteexp = "864"; $identifier = ""; $greylisting = " -g"; $maxcon = ""; @@ -66,12 +68,19 @@ function sync_package_spamd() { $window = " -w " . $ss['window']; if($ss['replysmtperror'] <> "") $replysmtperror = " -r " . $ss['replysmtperror']; + if($ss['passtime'] <> "") + $passtime = $ss['passtime']; + if($ss['greyexp'] <> "") + $greyexp = $ss['greyexp']; + if($ss['whiteexp'] <> "") + $whiteexp = $ss['whiteexp']; } } + $greyparms = " -G {$passtime}:{$greyexp}:{$whiteexp}"; $start = "/usr/local/sbin/spamd-setup &\n" . "/sbin/pflogd &\n" . "/sbin/mount_fdescfs fdescfs /dev/fd\n" . - "/usr/local/libexec/spamd {$passtime}{$identifier}{$greylisting}{$maxcon}{$maxblack}{$window}{$replysmtperror} -b 127.0.0.1 &\n" . + "/usr/local/libexec/spamd {$greyparms}{$identifier}{$greylisting}{$maxcon}{$maxblack}{$window}{$replysmtperror} -b 127.0.0.1 &\n" . "/usr/local/libexec/spamlogd\n"; $stop = "/usr/bin/killall spamd-setup\n" . "/usr/bin/killall spamlogd\n" . |