Re: [Exim] help with exim syntax

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Marc MERLIN
Fecha:  
A: Patrice Fournier
Cc: exim-users
Asunto: Re: [Exim] help with exim syntax
On Wed, Feb 20, 2002 at 04:45:42PM -0500, Patrice Fournier wrote:
> > In other words, I'd like to work if
> > $1 is found in file /etc/mail/smtpauthdb and the result is equal to $2
> > the problem is that $2 with the value of auth password has been
> > clobbered by lsearch by then
>
> Are you sure about that? lookup should not use $1/$2 unless you do partial
> lookup...


You are correct, my bad.

> but your eq{} seems wrong as you are comparing the username with
> the password. Does changing {$1}{fail} to {$value}{fail} works?


While I indeed had to make that change, I still seem to have a syntax
problem, but I can't pinpoint it (I checked that the braces match)

server_condition = "${if or {{eq{lookup{lc:$1}lsearch{/etc/mail/smtpauthdb}{$value}{fail}}{$2}}{pam{${lc:$1}:$2}}}{1}{0}}"
gives:
435 Unable to authenticate at present: missing 2nd string in {} after "eq"

Marc
--
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking


Home page: http://marc.merlins.org/ | Finger marc_f@??? for PGP key