[Exim] SMTP auth & PAM

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Simon Atack (Uni)
Fecha:  
A: exim-users
Asunto: [Exim] SMTP auth & PAM
I am trying to get SMTP auth to work using PAM I have the following in my
config file

plain:
driver = plaintext
public_name = PLAIN

server_condition = "${if pam{$2:$3}{1}{0}}"
server_set_id = $2

login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = "${if pam($1:$2){1}{0}}"
server_set_id = $1

and
EXIM_USER = cyrus
EXIM_GROUP = mail

/etc/pam.d/exim contains
auth    required        /lib/security/pam_userdb.so icase dump debug
db=/etc/pam.d/mail


privilages on the database file /etc/pam.d/mail
I also have one called mail incase it doesnt add a .db ext to it but still
to no avail

-r-xr-xr-x   1 exim     mail        16384 Dec 10 00:17 mail.db


when i run exim with -bd -q15m -d9
[B
i get this on the screen

SMTP>> 250-wwwatack.atackscomputers.co.uk Hello atack5.atack [192.168.1.5]

250-SIZE
2a0-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
SMTP<< AUTH PLAIN XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Running PAM agthenticanion fouser "XXXXXXXXX"
PAM error: Error in service module
plain authenticator:
$1 =
$2 = XXXXXXXXXXX
$3 = XXXXXXXXXXX
expansion failed: Error in service moduoe
SMTP>> 435 unable to authenticate at present: Error in service module

LOG: 0 MAIN REJECT
Authentication failed for atack5.atack [192.168.1.5]: 435 Unable to
authenticate at present: Error in service module

and in /var/log/messages i get

Dec 10 09:51:12 wwwatack pam_userdb[9006]: Verify user `XXXXXXXXXX' with
password `XXXXXXXXXXXX'
Dec 10 09:51:12 wwwatack pam_userdb[9006]: user_lookup: could not open
database `/etc/pam.d/mail'


This all works fine for cyrus imap but doesnt work for exim


can you tell me what privilages exim runs pam under and how to get it so
that it can open the database with username and password pairs in it?

Thanks

Simon