- 论坛徽章:
- 0
|
postfix sasl认证系统用户正常,但虚拟用户报错,如下
[root@dmail etc]# testsaslauthd -u root -p 123321 //系统用户
0: OK "Success."
[root@dmail etc]# testsaslauthd -u test02@test.cn -p test02 //虚拟用户
0: NO "authentication failed"
+++++++++++++++++++++++++++++++++++++++++++++++++
相关设置如下
[root@dmail etc]# cat /usr/lib/sasl2/smtpd.conf
pwcheck_method: auxprop <--调用外部sasldb
#saslauthd //不使用系统的密码
mech_list: plain login
saslauthd_path: /var/run/saslauthd/mux
[root@dmail etc]# cat /etc/sysconfig/saslauthd
# Directory in which to place saslauthd's listening socket, pid file, and so
# on. This directory must already exist.
SOCKETDIR=/var/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=shadow
# Additional flags to pass to saslauthd on the command line. See saslauthd(
# for the list of accepted flags.
FLAGS=sasldb2
++++++++++++++++++++++++++++++++++++++++
[root@dmail etc]# saslpasswd2 -u test.cn -c test02 //为test02虚拟用户创建SMTP认证密码
Password: ****
Again (for verification): ****
感觉给利用saslpasswd2为虚拟用户设置了密码,按道理应该testsaslauthd 成功,不知道问题出在那里?
难道说,只能为系统用户设置密码?
还是有别的方法?
请各位共享一下,sasl方面的信息。 |
|