[exim] Add a whitelist for senders to skip auth check

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Damon Hill
日付:  
To: Exim Mailing List
題目: [exim] Add a whitelist for senders to skip auth check
Hello,

I need to whitelist domains from a list (with wildcards) in Exim's ACL
to avoid auth SMTP checking for domains hosted in this server.

My server, say SERVER A, hosts e-mail for coolstore.com domain, but the
web is hosted by SERVER B (which uses several servers for mailing). I
need to exclude from Exim SMTP auth checking in Server A:
smtp1.serverb.com, smtp2.serverb.com, mailer@??? and
*.serverb2.com.

The problems is that when the web application (hosted by ServerB) tries
to send an (unauthenticated) email from sells@??? to
owner@??? it fails with message: '550 smtp auth requried (in
reply to RCPT TO command)'

I've got the ACL:

    deny    message       = smtp auth requried
            sender_domains = +local_domains
            !authenticated = *


but i cannot make it exclude these domains from the checking.

I tried adding this to ACLs:

    accept  condition     =
${lookup{\$sender_address}nwildlsearch{/etc/exim/senders-whitelist.   
conf}{yes}}


where /etc/exim/senders-whitelist.conf contains:

    smtp1.serverb.com
    smtp2.serverb.com
    mailer@???
    *.serverb2.com


But it didn't work. What am I doing wrong?

Thank you in advance for your help!

--
Damon Hill