SASL 身份验证失败

SASL 身份验证失败

创建了一个用户

# adduser username

配置文件/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

但这不起作用。

# testsaslauthd -u username -p password -s smtp
0: NO "authentication failed"

这是以下所示的错误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]

相关内容