Re: [Exim] help with exim syntax

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tamas TEVESZ
Datum:  
To: Marc MERLIN
CC: exim-users
Betreff: Re: [Exim] help with exim syntax
On Wed, 20 Feb 2002, Marc MERLIN wrote:

> fixed_plain:
> driver = plaintext
> public_name = LOGIN
> server_prompts = "Username:: : Password::"
> 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
> or
> there is a match in PAM
>
> Any suggestions?


wild guess, without much thinking even: put a dummy empty column in
/etc/mail/smtauthdb, so you'd return $3 from the lsearch ?


--
[-]