diff options
Diffstat (limited to 'config/spamd')
-rw-r--r-- | config/spamd/spamd.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/spamd/spamd.inc b/config/spamd/spamd.inc index dffdb461..7dc1ecdc 100644 --- a/config/spamd/spamd.inc +++ b/config/spamd/spamd.inc @@ -202,7 +202,7 @@ function spamd_generate_rules($type) { $natrules .= "table <whitelist> persist\n"; $natrules .= "table <blacklist> persist\n"; $natrules .= "table <spamd> persist\n"; - if(file_exists("/var/db/whitelist.txt")) { + if (file_exists("/var/db/whitelist.txt")) { $natrules .= "table <spamd-white> persist file \"/var/db/whitelist.txt\"\n"; } @@ -212,11 +212,11 @@ function spamd_generate_rules($type) { $spamdconfig = $config['installedpackages']['spamdsettings']['config']; } - if($spamdconfig) { + if ($spamdconfig) { $nextmta = $spamdconfig['nextmta']; $spamdbinds = explode(',', $spamdconfig['spamdbinds_array']); if (is_array($spamdbinds)) { - foreach($spamdbinds as $interface) { + foreach ($spamdbinds as $interface) { $wanif = get_real_interface($interface); if (!isset($wanif)) { continue; @@ -224,7 +224,7 @@ function spamd_generate_rules($type) { $natrules .= "rdr pass on {$wanif} proto tcp from <blacklist> to port smtp -> 127.0.0.1 port spamd\n"; $natrules .= "rdr pass on {$wanif} proto tcp from <spamd> to port smtp -> 127.0.0.1 port spamd\n"; $natrules .= "rdr pass on {$wanif} proto tcp from !<spamd-white> to port smtp -> 127.0.0.1 port spamd\n"; - if($nextmta <> "") { + if ($nextmta <> "") { $natrules .= "rdr pass on {$wanif} proto tcp from <spamd-white> to port smtp -> {$nextmta} port smtp\n"; } } |