Web Hosting Talk







View Full Version : How to block/bounce an email address?


MannyT
04-03-2004, 05:32 PM
I've got an email client on a 550 who's being harassed by email, and want to block a particular email address. I know I can blacklist an email address in spam assassin and have it auto-delete, but rather want it to bounce back to the harassing sender.

Is there a simple way of doing this?
If so, is it server wide or can I make it specific to a hosted domain on the 550?

thnx, Manny

lucid
04-04-2004, 09:57 AM
procmail is your best bet, i found a few things on google about it. check out the blacklist recipe http://john.beimler.org/blacklist_bounce_w_procmail.html

huck
04-06-2004, 01:15 PM
Check out the /etc/mail/access list. You can block specific IPs in there like:

aemail4u.com 550 Go away no need for your spam here.


This blocks all email from the aemail4u.com spammers. It sends them a nice message in their error log... ;)

After editing the access file, you will need to run:

makemap hash /etc/access</etc/access

Restart sendmail