{"id":745,"date":"2017-05-03T23:51:39","date_gmt":"2017-05-03T20:51:39","guid":{"rendered":"https:\/\/helia.ee\/koolitus\/?page_id=745"},"modified":"2017-05-03T23:51:39","modified_gmt":"2017-05-03T20:51:39","slug":"debian-8-postfix-blacklist-or-reject-an-email-address","status":"publish","type":"page","link":"https:\/\/helia.ee\/koolitus\/?page_id=745","title":{"rendered":"Debian 8 &#8211; Postfix blacklist or reject an email address"},"content":{"rendered":"<header class=\"entry-header\">\n<h1 class=\"entry-title\">Postfix blacklist or reject an email address<\/h1>\n<p><span class=\"posted-on\"><span class=\"screen-reader-text\">Posted on<\/span><a href=\"https:\/\/www.cyberciti.biz\/faq\/howto-blacklist-reject-sender-email-address\/\" rel=\"bookmark\"><time class=\"entry-date published\" datetime=\"2007-07-04T18:44:20+00:00\">July 4, 2007<\/time><\/a><\/span><span class=\"cat-links\">in <span class=\"screen-reader-text\">Categories<\/span><a href=\"https:\/\/www.cyberciti.biz\/faq\/category\/centos\/\" rel=\"tag\">CentOS<\/a>, <a href=\"https:\/\/www.cyberciti.biz\/faq\/category\/email-servers\/\" rel=\"tag\">EMail Servers<\/a>, <a href=\"https:\/\/www.cyberciti.biz\/faq\/category\/linux\/\" rel=\"tag\">Linux<\/a><\/span> <span class=\"last-updated\">last updated November 6, 2007<\/span><\/header>\n<div class=\"entry-content\">\n<div><a title=\"See all Postfix Mail Server related FAQ\" href=\"https:\/\/www.cyberciti.biz\/faq\/category\/email-servers\/\"><img decoding=\"async\" src=\"https:\/\/s0.cyberciti.org\/images\/category\/old\/postfix-logo.gif\" border=\"0\" \/><\/a><\/div>\n<p><strong>Q<\/strong>. I\u00e2\u20ac\u2122ve Postfix based CentOS Linux server. I need to blacklist email ID: user@abadboy.com . How do I blacklist email address with postfix? I also have spamassassin software installed.<\/p>\n<p><center><ins class=\"adsbygoogle\" data-ad-client=\"ca-pub-7825705102693166\" data-ad-slot=\"8594278667\" data-adsbygoogle-status=\"done\"><ins id=\"aswift_0_expand\"><ins id=\"aswift_0_anchor\"><\/ins><\/ins><\/ins><\/center><strong>A<\/strong>. By default, the Postfix SMTP server accepts any sender address. However you can block \/ blacklist sender email address easily with Postfix. It has SMTP server access table.<\/p>\n<p>Open \/etc\/postfix\/sender_access file<br \/>\n<code># cd \/etc\/postfix<br \/>\n# vi sender_access<\/code><br \/>\nAppend sender email id as follows:<br \/>\n<code>user@abadboy.com REJECT<\/code><br \/>\nSave and close the file. Use postmap command to create a database:<br \/>\n<code># postmap hash:sender_access<\/code><br \/>\nNow open main.cf and add code as follows:<br \/>\n<code>smtpd_recipient_restrictions = check_sender_access hash:\/etc\/postfix\/sender_access<\/code><br \/>\nSave and close the file. Restart \/ reload postfix MTA:<br \/>\n<code># \/etc\/init.d\/postfix restart<\/code><\/p>\n<p>You can also use spamassassin to blacklist email address. Just add to your own spamassassin configuration or to \/etc\/mail\/spamassassin\/local.cf file:<br \/>\n<code># vi \/etc\/mail\/spamassassin\/local.cf<\/code><br \/>\nAppend blacklist as follows:<br \/>\n<code>blacklist_from user@abadboy.com<\/code><br \/>\nSave and close the file. Restart spamassassin:<br \/>\n<code># \/etc\/init.d\/spamassassin restart<\/code><\/p>\n<p>spamassassin will marke mail as SPAM instead of rejecting the same.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Postfix blacklist or reject an email address Posted onJuly 4, 2007in CategoriesCentOS, EMail Servers, Linux last updated November 6, 2007 Q. I\u00e2\u20ac\u2122ve Postfix based CentOS Linux server. I need to blacklist email ID: user@abadboy.com . How do I blacklist email address with postfix? I also have spamassassin software installed. A. By default, the Postfix SMTP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":621,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-745","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=745"}],"version-history":[{"count":1,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/745\/revisions"}],"predecessor-version":[{"id":746,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/745\/revisions\/746"}],"up":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/621"}],"wp:attachment":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}