[exim] Setting up authentication

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Hub Dohmen
Fecha:  
A: exim-users
Asunto: [exim] Setting up authentication

Hi!

I run Exim with Hosting Controller. It's a Windows and Linux panel.

I want to enable authentication. Well, nothing new. I gather.

But HC creates userpasswords in special virtual files in /etc/vmail/.
So it creates /etc/vmail/shadow.mydomain.com, and:
/etc/vmail/passwd.mydomain.com.

I tried to make it work, but it does not.

This is what I have:

login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = "${if and {{!eq{$1}{}}{!eq{$2}{}}
{crypteq{$2}{${extract{1}{:}
{${lookup{$1}lsearch{/etc/vmail/passwd.$domain}{$value}{*:*}}}}}}}{1}{0}}"
server_set_id = $1 # NETSCAPE; werkt!

plain:
driver = plaintext
public_name = PLAIN
server_condition = "
# $2 = Username | $3 = password
${if and {{!eq{$2}{}}{!eq{$3}{}}
{crypteq{$3}{${extract{1}{:}
{${lookup{$2}lsearch{/etc/vmail/passwd.@domain}{$value}{*:*}}}}}}}{1}{0
[1]}}"
server_set_id = $2

But they do not work on Exim 4.69. I have two problems:

a) $domain in the string {/etc/vmail/passwd.@domain [2]} does not expand.
b) I can not get the permissions right.
The directory and files in /etc/vmail have root:mail and exim runs as:
Debian-exim:Debian-exim.
I added user Debian-exim to the group mail, but that does not seem to
work.

Hope somebody can help me.

Cheers.

Hub



Links:
------
[1]
mailto:{${lookup{$2}lsearch{/etc/vmail/passwd.@domain}{$value}{*:*}}}}}}}{1}{0
[2] mailto:{/etc/vmail/passwd.@domain