[Exim] SMTP auth config

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Shaun W. Kruger
Date:  
À: exim-users
Sujet: [Exim] SMTP auth config
I've been fighting with the SMTP auth configuration for a couple of days and
can't seem to get all the variables right. I have the following:

/etc/pam.d/exim:
auth required pam_unix.so
#auth required pam_radius_auth.so
account required pam_unix.so
password required pam_unix.so
session required pam_unix.so

in my exim.conf:
login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = "${if pam{$1:$2}{1}{0}}"
server_set_id = $1

and when I run exim -d9 -bd:

SMTP>> 250-ihost Hello testbed [206.71.92.238]

250-SIZE
250-PIPELINING
250-AUTH LOGIN
250 HELP
SMTP<< AUTH LOGIN
SMTP>> 334 VXNlcm5hbWU6
SMTP>> 334 UGFzc3dvcmQ6

Running PAM authentication for user "shaun"
PAM error: Authentication failure
login authenticator:
$1 = shaun
$2 = <password removed>
expanded string: 0
SMTP>> 535 Incorrect authentication data

LOG: 0 MAIN REJECT
Authentication failed for (testbed) [206.71.92.238]: 535 Incorrect
authentication data

/usr/log/auth.log:

Apr 29 23:53:06 ihost PAM_unix[18247]: authentication failure; shaun(uid=8)
-> shaun for exim service

I'm really at a loss for what's going on. I have tried also making it work
off of my radius server and the radius server seems to be returning a
positive auth when I put it in verbose debug mode, but it's getting lost in
the pam. Has anyone else out there had trouble getting this to work?

Shaun Kruger
shaun@???