From 150fa547f33ecd00a61d431151a43cd5c79376a7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 27 Jan 2006 23:57:41 +0000 Subject: Update spamd related rules --- etc/inc/filter.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'etc/inc') diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 59fedfd..f03519d 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -543,8 +543,14 @@ function filter_nat_rules_generate() { $natrules .= "#SSH Lockout Table\n"; $natrules .= "table persist\n\n"; - $natrules .= "\n# spam table \n"; - $natrules .= "table persist\n\n"; + /* is SPAMD insalled? */ + if (is_package_installed("spamd") == 1) { + $natrules .= "\n# spam table \n"; + $natrules .= "table persist\n"; + $natrules .= "table persist\n"; + $natrules .= "rdr pass on {$wanif} proto tcp from to port smtp -> 127.0.0.1 port spamd\n"; + $natrules .= "rdr pass on {$wanif} proto tcp from ! to port smtp -> 127.0.0.1 port spamd\n"; + } /* load balancer anchor */ $natrules .= "\n# Load balancing anchor - slbd updates\n"; -- cgit v1.1