disable rbl checks on certain domains

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

disable rbl checks on certain domains

jeremymcs
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
Reply | Threaded
Open this post in threaded view
|

Re: disable rbl checks on certain domains

jvangent
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 [hidden email]

[hidden email] 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 [hidden email] 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 [hidden email] 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: [hidden email]
Sent: ‎Friday‎, ‎May‎ ‎2‎, ‎2014 ‎5‎:‎21‎ ‎PM
To: [hidden email]

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
Reply | Threaded
Open this post in threaded view
|

Re: disable rbl checks on certain domains

ManicD
jvangent - Is there a way this could be completed by a text file whitelist of host IP's

Also i'm looking for a way to skip certain domains in the reverse DNS lookup of exim, again by a text file list of domain names.

Tried all sorts but cant get it to work.