As one solution to the Internet spam problem, we have created an easy and straightforward way to block E-Mail to a virtual server from specific E-Mail addresses and domain names.
Each virtual server has a ~/etc/spammers file which contains something like the following. # # Simply add the hostnames or email addresses on their own lines below # that you don't want to receive email from # (lines, like this one, starting with "#" are comments; comments are good) # Examples: # cyberpromo.com (blocks all mail from the hostname "cyberpromo.com") # spammer@aol.com (blocks mail only from "spammer@aol.com") # # Sources for lists of common rogue spammers and spam sites: # http://www.idot.aol.com/preferredmail/ for AOL's blacklist # http://www.vix.com/spam/rogues.html for Vixie's blacklist # http://www-math.uni-paderborn.de/%7Eaxel/BL/ for Blacklist of Advertisers # # Promote Responsible Net Commerce: Help Stamp Out Spam! # See http://www.vix.com/spam/ for more information # spammer@aol.com cyberpromo.com Lines that begin with # are comments. Other lines contain e-mail addresses or domain names that are blocked. If the server is configured as above, all E-Mail with spammer@aol.com or cyberpromo.com in the "From:" line of the header is blocked. UsageYou can configure E-Mail blocking during a Telnet/SSH session with your server. Connect to your virtual server via Telnet or SSH and do the following.
|