Re: [Exim] bypass RBL for specific hosts

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Sander Smeenk
Date:  
À: Oren Levi
CC: exim-users
Sujet: Re: [Exim] bypass RBL for specific hosts
Quoting Oren Levi (orenlevi@???):

> Is there a way to bypass RBL for a specific host ?
> And still using all the rules in ACL


Add condition = checks to your acl checking RBL's and create a file like
/etc/exim/no_rbl_hosts that contain each localdomain that should not
undergo rbl checking.

Something like this (incorrect syntax in condition line, but it should
get you started):

acl_rcpt_to:

deny condition = ${if \
        lookup{$domain}lsearch{/etc/exim/no_rbl_hosts}\
        }{$value}}{yes}{no}}
     message = X-DNSBL: $sender_fullhost is listed in DNSBL $dnslist_domain
     dnslists = sbl.spamhaus.org : opm.blitzed.org <....>


Sander.
--
| Showering in clothes shows you're crazy. Showering nude shows your nuts.
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8 9BDB D463 7E41 08CE C94D