{"id":2957,"date":"2011-09-06T22:06:33","date_gmt":"2011-09-06T14:06:33","guid":{"rendered":"https:\/\/www.icocean.com\/wp\/?p=2957"},"modified":"2013-12-25T20:24:30","modified_gmt":"2013-12-25T12:24:30","slug":"postfix-config-for-anti-spam","status":"publish","type":"post","link":"https:\/\/www.icocean.com\/blog\/?p=2957","title":{"rendered":"postfix config for anti-spam"},"content":{"rendered":"<p>config in main.cf (postfix > 2.3)<\/p>\n<p>smtpd_client_restrictions=<br \/>\n permit_sasl_authenticated<br \/>\n reject_unknown_client_hostname<br \/>\n reject_rbl_client cblless.anti-spam.org.cn<br \/>\n reject_rbl_client zen.spamhaus.org<br \/>\n reject_rbl_client bl.spamcop.net<\/p>\n<p>##Note: specify &#8220;smtpd_helo_required = yes&#8221; to fully enforce this restriction (without &#8220;smtpd_helo_required = yes&#8221;, a client can simply skip smtpd_helo_restrictions by not sending HELO or EHLO).##<br \/>\nsmtpd_helo_required = yes<!--more--><br \/>\nsmtpd_helo_restrictions=<br \/>\n reject_invalid_helo_hostname<br \/>\n reject_non_fqdn_helo_hostname<br \/>\n reject_unknown_helo_hostname<br \/>\n reject_rhsbl_helo dbl.spamhaus.org<\/p>\n<p>smtpd_sender_restrictions=<br \/>\n reject_non_fqdn_sender<br \/>\n reject_unknown_sender_domain<br \/>\n reject_rhsbl_sender dbl.spamhaus.org<br \/>\n check_sender_access hash:\/etc\/postfix\/spam-email<\/p>\n<p>smtpd_recipient_restrictions=<br \/>\n reject_non_fqdn_recipient<br \/>\n reject_unauth_destination<br \/>\n reject_unknown_recipient_domain<br \/>\n reject_rhsbl_recipient dbl.spamhaus.org<br \/>\n check_recipient_access hash:\/etc\/postfix\/spam-email<\/p>\n","protected":false},"excerpt":{"rendered":"<p>config in main.cf (postfix > 2.3) smtpd_client_restrict <a href='https:\/\/www.icocean.com\/blog\/?p=2957' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-2957","post","type-post","status-publish","format-standard","hentry","category-email","category-31-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2957"}],"version-history":[{"count":5,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2957\/revisions"}],"predecessor-version":[{"id":4026,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2957\/revisions\/4026"}],"wp:attachment":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}