Re: [exim] What field does sender_domain check?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Phil Pennock
Date:  
À: Frank DeChellis
CC: exim-users
Sujet: Re: [exim] What field does sender_domain check?
On 2011-08-25 at 16:28 -0400, Frank DeChellis wrote:
> Does the sender_domain condition test check the domain name in ³from:²,
> ³return-path:² or ³envelope-from:²


The condition is "sender_domains", with a trailing "s".

Per the documentation:
============================8< cut here >8==============================
sender_domains = <domain list>

    This condition tests the domain of the sender of the message against the
    given domain list. Note: The domain of the sender address is in
    $sender_address_domain. It is not put in $domain during the testing of this
    condition. This is an exception to the general rule for testing domain
    lists. It is done this way so that, if this condition is used in an ACL for
    a RCPT command, the recipient's domain (which is in $domain) can be used to
    influence the sender checking.


    Warning: It is a bad idea to use this condition on its own as a control on
    relaying, because sender addresses are easily, and commonly, forged.
============================8< cut here >8==============================


$sender_address_domain is from the SMTP Envelope.

There is no such header as "Envelope-From:", except insofar as anyone
can use any header.

The "Return-Path:" header is one sometimes added by final destination
servers, when the message passes out of SMTP, to preserve the SMTP
Envelope Sender. So of the sources you list, this is the one.

-Phil