Re: [exim] Recipient matching in ACL

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Oliver Egginger
日付:  
To: Christian Hertel
CC: exim-users
題目: Re: [exim] Recipient matching in ACL
> I'm using Exim 4.34-4.1 (Debian) and like to define an ACL which sets
> acl_m0 = 1 for example if one of the recipients was found in a MySQL
> database. Does anybody know how to do it?



acl_smtp_rcpt = acl_check_rcpt 
.
.
.
acl_check_rcpt :
warn condition = ${lookup mysql {MYSQL_Q_FOUNDRECIPIENTS}{$value}}
     set acl_m0 = 1
.
.
.


In MYSQL_Q_FOUNDRECIPIENTS lookup '$local_part@$domain' for example.

- oliver