SASL LOGIN 的一般故障

SASL LOGIN 的一般故障

几年前,我使用本指南设置了我的服务器:http://flurdy.com/docs/postfix/当时机器运行的是 ubuntu 8.04 LTS,最近我将机器更新到了 12.04 LTS,但无法强制 SASL 工作,因此目前只能使用 Web SquirellMail 发送邮件

我可以提供所需的配置,但要知道这是我在日志中所拥有的:

Apr 19 10:59:10 web_addr postfix/smtpd[7669]: connect from __some_IP__
Apr 19 10:59:22 web_addr postfix/smtpd[7669]: Anonymous TLS connection established from __some_IP__: TLSv1 with cipher RC4-MD5 (128/128 bits)
Apr 19 10:59:27 web_addr postfix/smtpd[7669]: warning: __some_IP__: SASL LOGIN authentication failed: generic failure

并且没有关于失败原因的更多信息 - 在哪里可以搜索问题的原因? 接收和发送数据以前工作正常,现在我得到了这些。

还:

testsaslauthd -u _valid_user_ -p _user_password_ -f /var/spool/postfix/var/run/saslauthd/mux

结果是:

0: NO "authentication failed"

后配置

cyrus
dovecot

saslauthd -v

saslauthd 2.1.25
authentication mechanisms: sasldb getpwent kerberos5 pam rimap shadow ldap

答案1

OP 想要补充的是:

经过几次尝试、测试和大量调试...

发现我的配置文件有拼写错误:

/etc/postfix/sasl/smtpd.conf

当我输入以下内容时发现了它: saslfinger -s

其中有这样几行:

-- content of /etc/postfix/sasl/smtpd.conf --
pwcheck_method: saslauthd
mech_list: plain login cram-md5 digest-md5
#mech_list: plain login pam
log_level: 15
allow_plaintext: true
#auxprop_plugin: mysql
auxprop_plugin: sql
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: --- replaced ---
sql_passw: _MY_PASSWORD_

一开始没有注意到拼写错误,但注意到一行有“---替换---”信息,第二行没有,但应该......

相关内容