Re: [Exim] Filtering

Pàgina inicial
Delete this message
Reply to this message
Autor: Nigel Metheringham
Data:  
A: Dave C.
CC: Scott Stavretis, Exim
Assumpte: Re: [Exim] Filtering
djc@??? said:
> Better to set sender_verify, and add a router which matches the
> addresses you want to block and have fail_verify set on it - this will
> reject the message before your server even accepts it...


Such a long way round to reimplement sender_reject :-)

======
Option: sender_reject
Type: address-list
Default: unset

This option can be set in order to reject mail from certain senders.
The check is done on the sender's address as given in the MAIL command
in SMTP, but not for local senders where the logged-in user's address
is going to override anyway.

The check is not done for batch SMTP input. If the check fails, a 550
return code is given to MAIL. This doesn't always stop remote mailers
from trying again. See `sender_reject_recipients' for an alternative.
Typical examples of the use of this option might be:
sender_reject = "spamuser@???:spam.domain"
sender_reject = partial-dbm;/etc/mail/blocked/senders

Note that this check operates on sender address domains independently
of the sending host; `host_reject' can be used to block all mail from
particular hosts, while `host_accept_relay', and `sender_address_relay'
can be used to prevent unwanted relaying.
=====

However this only rejects based on envelope addresses - a little
different from the original request, but normally as effective
especially with the domain regexps forms of address list.

    Nigel.


-- 
[ - Opinions expressed are personal and may not be shared by VData - ]
[ Nigel Metheringham                  Nigel.Metheringham@??? ]
[ Phone: +44 1423 850000                         Fax +44 1423 858866 ]