Re: [Exim] whitelisting domains from rbl checking

Góra strony
Delete this message
Reply to this message
Autor: Dominik Ruf
Data:  
Dla: exim-users
Temat: Re: [Exim] whitelisting domains from rbl checking
* Jeff Lasman <blists@???> [2004-01-03 00:47]:

> I'm looking to do this strictly on a per-domain basis.
>
> My guess is I can add something above the second "accept" section (see
> the entire acl below), something like this:
>
> <snip>
> accept  domains     = +whitelisted_domains
> </snip>

>
> as long as I've defined (at the top of my exim.conf file) something like
> this:
>
> <snip>
> domainlist whitelisted_domains = \
> lsearch;/etc/virtual/whitelisted_domains
> <snip>
>
> Does this look reasonable to you?


Yes, the "domains" statement should be exactly what you're looking for.
But you may even use it in the "deny dnslists=..." section as
"!domains = +whitelisted_domains". This way you don't have to create
a separate ACL entry with "accept".

>   deny message = $sender_host_address is listed at $dnslist_domain - see
> http://www.spamblocked.net
>        dnslists = sbl.spamhaus.org : \
>                   relays.ordb.org : \
>                   smtp.dnsbl.sorbs.net


         !domains = +whitelisted_domains


>   deny message = $sender_host_address is listed at $dnslist_domain - see
> http://www.spamblocked.net
>        hosts = !+relay_hosts
>        !authenticated = *
>        dnslists = bl.spamcop.net : \
>                   dnsbl.njabl.org : \
>                   cbl.abuseat.org : \
>                   http.dnsbl.sorbs.net : \
>                   socks.dnsbl.sorbs.net : \
>                   misc.dnsbl.sorbs.net : \
>                   smtp.dnsbl.sorbs.net : \
>                   web.dnsbl.sorbs.net : \
>                   block.dnsbl.sorbs.net : \
>                   zombie.dnsbl.sorbs.net : \
>                   dul.dnsbl.sorbs.net : \
>                   rhsbl.sorbs.net


         !domains = +whitelisted_domains


Dominik