Re: [exim] Denying mail from certain email address

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Peter Bowyer
Dátum:  
Címzett: exim-users
Tárgy: 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