Re: postfix with SASL over PAM
## Jose Alberto Guzman (jose@iteso.mx):
> But when I try to authenticate with plain (base64 encoded:
> 'user\0user\0password'), posfix complains with :
> postfix/smtpd[2134]: connect from localhost[127.0.0.1]
> postfix/smtpd[2134]: PAM _pam_init_handlers: could not open /etc/pam.conf
Are you running smtpd chroooted? If you want to use SMTP-AUTH, it might
be easier to un-chroot smtpd. Elsewhere you will have to copy a lot
of files (especially for SASL).
> Has anyone managed to get woody's postfix to authenticate with sasl
> over pam?
smtpd can't read /etc/shadow and tus PAM can't (PAM is a bunch of
libraries). I used pwcheck (from sasl-bin, IIRC). Run pwcheck as
root, it becomes a daemon. Then edit /etc/postfix/sasl/smtpd.conf,
it should read "pwcheck_method: pwcheck". pwcheck uses an unix socket
(/var/run/pwcheck/pwcheck by default), take care smtpd can access it
(think of chroot).
Regards,
cmt
--
Spare Space
Reply to: