Hi, all.

I have a white list routine that works great for email from individuals. 
When email is from a list, it simply doesn't work. Heres what I have:

 In the acl_rcpt section:

acl_smtp_rcpt = acl_check_rcpt

acl_check_rcpt
        accept  domains         =       +local_domains : +relay_to_domains
                condition       =       ${lookup mysql 
{MYSQL_Q_WHITELIST}{yes}{no}}
                logwrite        =       "Whitelisted $sender_address by 
[EMAIL PROTECTED]"
                set     acl_c1  =       1

And in the sql definition:

MYSQL_Q_WHITELIST=SELECT DISTINCT 1 FROM wlist \
        WHERE (email = 
LOWER('${quote_mysql:[EMAIL PROTECTED]:$domain}') \
        OR email IN (SELECT email FROM alias WHERE alias = 
LOWER('${quote_mysql:[EMAIL PROTECTED]:$domain}'))) \
        AND LOWER('${quote_mysql:$sender_address}') REGEXP address



Here are two entries in the wlist table:

email        address                 used            hits    
[EMAIL PROTECTED] [EMAIL PROTECTED] 2006-10-06 13:30:19 2

[EMAIL PROTECTED] [EMAIL PROTECTED]         2006-10-07 14:13:47 113

email from [EMAIL PROTECTED] to [EMAIL PROTECTED] is always whitelisted
email from the list to [EMAIL PROTECTED] is never whitelisted

In the headers of an exim list email there is:

To: [email protected]
From: first last <[EMAIL PROTECTED]>
and
Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]


Is there a way to modify the acl to check the Sender: <ADDRESS> along 
with the From:<ADDRESS>
Any help would be totally appreciated. 

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to