<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SPAMD - non WAN interface]]></title><description><![CDATA[<p dir="auto">Hi folks  :)</p>
<p dir="auto">I've been running pfsense (2) as a VM on my lan to act as a gateway between a couple of networks. It's been great.</p>
<p dir="auto">I run a mail server and have quite a complicated setup with scripting, iptables and labrea to identify and tarpit spammers. I'd like to replace this with SPAMD.</p>
<p dir="auto">Crap network diagram follows:</p>
<p dir="auto">(not used)<br />
                          |<br />
                        WAN<br />
                          |<br />
                        EM2<br />
  DMZ –----EM1 PFSENSE  EM0 ----- LAN (.4)---------GATEWAY(.1)-----&lt;&lt;&lt;--EVIL SPAMMERS FROM THE INTERNETS</p>
<hr />
<p dir="auto">I thought I'd be able to set up SPAMD on PFSENSE &amp; forward SMTP (25) from the gateway to (8025) on PFSENSE ... get SPAMD to do the dirty work and then eventually whitelist and forward mail to a mailscanner on the LAN.</p>
<p dir="auto">From what I can see - SPAMD listens on all interfaces and so does SPAMLOGD. When I connect on 8025 I get the staggered connection (love it) but I can never get anything whitelisted and forwarded to to next mailhost.</p>
<p dir="auto">In addition - if I import a blacklist (like Okean) it never shows them added to the blacklist file or displays them on the web page. I restart the service from the CLI and it can see and count the number of entries in the Okean blacklist but they never get added.</p>
<p dir="auto">There are two things that don't appear to work in this configuration:<br />
1 - I don't think that the associated forwarding rules work on anything other than the WAN interface. A quick check of /tmp/rules.debug seems to show this:</p>
<pre><code># spam table 
table &lt;whitelist&gt;persist
table &lt;blacklist&gt;persist
table &lt;spamd&gt;persist
table &lt;spamd-white&gt;persist file "/var/db/whitelist.txt"
rdr pass on em2 proto tcp from &lt;blacklist&gt;to port smtp -&gt; 127.0.0.1 port spamd
rdr pass on em2 proto tcp from &lt;spamd&gt;to port smtp -&gt; 127.0.0.1 port spamd
rdr pass on em2 proto tcp from ! &lt;spamd-white&gt;to port smtp -&gt; 127.0.0.1 port spamd
rdr pass on em2 proto tcp from &lt;spamd-white&gt;to port smtp -&gt; 192.168.1.76 port smtp&lt;/spamd-white&gt;&lt;/spamd-white&gt;&lt;/spamd&gt;&lt;/blacklist&gt;&lt;/spamd-white&gt;&lt;/spamd&gt;&lt;/blacklist&gt;&lt;/whitelist&gt; 
``` 

So I can see that onward forwarding will only happen from EM2 (WAN)

2 - Whitelist and blacklist are not getting updated. I can't work out why.

I can't find any spamd log file created (anywhere) either.

So really - I'm curious if anyone has managed to set this up to run on anything other than the WAN interface (if so - how) &amp; whether anyone knows why black/whitelists are not updating.

Does this just work out of the box for people running it on the WAN interface?

Any advice would be appreciated. Please be gentle  :P</code></pre>
]]></description><link>https://forum.netgate.com/topic/38890/spamd-non-wan-interface</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 05:47:06 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/38890.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 05 Nov 2011 15:12:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SPAMD - non WAN interface on Mon, 07 Nov 2011 13:48:05 GMT]]></title><description><![CDATA[<p dir="auto">Marcelloc - thanks for that - I really appreciate it. I'll check it out.</p>
<p dir="auto">SPAMD should do what I want but getting it configured nicely is a pain. I've found that some of the spammers have already overrun the grey listing so I switched to black listing instead. It seems that I need to manually whitelist valid incoming connections using the SPAMD whitelist tab rather than the SPAMD Database tab - whitelist buttons.</p>
<p dir="auto">I think I see the difference in the mechanics at play here. But without a method for working out who's connecting (other than tailing the damn logs and checking the IP addresses) how am I supposed to know what incoming mail to whitelist?</p>
<p dir="auto">SO - your option may well turn out to be the best choice.</p>
]]></description><link>https://forum.netgate.com/post/303360</link><guid isPermaLink="true">https://forum.netgate.com/post/303360</guid><dc:creator><![CDATA[dannyboy1121]]></dc:creator><pubDate>Mon, 07 Nov 2011 13:48:05 GMT</pubDate></item><item><title><![CDATA[Reply to SPAMD - non WAN interface on Mon, 07 Nov 2011 13:14:07 GMT]]></title><description><![CDATA[<p dir="auto">I mean <strong>postfix antispam and relay package</strong> for pfsense 2.0.</p>
<p dir="auto">It's postfix 2.8.5 + SPF + RBL + postscreen</p>
<p dir="auto">Postscreen enables greylists on postfix.</p>
]]></description><link>https://forum.netgate.com/post/303351</link><guid isPermaLink="true">https://forum.netgate.com/post/303351</guid><dc:creator><![CDATA[marcelloc]]></dc:creator><pubDate>Mon, 07 Nov 2011 13:14:07 GMT</pubDate></item><item><title><![CDATA[Reply to SPAMD - non WAN interface on Mon, 07 Nov 2011 11:36:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marcelloc">@<bdi>marcelloc</bdi></a>:</p>
<blockquote>
<p dir="auto">Spamd has some cool features, but did you tried postfix package?</p>
<p dir="auto">I did many improvements to this package and it realy keeps trash away.</p>
<p dir="auto">It may reduce your mailscanner load about 300%.</p>
<p dir="auto">I'm suggesting it because i did not understood if spamd worked for you or not.</p>
</blockquote>
<p dir="auto">Hi there - yes I also use postfix as my MTA. Infact - mail comes in now via SPAMD then gets passed to MAILSCANNER followed by a dedicated mailserver with postfix.</p>
<p dir="auto">SPAMD is grey-listing and I can whitelist servers if I need to. I've already seen a massive drop in hits to my mailscanner.</p>
<p dir="auto">I can't seem to blacklist any servers though. I understand with SPAMD that when you assign something in the DB to whitelist or blacklist from the web page - you have to refresh the page to see the change - I totally get that, but only the whitelist function seems to do anything. I suspect this has something to do with the difference between greylist and blacklist operation but I've yet to RTFM so that's just a guess.</p>
]]></description><link>https://forum.netgate.com/post/303332</link><guid isPermaLink="true">https://forum.netgate.com/post/303332</guid><dc:creator><![CDATA[dannyboy1121]]></dc:creator><pubDate>Mon, 07 Nov 2011 11:36:33 GMT</pubDate></item><item><title><![CDATA[Reply to SPAMD - non WAN interface on Mon, 07 Nov 2011 06:17:36 GMT]]></title><description><![CDATA[<p dir="auto">Spamd has some cool features, but did you tried postfix package?</p>
<p dir="auto">I did many improvements to this package and it realy keeps trash away.</p>
<p dir="auto">It may reduce your mailscanner load about 300%.</p>
<p dir="auto">I'm suggesting it because i did not understood if spamd worked for you or not.</p>
]]></description><link>https://forum.netgate.com/post/303308</link><guid isPermaLink="true">https://forum.netgate.com/post/303308</guid><dc:creator><![CDATA[marcelloc]]></dc:creator><pubDate>Mon, 07 Nov 2011 06:17:36 GMT</pubDate></item><item><title><![CDATA[Reply to SPAMD - non WAN interface on Sun, 06 Nov 2011 11:47:43 GMT]]></title><description><![CDATA[<p dir="auto">Just for the record (in case anyone else looks in to this)</p>
<p dir="auto">I ended up reconfiguring my network to fit SPAMD.</p>
<p dir="auto">The PFSENSE VM WAN now connects to the internet and acts as a gateway for the entire LAN - rather than just being another LAN client.</p>
<p dir="auto">SPAMD kicked in straight away.</p>
<p dir="auto">Sometimes you have to accept that things won't work if your setup is arse about face.</p>
]]></description><link>https://forum.netgate.com/post/303241</link><guid isPermaLink="true">https://forum.netgate.com/post/303241</guid><dc:creator><![CDATA[dannyboy1121]]></dc:creator><pubDate>Sun, 06 Nov 2011 11:47:43 GMT</pubDate></item></channel></rss>