Re: [exim] Recipient matching in ACL

Top Page
Delete this message
Reply to this message
Author: Oliver Egginger
Date:  
To: Christian Hertel
CC: exim-users
Subject: 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