E-mail Blacklists on a User Basis?
spectro asks: "My e-mail address is in some Argentinian spam list and there is no day I receive less than a couple of spams. I've asked my ISP to block any server from the ".ar" domain to send me mail and the response was : "no problem... if you tell me how to do it." So my question for you is, how can I specify anti-spam rules for each user?. I know you can put a rule in /etc/mail/access (they use sendmail) but this will block it for all users. I also know I can use procmail, but I want the server to -refuse- any mail for me if it is on my spam list (/home/user/.spam). The idea is to make spammers think my e-mail account has ben cancelled so they erase me from their database. Can somebody suggest some tweaked implementation of the access_db feature to do such thing?"
Procmail scripts -- for the novice to the expert -- are in abundance at these sites (listed in order of importance);
http://www.ii.com/internet/robots/procmail
http://www.ling.helsinki.fi/~reriksso/procmail/m ini-faq.html
ftp://ftp.rubyriver.com/pub/jhardin/antispam/pro cmail-security.html
Procmail can be easily adapted to read a user-specific file. The file could be edited using a web page form to keep users from messing up the syntax. Procmail is easy to use, but will fail to process some or all of the script commands if the syntax isn't correct!
It's practical adopt a simple set of rules, easily created with a Procmail script, and use them as a general filter. Using a specific filter is just one form of security-through-obscurity and is easy to thwart.
1. All mail from known addresses is let through.
2. (optional) Mail from known senders is sent to a specific mail folder for that user (Business, Friends, Family, Natilie_Portman, ...).
3. All mail addressed to the user directly -- but not as a BCC list -- is sent through to the user's INBOX.
4. (optional) All remaining mail is sent to either /dev/null or a Probable_Spam mail folder.
A firewall can not protect you from yourself. Turn off what you do not need. Do not use the firewall to do your work.