{"id":152,"date":"2008-01-04T13:17:38","date_gmt":"2008-01-03T21:17:38","guid":{"rendered":"http:\/\/blog.longwin.com.tw\/?p=152"},"modified":"2008-01-04T13:17:38","modified_gmt":"2008-01-03T21:17:38","slug":"mailscanner-spamassassin-clamav","status":"publish","type":"post","link":"https:\/\/blog.fhl.net\/?p=152","title":{"rendered":"MailScanner+spamassassin+clamav \u5c0f\u6284"},"content":{"rendered":"<p>\n\u7531 http:\/\/www.mailscanner.info\/downloads.html \u4e0b\u8f09 mailscanner\n<\/p>\n<p>\nyum install -y clamav clamav-update perl-Parse-RecDescent perl-Inline\n<\/p>\n<p>\ntar zxvf MailScanner-4.66.5-2.rpm.tar.g &nbsp;\n<\/p>\n<p>\n&nbsp;cd MailScanner-4.66.5-2<br \/>\n&nbsp;.\/install.sh\n<\/p>\n<p>\nvi \/etc\/MailScanner\/MailScanner.conf<\/p>\n<p>%org-name% = \u8f38\u5165\u4f60\u559c\u6b61\u7684\u540d\u7a31\u4f46\u4e0d\u80fd\u6709\u4efb\u4f55\u7a7a\u767d<br \/>\nFile Command = \/usr\/bin\/file<br \/>\nVirus Scanners = clamavmodule #\u53ef\u4ee5\u5148\u7528clamav\u8a66\u8a66\u3002<br \/>\nMonitors for ClamAV Updates = \/usr\/local\/share\/clamav\/*.cvd<br \/>\nDetailed Spam Report = yes<br \/>\nInclude Scores In SpamAssassin Report = yes<br \/>\nAlways Include SpamAssassin Report = yes<br \/>\nNotify Senders = no<br \/>\nNotify Senders Of Viruses = no<br \/>\nNotify Senders Of Blocked Filenames Or Filetypes = no<br \/>\nNotify Senders Of Other Blocked Content = no<br \/>\nScanned Modify Subject = end #\u6bcf\u4e00\u5c01\u88ab\u6383\u63cf\u904e\u7684\u4fe1\uff0c\u4e3b\u65e8\u90fd\u6703\u52a0\u4e00\u6bb5{Scanned}<br \/>\nScanned Subject Text = {Scanned} #\u53ef\u4ee5\u662f\u4e2d\u6587<br \/>\nSpam Subject Text = {Spam?}#\u53ef\u4ee5\u662f\u4e2d\u6587<br \/>\nHigh Scoring Spam Subject Text = {Garbage?}#\u53ef\u4ee5\u662f\u4e2d\u6587<br \/>\nSpam Checks = yes<br \/>\nUse SpamAssassin = yes\n<\/p>\n<p>\nRequired SpamAssassin Score = 6<br \/>\nHigh SpamAssassin Score = 10<br \/>\nSpam Actions = deliver<br \/>\nHigh Scoring Spam Actions = store<br \/>\nSpamAssassin Site Rules Dir = \/etc\/mail\/spamassassin<br \/>\nSpamAssassin Default Rules Dir = \/usr\/share\/spamassassin<br \/>\nDebug SpamAssassin = no\n<\/p>\n<p>\n#\u6ce8\u610f Debug SpamAssassin \u8a2d\u5b9a\u6210 yes \u6642\uff0c\u6703\u9020\u6210\u7cfb\u7d71\u8ca0\u8377\u5927\u589e\uff0c\u9664\u975e\u8981debug \u4e0d\u8981\u8a2d\u5b9a\u70ba yes\n<\/p>\n<p>\n<br \/>\n\/etc\/init.d\/sendmail stop<br \/>\n&nbsp;\/sbin\/chkconfig &#8211;level 3 MailScanner on<br \/>\n\/sbin\/chkconfig &#8211;level 3 sendmail off<br \/>\n\/etc\/init.d\/MailScanner start<\/p>\n<p>vi \/etc\/sysconfig\/freshclam<br \/>\n#FRESHCLAM_DELAY=disabled-warn&nbsp; # REMOVE ME<!--more--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531 http:\/\/www.mailscanner.info\/downloads.html \u4e0b\u8f09 mailsca &hellip; <a href=\"https:\/\/blog.fhl.net\/?p=152\" class=\"more-link\">\u95b1\u8b80\u5168\u6587 <span class=\"screen-reader-text\">MailScanner+spamassassin+clamav \u5c0f\u6284<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-152","post","type-post","status-publish","format-standard","hentry","category-e"],"_links":{"self":[{"href":"https:\/\/blog.fhl.net\/index.php?rest_route=\/wp\/v2\/posts\/152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fhl.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fhl.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fhl.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fhl.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=152"}],"version-history":[{"count":0,"href":"https:\/\/blog.fhl.net\/index.php?rest_route=\/wp\/v2\/posts\/152\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.fhl.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fhl.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fhl.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}