Help - Search - Members - Calendar
Full Version: Blocking Spam Mail
The Planet Forums > Control Panels > cPanel/WHM
jobokoth
Hi

I have a query: How can one setup a master list of blocked spam emails in WHM which will work for all the accounts on the server?

Thanks

Job
PDW
Copied from another location for your pleasure:

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)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.