Originally posted by eurorocco
b) Check that the IP of the host making the SMTP connection is not a dialup (phone, cable, dsl or otherwise). If it's a dialup, then assume it's a spammer individual (not a mail server used by a community).
...
On b) I have http://njabl.org/ and its dnsbl.njabl.org , and I see SpamAssasin using this reference to calculate some spam points. I'd like Exim not to receive email from dialups. Is there a way to bring njabl.org to the exim.conf file? I think they have an rsync connection so one can stay in sync ever so often.
You can have exim do rejections based on a connecting host matching an RBL (or multiple).
In the exim config you can place below the :
Code:
#!!# 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 = +relay_hosts
endpass
Place:
Code:
drop dnslists = dnsbl.njabl.org : bl.spamcop.net
message = your mail server $sender_host_address is in a black list \
at $dnslist_domain ($dnslist_text)
require verify = reverse_host_lookup
message = your mail server IP address ($sender_host_address) has no reverse DNS PTR hostname
Save, restart exim. The "require verify" makes certain the host has a reverse 'name' lookup for it's IP address.
(I added spamcop.net's blacklist because that is VERY helpful.)
This is MY dnslist blacklist config (this is very aggressive):
Code:
drop dnslists = relays.ordb.org :\
sbl-xbl.spamhaus.org :\
hil.habeas.com :\
list.dsbl.org :\
bl.spamcop.net :\
dnsbl.njabl.org :\
proxies.blackholes.easynet.nl :\
dynablock.easynet.nl :\
spam.dnsbl.sorbs.net :\
korea.services.net :\
brazil.blackholes.us :\
nigeria.blackholes.us :\
argentina.blackholes.us :\
malaysia.blackholes.us :\
singapore.blackholes.us :\
taiwan.blackholes.us
message = your mail server $sender_host_address is in a black list \
at $dnslist_domain ($dnslist_text)