fusionictnl
Verified User
Hello,
I just post here how I implemented exim to use Blacklists. This is only for people that know what these are and what they do.
To implement RBL checking for mail rejection, you can alter the exim.conf. (Safe with the use of Spamassassin).
in /etc/exim.conf:
Original:
-----------------
check_recipient:
# Exim 3 had no checking on -bs messages, so for compatibility
# we accept if the source is local SMTP (i.e. not over TCP/IP).
# We do this by testing for an empty sending host field.
accept hosts = :
accept domains = +local_domains
accept domains = +relay_domains
-----------
Altered:
-----------
check_recipient:
# Exim 3 had no checking on -bs messages, so for compatibility
# we accept if the source is local SMTP (i.e. not over TCP/IP).
# We do this by testing for an empty sending host field.
accept hosts = :
deny message = Access denied - $sender_host_address is listed at $dnslist_domain
dnslists = sbl.spamhaus.org:relays.ordb.org
accept domains = +local_domains
accept domains = +relay_domains
------------
Restart exim. After that if it isn't giving any errors, you can test it by sending a mail to:
[email protected]
This will sent a mail from as blacklisted and a report. You should get only the report with at the last lines some message that his mail is rejected. (Automated)
good luck!
I just post here how I implemented exim to use Blacklists. This is only for people that know what these are and what they do.
To implement RBL checking for mail rejection, you can alter the exim.conf. (Safe with the use of Spamassassin).
in /etc/exim.conf:
Original:
-----------------
check_recipient:
# Exim 3 had no checking on -bs messages, so for compatibility
# we accept if the source is local SMTP (i.e. not over TCP/IP).
# We do this by testing for an empty sending host field.
accept hosts = :
accept domains = +local_domains
accept domains = +relay_domains
-----------
Altered:
-----------
check_recipient:
# Exim 3 had no checking on -bs messages, so for compatibility
# we accept if the source is local SMTP (i.e. not over TCP/IP).
# We do this by testing for an empty sending host field.
accept hosts = :
deny message = Access denied - $sender_host_address is listed at $dnslist_domain
dnslists = sbl.spamhaus.org:relays.ordb.org
accept domains = +local_domains
accept domains = +relay_domains
------------
Restart exim. After that if it isn't giving any errors, you can test it by sending a mail to:
[email protected]
This will sent a mail from as blacklisted and a report. You should get only the report with at the last lines some message that his mail is rejected. (Automated)
good luck!