Re: [Exim] SMTP AUTH concern

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: michael
CC: exim-users
Tárgy: Re: [Exim] SMTP AUTH concern
On 15 Jan 2001 michael@??? wrote:

> >  server_condition = ${if \
> >    eq{$3}{${lookup{$2}lsearch{/etc/exim/passwd}}}{1}{0}}


If the contents of $3 match the data that was looked up, authentication
succeeds. If the lookup fails, the data looked up is empty - that will
match an empty value of $3.

> >  server_condition = ${if \
> >    eq{$3}{${lookup{$2}lsearch{/etc/exim/passwd}{$value}fail}}{1}{0}}


In this case, if the lookup fails, authentication is always refused.

> AFAIK, there are three exits to "${if ...}": true, false and defer.
> If the lookup returned no data, you enforce a failure. If that was
> within a router, it would defer the message.


Not necessarily. Some routers decline and pass the address to the next
message. Defering usually happens if the lookup cannot complete (e.g. a
database is offline) so that it neither succeeds nor fails.

> With authentication, you
> get a temporary error.


Yes.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.