Comment Whitelister un domaine avant de le tester contre une RBL ?
Dans le fichier /etc/exim.conf
on ajoute la declaration d’une liste:
1 |
domainlist skip_rbl_domains = lsearch;/etc/skiprbldomains |
Dans la déclaration d’une RBL, on ajoute une ligne !domains
Par exemple:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# 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
1 |
cp -r /etc/localdomains /etc/skiprbldomains |
1 |
chgrp mail /etc/skiprbldomains |