Article ID: 113866, created on Oct 16, 2013, last review on May 11, 2014

  • Applies to:
  • Plesk Automation 11.5
  • Plesk for Linux/Unix

问题

尽管使用的是有效的登录验证凭据,也无法实现 SMTP 验证:

~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 plesk104.host ESMTP Postfix
auth login
334 VXNlcm5hbWU6
YWJlemJvcm9kb3ZhQHBhcmFsbGVscy5jb20=
334 UGFzc3dvcmQ6
MTIzcXdl
535 5.7.8 Error: authentication failed: authentication failure


在邮件日志中显示了以下错误:

/usr/local/psa/var/log/maillog
---8<---
May 12 07:52:38 plesk104 postfix/smtpd[7538]: warning: localhost.localdomain[127.0.0.1]:SASL login authentication failed: authentication failure
--->8---


我运行了 mchk 工具但是没有任何帮助。我如何解决此问题?

解决方案

核查 smtpd.conf 的配置是否正确:

/usr/lib64/sasl2/smtpd.conf
--->8---
pwcheck_method: auxprop saslauthd
auxprop_plugin: sql_sqlite3
saslauthd_path:/var/spool/postfix/private/plesk_saslauthd
mech_list:DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
auto_transition: yes
sql_engine: sqlite3
sql_hostnames: localhost
sql_database:/var/spool/postfix/plesk/passwd.db
sql_select:SELECT `%p` FROM domains d, users u WHERE u.name='%u' and d.name='%r' and d.status=0 and u.status=0 and u.dom_id=d.id
sql_verbose: yes
log_level:9
---8<---

a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c 33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article