Re: [exim] Recipient matching in ACL

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Oliver Egginger
Fecha:  
A: 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