[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Refusing to deliver mail



>Is there a way to configure the email server (sendmail 8.9.3) so that it
>refuses mail coming from a specified address to a specific email. Let me
>clarify:
>
>My user A doesn't wan't to receive mail from b@wherever.com. Is it
>possible (with sendmail or something else) to make b's message bouce
>back complaining about the unavailability of a ?

You can do this easily with procmail.

Into the file bounce.message, put some text describng why you are
bouncing this mail.  Then, set up the user's .forward or .qmail to 
use procmail.  Then, add this rule to the .procmailrc :

       :0
       * ^From drevil@spam.com
       | (formail -r ; cat bounce.message) | $SENDMAIL -oi -t


Carl


Reply to: