{"id":6151,"date":"2016-08-07T15:21:10","date_gmt":"2016-08-07T07:21:10","guid":{"rendered":"http:\/\/rmohan.com\/?p=6151"},"modified":"2016-08-07T15:21:10","modified_gmt":"2016-08-07T07:21:10","slug":"blacklist-and-whitelist-for-zimbra-spam-filter","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6151","title":{"rendered":"BLACKLIST AND WHITELIST FOR ZIMBRA SPAM FILTER"},"content":{"rendered":"<h1 class=\"post_title\">BLACKLIST AND WHITELIST FOR ZIMBRA SPAM FILTER<\/h1>\n<p>&nbsp;<\/p>\n<p>gin to console as &#8220;root&#8221; user. Edit the amavisd config file <code>\/opt\/zimbra\/conf\/amavisd.conf.in<\/code>,<\/p>\n<p>Add 2 lines:<\/p>\n<pre class=\"code\">read_hash(\\%whitelist_sender, '\/opt\/zimbra\/conf\/whitelist');\r\nread_hash(\\%blacklist_sender, '\/opt\/zimbra\/conf\/blacklist');<\/pre>\n<p>Create the list files:<\/p>\n<pre class=\"code\">#vi \/opt\/zimbra\/conf\/whitelist\r\nexample.com\r\nEOT\r\n\r\n#vi \/opt\/zimbra\/conf\/blacklist\r\nspammer@example.com\r\nEOT<\/pre>\n<pre class=\"code\"><\/pre>\n<p>Restart Service:<\/p>\n<pre class=\"code\">#su - zimbra -c 'zmamavisdctl restart'<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>BLACKLIST AND WHITELIST FOR ZIMBRA SPAM FILTER <\/p>\n<p>&nbsp;<\/p>\n<p>gin to console as &#8220;root&#8221; user. Edit the amavisd config file \/opt\/zimbra\/conf\/amavisd.conf.in,<\/p>\n<p>Add 2 lines:<\/p>\n<p> read_hash(\\%whitelist_sender, &#8216;\/opt\/zimbra\/conf\/whitelist&#8217;); read_hash(\\%blacklist_sender, &#8216;\/opt\/zimbra\/conf\/blacklist&#8217;); <\/p>\n<p>Create the list files:<\/p>\n<p> #vi \/opt\/zimbra\/conf\/whitelist example.com EOT #vi \/opt\/zimbra\/conf\/blacklist spammer@example.com EOT <\/p>\n<p>Restart Service:<\/p>\n<p> #su &#8211; zimbra -c &#8216;zmamavisdctl restart&#8217; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6151"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6151"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6151\/revisions"}],"predecessor-version":[{"id":6152,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6151\/revisions\/6152"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}