Tested with exim 4.66 on
WHM 11.2.0 cPanel 11.11.0-R16789
In the Exim Configuration Editor;
In the first box, add:
domainlist skip_rbl_domains = domain.com : domain.com
*Where domain.com = domain names of those that wish to bypass rbl checks on incoming mail
In the second ACL box of Exim Configuration Editor, make these changes:
Find this line
[% ACL_RBL_BLOCK %]
and comment it out to disable it. It should now look like this:
#[% ACL_RBL_BLOCK %]
and then also add these lines;
deny message= Rejected because $sender_host_address is in a blacklist at $dnslist_domain\n$dnslist_text
dnslists = zen.spamhaus.org:bl.spamcop.net
domains = ! +skip_rbl_domains
So now the full final edit in 2nd ACL BOX looks like this
#[% ACL_RBL_BLOCK %]
deny message= Rejected because $sender_host_address is in a blacklist at $dnslist_domain\n$dnslist_text
dnslists = zen.spamhaus.org:bl.spamcop.net
domains = ! +skip_rbl_domains
Since implementing this for 3 domains, none of them have had any spamhaus or spamcop mails rejected. Their choosing! Not mine.
Special thanks to Darton on the exim-users mailing list for pointing me in the right direction.
