[Exim] help with exim syntax

Top Page
Delete this message
Reply to this message
Author: Marc MERLIN
Date:  
To: exim-users
Subject: [Exim] help with exim syntax
Ok, I know I'm doing somethign wrong, but I can't seem to find the correct
syntax:

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?

Thanks,
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