From ab982a3ba02cff2448d33cd21a641dee1c76b0d2 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Wed, 2 Oct 2019 19:54:13 +0100 Subject: [PATCH] eximconf: reject mail based on SORBS's "no mail" / "no servers" lists Signed-off-by: Adam D. Barratt --- modules/exim/templates/eximconf.erb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index 7073f7475..f96e4d24c 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -857,6 +857,11 @@ check_recipient: domains = +handled_domains !hosts = +debianhosts : WHITELIST + deny message = host $sender_host_address is listed in $dnslist_domain; see $dnslist_text + dnslists = noserver.dnsbl.sorbs.net + domains = +handled_domains + !hosts = +debianhosts : WHITELIST + <%- end -%> deny message = domain $sender_address_domain is listed in $dnslist_domain; see $dnslist_text dnslists = ${if match_domain{$domain}{+virtual_domains}\ @@ -867,6 +872,11 @@ check_recipient: domains = +handled_domains !hosts = +debianhosts : WHITELIST + deny message = domain $sender_address_domain is listed in $dnslist_domain; see $dnslist_text + dnslists = nomail.rhsbl.sorbs.net/$sender_address_domain + domains = +handled_domains + !hosts = +debianhosts : WHITELIST + <%- unless @use_smarthost -%> deny domains = +handled_domains local_parts = ${if match_domain{$domain}{+virtual_domains}\ -- 2.20.1