{"id":57,"date":"2004-05-18T17:09:41","date_gmt":"2004-05-18T22:09:41","guid":{"rendered":"http:\/\/192.168.33.66\/wp\/?p=57"},"modified":"2004-05-18T17:09:41","modified_gmt":"2004-05-18T22:09:41","slug":"promail-and-spamassassin","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=57","title":{"rendered":"promail and spamassassin"},"content":{"rendered":"<p>I use Webmin to configure Postfix, Webmin makes configuring Postfix even <br \/>\neasier. You can still hand edit the config files if you want, Webmin <br \/>\nleaves any hand editing alone.<\/p>\n<p>I then have SpamAssassin running in daemon mode using spamd\/spamc.<\/p>\n<p>In my \/etc\/procmail file I have the following entries:<\/p>\n<p><!--more--><\/p>\n<p>PATH=\/usr\/bin:\/bin:\/usr\/local\/bin:\/usr\/X11R6\/bin<br \/>\nMAILDIR=$HOME\/Maildir\/<br \/>\nDEFAULT=$MAILDIR<br \/>\nPMDIR=$HOME\/tmp<br \/>\nLOGFILE=\/root\/tmp\/log<br \/>\nUMASK=111<\/p>\n<p>:0fw<br \/>\n* < 256000<br \/>\n* !^X-Loop: spamchecked<br \/>\n | formail -A &#8220;X-Loop: spamchecked&#8221; | spamc <br \/>\n:0<br \/>\n* ^X-Spam-Level: \\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*<br \/>\n\/dev\/null<\/p>\n<p>:0<br \/>\n* ^X-Spam-Status: Yes<br \/>\n\/home\/spam\/Maildir\/<\/p>\n<p>The first rule doesn&#8217;t Spam check the mail if it is over 256k, doesn&#8217;t <br \/>\ncheck it if it already has been checked (indicated by the X-Loop), adds <br \/>\nin the X-Loop, and then checks it for Spam.<\/p>\n<p>The second rule deletes the mail if it gets a score of 15 or above. Be <br \/>\ncareful with this one if you do it for a Real Estate office. The users <br \/>\nthat mail them are not very bright and they have lots of info about <br \/>\nMortgages etc. One legit e-mail scored 14.6.<\/p>\n<p>The third rule puts the mail to the IMAP mailbox of the user &#8216;spam&#8217;, if <br \/>\nit is considered Spam. Do not use !spam@localhost, that will cause it to <br \/>\nloop.<\/p>\n<p>The \/etc\/procmail file (note there is no dot when it is in \/etc) is the <br \/>\nglobal filter that everything will go through first. The users can still <br \/>\nhave their own ~\/.procmail files to do their own filtering as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use Webmin to configure Postfix, Webmin makes configuring Postfix even easier. You can still hand edit the config files if you want, Webmin leaves any hand editing alone. I then have SpamAssassin running in daemon mode using spamd\/spamc. In &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=57\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":0,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}