[exim-dev] [Bug 1012] sender_domains sometimes does not test…

Góra strony
Delete this message
Reply to this message
Autor: Warren
Data:  
Dla: exim-dev
Temat: [exim-dev] [Bug 1012] sender_domains sometimes does not test domain of sender's address
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1012

Warren <warren@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |warren@???





--- Comment #1 from Warren <warren@???> 2010-08-03 09:50:25 ---

domainlist local_domains      = \
       ${lookup pgsql {SELECT name FROM localdomain \
       WHERE name ='${lc:$domain}' }}
                                         ^^^^^^^^


Should read:

domainlist local_domains      = \
       ${lookup pgsql {SELECT name FROM localdomain \
       WHERE name ='${lc:$sender_address_domain}' }}




From the manual (40.23 ACL conditions):

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.



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email