Re: Blocking emails from a specific address

Yiorgos Adamopoulos <[email protected]> Thu, 28 Aug 2008 23:59:33 +0300
Newsgroups gmane.mail.majordomo.general
Message-ID <[email protected]>

Joe Dowsett wrote:
> Is this possible?
> Will this person be aware that these emails are being blocked?

If you can use sendmail's FEATURE(compat_check) then you can drop 
incoming messages from this user to the list without altering any 
majordomo configuration.  You can even decide whether the user gets 
notified of the rejection or not.  Just edit /etc/mail/access:

Compat:[email protected]<@>[email protected] ERROR:"550 You cannot email this list"

or

Compat:[email protected]<@>[email protected] DISCARD

You can read more on FEATUR(compat_check) at:

http://www.sendmail.org/documentation/configurationReadme

-YA