Skip to content

Commit 95d520f

Browse files
committed
exim: act correctly on dnsbl+authentication
When an (possibly) authenticated user tried to send mail from an address listed on any DNSBL, he was rejected without any chance to authenticate, thus proving he is not a spammer. This commit rearranges the order of checks so that authentication is possible even from DNSBL'd IP.
1 parent 179cca9 commit 95d520f

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

install/debian/exim4.conf.template

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ acl_check_spammers:
5151
drop message = Your host in blacklist on this server.
5252
log_message = Host in blacklist
5353
hosts = +spammers
54-
deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\\n$dnslist_text
55-
dnslists = ${readfile {/etc/exim4/dnsbl.conf}{:}}
5654
accept
5755

5856
acl_check_mail:
@@ -102,6 +100,10 @@ acl_check_rcpt:
102100
accept authenticated = *
103101
control = submission/domain=
104102

103+
deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\\n$dnslist_text
104+
hosts = !+whitelist
105+
dnslists = ${readfile {/etc/exim4/dnsbl.conf}{:}}
106+
105107
require message = relay not permitted
106108
domains = +local_domains : +relay_to_domains
107109

install/rhel/exim-smarthost.conf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ acl_check_spammers:
5151
drop message = Your host in blacklist on this server.
5252
log_message = Host in blacklist
5353
hosts = +spammers
54-
deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\\n$dnslist_text
55-
dnslists = ${readfile {/etc/exim/dnsbl.conf}{:}}
5654
accept
5755

5856
acl_check_mail:
@@ -102,6 +100,10 @@ acl_check_rcpt:
102100
accept authenticated = *
103101
control = submission/domain=
104102

103+
deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\\n$dnslist_text
104+
hosts = !+whitelist
105+
dnslists = ${readfile {/etc/exim/dnsbl.conf}{:}}
106+
105107
require message = relay not permitted
106108
domains = +local_domains : +relay_to_domains
107109

install/rhel/exim.conf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ acl_check_spammers:
5151
drop message = Your host in blacklist on this server.
5252
log_message = Host in blacklist
5353
hosts = +spammers
54-
deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\\n$dnslist_text
55-
dnslists = ${readfile {/etc/exim/dnsbl.conf}{:}}
5654
accept
5755

5856
acl_check_mail:
@@ -102,6 +100,10 @@ acl_check_rcpt:
102100
accept authenticated = *
103101
control = submission/domain=
104102

103+
deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\\n$dnslist_text
104+
hosts = !+whitelist
105+
dnslists = ${readfile {/etc/exim/dnsbl.conf}{:}}
106+
105107
require message = relay not permitted
106108
domains = +local_domains : +relay_to_domains
107109

install/ubuntu/exim4.conf.template

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ acl_check_spammers:
5151
drop message = Your host in blacklist on this server.
5252
log_message = Host in blacklist
5353
hosts = +spammers
54-
deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\\n$dnslist_text
55-
dnslists = ${readfile {/etc/exim4/dnsbl.conf}{:}}
5654
accept
5755

5856
acl_check_mail:
@@ -102,6 +100,10 @@ acl_check_rcpt:
102100
accept authenticated = *
103101
control = submission/domain=
104102

103+
deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\\n$dnslist_text
104+
hosts = !+whitelist
105+
dnslists = ${readfile {/etc/exim4/dnsbl.conf}{:}}
106+
105107
require message = relay not permitted
106108
domains = +local_domains : +relay_to_domains
107109

0 commit comments

Comments
 (0)