Re: [Exim] Using two queries to check recipients in ACL

Pàgina inicial
Delete this message
Reply to this message
Autor: Andreas J Mueller
Data:  
A: cjackson
CC: exim-users
Assumpte: Re: [Exim] Using two queries to check recipients in ACL
Hi cjackson!

> local_parts = [ldap lookup 1 ] and [ldap lookup 2]
> deny message = nobody here


> Is it a matter of simply creating an OR condition or is
> there another way?


Do you want OR or AND? If you only want to accept local parts which
match _both_ queries, one solution is to write

    accept domains = +local_domains
           endpass
           local_parts = [ldap lookup 1 ]
           local_parts = [ldap lookup 2 ]


To accept locals parts which match _either_ query, you can simply use

    accept domains = +local_domains
           endpass
           local_parts = [ldap lookup 1 ] : [ldap lookup 2 ]


Andy