Re: [exim] Recipient matching in ACL

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Oliver Egginger
Data:  
Para: Christian Hertel
CC: exim-users
Asunto: 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