<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Dear Raphael,</div><div><br data-mce-bogus="1"></div><div>Maybe you can try building a mail filtering gateway that filters your emails before forwarding them to your mail server. In the mail filtering gateway you can run:<br><br>postfix as your MTA and ensure you do spf checking.<br>postgrey which does greylisting.<br>clamav which does virus scanning.<br>spamassassin which scores emails and identifies spam.<br>MailScanner which is a Powerful virus/spam scanning framework for mail gateways.<br><br>In addition you can try:</div><div><br>pyzor which is a Collaborative, networked system to detect and block spam.<br>razor-agents which is a Distributed, collaborative, spam detection and filtering network.</div><div><br></div><div data-marker="__SIG_PRE__">Kind regards,<br>Hezron Mwangi.<br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"David Njuki" <njukey@gmail.com><br><b>To: </b>afnog@afnog.org<br><b>Sent: </b>Wednesday, 21 December, 2016 18:39:56<br><b>Subject: </b>Re: [afnog] I am getting porn spam emails<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div dir="ltr"><div class="gmail_extra"><span class="gmail-im" style="font-size: 12.800000190734863px;" data-mce-style="font-size: 12.800000190734863px;"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: #cccccc; border-left-style: solid; padding-left: 1ex;" data-mce-style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: #cccccc; border-left-style: solid; padding-left: 1ex;"><span class="gmail-m_-8568858263233392987gmail-">> I am getting porn spam mail everyday in my mail server. Each email<br>> are from different email addresses and domains. I have tried<br>> creating a filter, and I have tried reporting them as spam. I need<br>> to know how to stop receiving them.<br><br></span>There is no perfect solution against spam. To avoid *reading* it, the<br>best solution is a bayesian filter that you train. I use bogofilter<br>and I'm very happy with it (very few false positives and few false<br>negatives). But if you want to avoir *receiving* spam (because you<br>want to save not only human attention, but also bandwidth), this is<br>more complicated. Things that can help:<br><br>* reputable black lists. I say "reputable" because many lists are<br>badly managed. (I use mostly two Spamhaus lists, <a href="http://sbl-xbl.spamhaus.org/" rel="noreferrer" target="_blank">sbl-xbl.spamhaus.org</a><br>and <a href="http://xbl-xbl.spamhaus.org/" rel="noreferrer" target="_blank">xbl-xbl.spamhaus.org</a>.)<br><br>* greylisting (in my experience, it kills half of the spam before it<br>reaches your email server (RFC 6647 is a good reading).  Some people<br>will claim it is useless because the spammers will adapt. Let them<br>trust their theory, I trust my practice.<br></blockquote><br></span><div style="font-size: 12.800000190734863px;" data-mce-style="font-size: 12.800000190734863px;">As an addition to greylisting, also make sure you postfix does sender verification at smtp time. Many spammers fail this test. </div><div style="font-size: 12.800000190734863px;" data-mce-style="font-size: 12.800000190734863px;"><br></div><div style="font-size: 12.800000190734863px;" data-mce-style="font-size: 12.800000190734863px;">Check how to enable here <a href="http://www.postfix.org/ADDRESS_VERIFICATION_README.html#sender_always" target="_blank">http://www.postfix.org/ADDRESS_VERIFICATION_README.html#sender_always</a></div>
</div></div>
<br>_______________________________________________<br>afnog mailing list<br>https://www.afnog.org/mailman/listinfo/afnog<br></div></div></body></html>