Re: [Exim] Using ACLs to verify RCPT TO

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nico Erfurth
Dátum:  
Címzett: ISP List
CC: exim-users
Tárgy: Re: [Exim] Using ACLs to verify RCPT TO
ISP List wrote:

> Thanks for responding.
>
> What does the "1" signify in the SELECT statement (or is that just a
> typo)? I assumed that it would be something like:
>
> SELECT from USERS where EMAIL='$local_part@$domain'


         ^ This one misses the fields.


> ..and if it returned no value, then the condition has been met, and the
> "user unknown" error would be returned. If a value was returned from the
> SELECT statement, the ACL should be passed by. Am I correct?


The "command-style" lookups (lookup;) will return true when a value is
returned, it does not care about the value itself. So, when a row
matches, just 1 will be returned, instead of any extracted data.

Nico