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

Etusivu
Poista viesti
Vastaa
Lähettäjä: Víctor Romero
Päiväys:  
Vastaanottaja: Tamas TEVESZ
Kopio: exim-users
Aihe: Re: [Exim] Virtual domains and plain/login authentication
> >
> > 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...

>
> you've gone wrong at an important place here (at least, that's what i
> think. it's a common enough problem, that makes me presume that ;)
>
> {${extract{1}{:}{${lookup{$1}lsearch{/etc/virtual-domains/${domain}/passwd}
>{$value}{*:*}}
>
> if your password file looks like
>
>     username:(encrypted)password

>
> which i suppose it does, then this extract{} stuff is most irrelevant
> here. i once posted a verbose-ish explanation why it is so, you might
> want to search for that. (fact is i'm too lazy to look for it myself
> or write it again :) in short, don't extract. just lsearch.
>
> wrt $domain being present, i think it's not there, you're right in
> this point. authentication goes by usernames and passwords. you don't
> even know (hence you can't have) the domain at the auth stage.


    Really the extract its not a problem ( in fact its the example of the sample
config ) the main problem I have its the ${domain} lack...


    So I need to autenticate virtual domain users and dont want to have them all
in the same file, just want to have it in "/etc/exim/domain/passwd" instead
"/etc/exim/passwd" ( I need it to do a trick with teapop and have working
virtual domains in pop3 too )


    May be Im totally wrong, is there another elegant way to do virtual domain
smtp authentication ?


    Greetings