aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd_rules.php
diff options
context:
space:
mode:
Diffstat (limited to 'packages/spamd_rules.php')
-rw-r--r--packages/spamd_rules.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/spamd_rules.php b/packages/spamd_rules.php
index 4d2b2de6..27ac850a 100644
--- a/packages/spamd_rules.php
+++ b/packages/spamd_rules.php
@@ -26,8 +26,9 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
-
+$wanif = get_real_wan_interface();
$anchor = "natearly";
-$rule = "rdr pass inet proto tcp from <spamd> to any port smtp -> 127.0.0.1 port 8025";
+$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";
$label = "spamd";
-add_rule_to_anchor($anchor, $rule, $label); \ No newline at end of file
+add_rule_to_anchor($anchor, $rule, $label);