使用 sasldb 的 postfix 和 sasl 身份验证失败

使用 sasldb 的 postfix 和 sasl 身份验证失败

我真的不确定我的问题是什么。我已经检查了几个指南,并且我确信我已经正确设置了它,包括配置失败、重新启动服务、权限等。操作系统是 Ubuntu Server。

当测试时testsaslauthd -u myemail@mydomain-p password

我只得到:0: NO "authentication failed"

我的postfix.conf(注释已删除):

smtpd_sasl_auth_enable = yes
smtpd_sasl_type = cyrus
smtpd_sasl_path = smtpd
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_use_tls=no
smtpd_relay_restrictions = permit_mynetworks defer_unauth_destination
myhostname = mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname localhost.$mydomain localhost $mydomain
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.16.0.0/16
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
mydomain = mydomain
home_mailbox = Maildir/

我的 sasl smtp.conf

pwcheck_method:auxprop
auxprop_plugin: sasldb
mech_list: PLAIN LOGIN CRAM-MD5

我的 saslauthd 配置:

START=yes
DESC="SASL Authentication Daemon"
NAME="saslauthd"
MECHANISMS="sasldb"
MECH_OPTIONS=""
THREADS=5
OPTIONS="-c -m /var/run/saslauthd"

所有权限均正确,我已重新启动服务以确保。 mail.warn 显示以下内容:

warning: unknown[myip]: SASL LOGIN authentication failed: authentication failure

我可以做什么来排除故障?

相关内容