Re: [Exim] help with exim syntax

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Patrice Fournier
Ημερομηνία:  
Προς: Marc MERLIN
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] help with exim syntax
Quoting Marc MERLIN <marc_news@???>:

> Ok, I know I'm doing somethign wrong, but I can't seem to find the
> correct
> syntax:
>
> server_condition = "${if or
>

{{eq{lookup{lc:$1}lsearch{/etc/mail/smtpauthdb}{$1}{fail}}{$2}}{pam{${lc:$1}:$2}}}{1}{0}}"

> 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... but your eq{} seems wrong as you are comparing the username with
the password. Does changing {$1}{fail} to {$value}{fail} works?

--
Patrice Fournier
pfournier@???