Re: [Exim] SMTP Authentication using virtual domains

Etusivu
Poista viesti
Vastaa
Lähettäjä: John Jetmore
Päiväys:  
Vastaanottaja: Terry Shows
Kopio: exim-users
Aihe: Re: [Exim] SMTP Authentication using virtual domains
On Thu, 11 Sep 2003, Terry Shows wrote:

> authenticate_users:
>    driver = plaintext
>    public_name = LOGIN
>    server_prompts = Username:: : Password::
>    server_condition = "${if eq
> {${lookup{$1}lsearch{/usr/exim/tables/virtual_domains/$domain/passwd}{$value
> }fail}} {$2} {yes} {no}}"
>    server_set_id = $1


replace $domain w/ ${domain:$1}, and if the content of the files is just
local_parts, replace $1 w/ ${local_part:$1}. This assumes you require
your users to log in as local_part@domain, of course.

domain: and local_part: may be called something slightly different, but
they exist and are in the string expansion part of spec.txt

--John