With linux if you put a .forward in your directory
can have the mail forwarded somewhere
else. Is there such thing as a .deny file
or someway to deny certain email address?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do you mean to deny them from ever being delivered at all, or they can be delivered but you just want them sent to that great bit bucket in the sky?

Preventing delivery has to be done at the Mail Transport Agent (MTA) level (sendmail, qmail, etc). MTA's can do aliasing, forwdaring and delivery without ever knowing the content of the message. or particularly caring about who the sender is. Mail User Agents MUA's (mail(x), Netscape, pine, procmail, etc) handle content and user access.

Typically, controlling the delivery at the MTA level is done to limit the amount of spam email received. Some of the mechanisms include rejecting email where the sending site cannot be resolved by DNS (eliminates messages that have faked or hidden sender systems), using one or more of the real-time network black-lists of known spam sites, and local lists of black-listed sites. Theres plenty of information as to how to do so in the sendmail docs & FAQ's and I'm sure that qmail and the others have similar resources.

You can set up procmail to personally filter email and it's quite amazing how sophisticated the rules can be if needed. It's pretty easy to write a rule that "junks" email from a particular person or site, or one with a specific subject. Take a look at the man pages for procmail and procmailex. They may be a bit intimidating at first, but it isn't really that hard to do.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.