[Exim] Virtual domains and plain/login authentication

Pàgina inicial
Delete this message
Reply to this message
Autor: Víctor Romero
Data:  
A: exim-users
Assumpte: [Exim] Virtual domains and plain/login authentication
    Actually Im trying to setup a exim server for multiple domains, so I did
this:

        Change the "local_delivery" "file" to
            /var/spool/main/${domain}/${local_part}


        And it works pretty fine so I have the domain mails separated.


        The wrong thing come here: I put it the following in the login: section


login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = "${if
crypteq{$2}{${extract{1}{:}{${lookup{$1}lsearch{/etc/virtual-domains/${domain}/passwd}{$value}{*:*}}}}}{1}{0}}"
server_set_id = $1

    ( Note the ${domain} in the server_condition )


    I think it should work but I get the this log :


2002-06-27 13:46:13 Authentication failed for pasarela2.bingdata.net (victor)
[213.0.106.196]:
435 Unable to authenticate at present: failed to open
/etc/virtual-domains//passwd for linear s
earch: No such file or directory


    I presume the variable ${domain} its not present in the login namespace so I
wonder if theres a way to do this thing...



    Thanks in advance