[Exim] SMTP AUTH

Top Page
Delete this message
Reply to this message
Author: Johnson, Michael
Date:  
To: 'exim-users@exim.org'
Subject: [Exim] SMTP AUTH
Hi all,
    I am fairly new to EXIM, I have smtp auth working but not as I would
like. I would like it to validate off of a separate passwd files for each
virtual domain. Currently I have a passwd file under my primary domain and
force the users to auth using that domain.


I would like a user to do the following
auth with a username: user@??? and that go to
/etc/virtuallmail/domain.com/passwd to get the authentication information. I
do not think im far away but the few things I have tryed have not worked.
Here is my current plain text auth section. Thanks in advance for your help.
-MJ

THIS WORKS
plain:
        driver = plaintext
        public_name = PLAIN
        server_condition = ${if
crypteq{$3}{${extract{1}{:}{${lookup{$2}lsearc
h{/etc/virtualmail/shell.xyphoid.com/passwd}{$value}}}}}{yes}{no}}
        server_set_id = $2


login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = ${if
crypteq{$2}{${extract{1}{:}{${lookup{$1}lsearch{/et
c/virtualmail/shell.xyphoid.com/passwd}{$value}}}}}{yes}{no}}
server_set_id = $1

THIS DOES NOT
plain:
        driver = plaintext
        public_name = PLAIN
        server_condition = ${if
crypteq{$3}{${extract{1}{:}{${lookup{$2}lsearc
h{/etc/virtualmail/${domain:$2}/passwd}{$value}}}}}{yes}{no}}
        server_set_id = $2


login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = ${if
crypteq{$2}{${extract{1}{:}{${lookup{$1}lsearch{/et
c/virtualmail/${domain:$1}/passwd}{$value}}}}}{yes}{no}}
server_set_id = $1