How To: Making Exim check email sender's against RBLs to catch known spammers.
This is a very quick and simple addition to
exim.conf, however it can also be a very beneficial one.
First, you need to use your favorite editor and open /etc/exim.conf
We will assume you are using pico, in which case you would type:
Look for the following entry
Quote:
#!!# ACL that is used after the RCPT command
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 = :
require verify = sender
|
Under this entry, add the following lines, you can modify them as needed.
Quote:
# Spam filtering (with RBL) starts here:
deny message = rejected because $sender_host_address is \
is blacklisted at $dnslist_domain\n\
$dnslist_text
dnslists = spamhaus.relays.osirusoft.com=127.0.0.6: \
sbl.spamhaus.org=127.0.0.2: \
relays.ordb.org
#!!# Spam filtering ends
|
Now save the document, in pico type Ctrl + X, answer "yes" to save the file "exim.conf"
Now, restart cPanel by typing:
---------------------------------
Best Regards,
UKShane
http://www.eukhost.com