Page 1 of 1

Postfix Sasl + pam

Posted: 30 Mar 2017 20:49
by lelle
Hi all,

perhaps lazy of me but does anybody have a write up how to enable Sasl with local auth thru Pam?
I have tested to authenticate with
testsaslauthd -u username -p password
but getssaslauthd[1662]: do_auth : auth failure: [user=username] [service=imap] [realm=] [mech=pam] [reason=PAM auth error]

Any suggestion (besides connecting to AD, do not have a AD)
Best regards
Lelle

Re: Postfix Sasl + pam

Posted: 31 Mar 2017 05:57
by lelle
Ok, a bit of update.
If I do testsaslauthd -u username -p password -s smtp I get a success, will test to authenticate from client later today.
Perhaps it just works now

/Lennart

Re: Postfix Sasl + pam

Posted: 20 Apr 2017 20:22
by lelle
Ok, so server listen on tcp587, firewall is open
I have configured postfix to support submission as suggested by wiki
I have added a lockal user
I have added a local user, I can do a local sasl test successful
[root@smtpserver ~]# testsaslauthd -u user -p passwd -s smtp
0: OK "Success."
But if I try to connect from a other host, I got a authentication failure, so I do something wrong.
This was working out of the box with esfa so I suppose it can work.
Does anybody has this working and would care to share how they did that?

/Lennart

Re: Postfix Sasl + pam

Posted: 20 Apr 2017 21:37
by shawniverson
Sorry, I am not much help unless I set up an environment and try to make this work....perhaps someone who has done this can chime in? If not, I will give this a shot.