Hi I am trying to use a very simple sasl authentication. I have been testing the method here but still encounter error.
my server is a fresh install server. And the command I run:
# saslpasswd2 -c -u `postconf -h mydomain` user1 Password: Again (for verification): # testsaslauthd -u email@example.com -p 123123 0: NO "authentication failed" # testsaslauthd -u user1 -r iz.local -p 123123 0: NO "authentication failed" # sasldblistusers2 firstname.lastname@example.org: userPassword # cat /etc/sasl2/smtpd.conf pwcheck_method: auxprop auxprop_plugin: sasldb mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 NTLM
My end goal is to authenticate postfix during sending email using sasl. However as you can see I can't even authenticate it standalone
saslauthd: : auth failure: [email@example.com] [service=imap] [realm=] [mech=pam] [reason=PAM auth error] saslauthd: : auth failure: [user=user1] [service=imap] [realm=iz.local] [mech=pam] [reason=PAM auth error]
Appreciate if any helps. thanks