Re: [exim] Denying mail from certain email address

Top Page
Delete this message
Reply to this message
Author: Peter Bowyer
Date:  
To: exim-users
Subject: Re: [exim] Denying mail from certain email address
Brent Clark <bclark@???> wrote:
> Hi all
>
> I know that Spam assassin is more meant for this.
> But I would like it how and where is it possible to have some kind of
> text file (list of email address) that would deny mail (send to
> /dev/null) from a certain user.


As long as you're aware of the vulnerability of this technique - sender
addresses are easily forged - you can accomplish what you want with an ACL
fragment (in the rcpt acl) like this:

deny message = Your mail is unwanted
senders = lsearch;/file/of/banned/senders
recipients = user@example

Note that this doesn't devnull the mail, it denies it at SMTP time - to
actually devnull (ie accept normall then silently discard), use 'discard'
instead of 'deny'.

Peter