Comment Whitelister un domaine avant de le tester contre une RBL ?
Dans le fichier /etc/exim.conf
on ajoute la declaration d’une liste:
domainlist skip_rbl_domains = lsearch;/etc/skiprbldomains
Dans la déclaration d’une RBL, on ajoute une ligne !domains
Par exemple:
# BEGIN INSERT barracuda_rbl
deny message = JunkMail rejected - $sender_fullhost is in an RBL, see $dnslist_text
hosts = +backupmx_hosts
dnslists = b.barracudacentral.org
warn
!hosts = 65.55.111.175
!domains = +skip_rbl_domains
dnslists = b.barracudacentral.org
set acl_m8 = 1
set acl_m9 = "JunkMail rejected - $sender_fullhost is in an RBL, see $dnslist_text"
warn
condition = ${if eq {${acl_m8}}{1}{1}{0}}
ratelimit = 0 / 1h / strict / per_conn
log_message = "Increment Connection Ratelimit - $sender_fullhost because of RBL match"
drop
condition = ${if eq {${acl_m8}}{1}{1}{0}}
message = ${acl_m9}
# END INSERT barracuda_rbl
On redémarre exim: service exim restart
Si le fichier /etc/skiprbldomains n’existe pas, on le crée a partir du fichier /etc/localdomains
cp -r /etc/localdomains /etc/skiprbldomains
chgrp mail /etc/skiprbldomains