RE: [Exim] Virtual domains and plain/login authentication

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Cal Evans
Data:  
Para: romero, exim-users
Assunto: RE: [Exim] Virtual domains and plain/login authentication
This one works for me. The paths are different but the concept is the same.
(BTW, I didn't write this...props to Michael!)

=C=

login:
  driver = plaintext
  public_name = LOGIN
  server_prompts = "Username:: : Password::"
  server_condition = "${if and{ {!eq{$1}{}}{!eq{$2}{}} \
   {crypteq {$2} {${lookup {${local_part:$1}} lsearch \
                            {/etc/virtual/${domain:$1}/passwd}\
                            {$value} {*:*}}}} } {1}{0}}"
  server_set_id = $1


*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*


-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org]On
Behalf Of Victor Romero
Sent: Thursday, June 27, 2002 4:54 AM
To: exim-users@???
Subject: [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/${domai
n}/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



--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##