Criado um usuário com
# adduser username
O arquivo de configuração / etc / sysconfig / saslauthd:
# Directory in which to place saslauthd's listening socket, pid file, and so
# on. This directory must already exist.
SOCKETDIR=/run/saslauthd
# Mechanism to use when checking passwords. Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled with the ablity to use.
MECH=pam
# Additional flags to pass to saslauthd on the command line. See saslauthd(8)
# for the list of accepted flags.
FLAGS=-r
Mas não está funcionando.
# testsaslauthd -u username -p password -s smtp
0: NO "authentication failed"
Este é o erro mostrado por journalctl -u saslauthd
:
dic 08 20:34:22 xxxx.com saslauthd[11847]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure
dic 08 20:34:22 xxxx.com saslauthd[11847]: do_auth : auth failure: [user=username] [service=smtp] [realm=] [mech=pam] [reason=PAM auth error]
Tags authentication pam smtp sasl centos