{"id":674,"date":"2012-08-15T15:43:38","date_gmt":"2012-08-15T13:43:38","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=674"},"modified":"2012-08-15T15:43:38","modified_gmt":"2012-08-15T13:43:38","slug":"block-outgoing-email-for-particular-domain-exim","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2012\/08\/15\/block-outgoing-email-for-particular-domain-exim\/","title":{"rendered":"Block outgoing email for particular domain exim"},"content":{"rendered":"<p>Block outgoing email for particular domain exim<\/p>\n<p><code><br \/>\ntouch \/etc\/blockedomains<br \/>\necho \\\"domain.com\\\" >> \/etc\/blockeddomains<\/p>\n<p>In WHM > Exim Configuration Editor > Advanced Editor, put the following in the topmost box:<\/p>\n<p>domainlist blocked_domains = lsearch;\/etc\/blockeddomains<\/p>\n<p>Locate the \\\"ROUTERS CONFIGURATION\\\" section, and right below these lines:<\/p>\n<p>==============<br \/>\ndemocheck:<br \/>\ndriver = redirect<br \/>\nrequire_files = \\\"+\/etc\/demouids\\\"<br \/>\ncondition = \\\"${if eq {${lookup {$originator_uid} lsearch {\/etc\/demouids} {$value}}}{}{false}{true}}\\\"<br \/>\nallow_fail<br \/>\ndata = :fail: demo accounts are not permitted to relay email<br \/>\n==============<\/p>\n<p>Put the following lines:<\/p>\n<p>reject_domains:<\/p>\n<p>driver = redirect<br \/>\n# RBL Blacklist incoming hosts<br \/>\ndomains = +blocked_domains<br \/>\nallow_fail<br \/>\ndata = :fail: Connection rejected: SPAM source $domain is manually blacklisted.<\/p>\n<p>Thats it.....<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Block outgoing email for particular domain exim touch \/etc\/blockedomains echo \\&#8221;domain.com\\&#8221; >> \/etc\/blockeddomains In WHM > Exim Configuration Editor > Advanced Editor, put the following in the topmost box: domainlist blocked_domains = lsearch;\/etc\/blockeddomains Locate the \\&#8221;ROUTERS CONFIGURATION\\&#8221; section, and right below these lines: ============== democheck: driver = redirect require_files = \\&#8221;+\/etc\/demouids\\&#8221; condition = \\&#8221;${if eq [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-674","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=674"}],"version-history":[{"count":1,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/674\/revisions"}],"predecessor-version":[{"id":675,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/674\/revisions\/675"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}