Hi, I don't know if you are talking about RBL checks done by exim or by spamassassin. In case you are indeed talking about exim, this approach would work:
I exempt hosts (the same approach could possibly be done for whole domains) in this way: I create a whitelist inside baruwa with from address the SMTP server IP address, to address [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> of course is a non existing (local) email address, so scanning will still occur. For exim, I first assign a hostlist in macros.conf: BL_HOST = <\n pgsql;SELECT from_address FROM lists WHERE to_address='[email protected]'<mailto:to_address='[email protected]'> and list_type=1 and from_address='${quote_pgsql:$sender_host_address}'; This one will query all IP addresses that are entered into baruwa with [email protected]<mailto:[email protected]> as to address and store it into BL_HOST now all you need to do is define the host list in exim.conf: hostlist bl_host = BL_HOST and to exempt the entries in this hostlist from BL checking simply add: hosts = !+bl_host at the end of each blacklist acl entry such as: drop message = The sender $sender_host_address is in a black list http://www.spamhaus.org/query/bl?ip=$sender_host_address dnslists = zen.spamhaus.org ratelimit = 0 / 2h / strict / per_conn hosts = !+bl_host And any IP address that is in the hostlist will be exempted from BL checking by exim, if the message is accepted by exim, it will still be scanned by mailscanner. Sent from Windows Mail From: Jeremy McSpadden<mailto:[email protected]> Sent: ?Friday?, ?May? ?2?, ?2014 ?5?:?21? ?PM To: [email protected]<mailto:[email protected]> Andrew .. What is the recommended route to disable rbl checks on certain domains. I don't want to whitelist them .. I want to scan the message for spam, just not do an rbl check. -- Jeremy McSpadden Flux Labs | http://www.fluxlabs.net<http://www.fluxlabs.net/> | Endless Solutions Office : 850-250-5590x501<tel:850-250-5590;501> | Cell : 850-890-2543<tel:850-890-2543> | Fax : 850-254-2955<tel:850-254-2955>
_______________________________________________ http://pledgie.com/campaigns/12056

