当试图发送带有MySQL虚拟用户的Postfix + Courier的465安全SMTP上的电子邮件时,我遇到了一个问题。 我能够连接到IMAP安全和下载,我也可以发送邮件在25端口不安全。 我正在尝试使用SASL进行传出。 当我尝试telnet端口465其拒绝。 当我尝试发送消息时,我在/var/log/mail.log中获得了这个信息
Apr 2 00:24:34 Lucid postfix/smtpd[3714]: connect from pool-74-111-178-60.pitbpa.fios.verizon.net[74.111.178.60] Apr 2 00:24:34 Lucid postfix/smtpd[3714]: warning: SASL authentication problem: unknown password verifier Apr 2 00:24:34 Lucid postfix/smtpd[3714]: warning: SASL authentication failure: Password verification failed Apr 2 00:24:34 Lucid postfix/smtpd[3714]: warning: pool-74-111-178-60.pitbpa.fios.verizon.net[74.111.178.60]: SASL PLAIN authentication failed: no mechanism available Apr 2 00:24:34 Lucid postfix/smtpd[3714]: warning: SASL authentication problem: unknown password verifier Apr 2 00:24:34 Lucid postfix/smtpd[3714]: warning: pool-74-111-178-60.pitbpa.fios.verizon.net[74.111.178.60]: SASL LOGIN authentication failed: no mechanism available Apr 2 00:24:35 Lucid postfix/smtpd[3714]: disconnect from pool-74-111-178-60.pitbpa.fios.verizon.net[74.111.178.60] /etc/postfix/sasl/smtpd.conf - http://74.111.178.60/random/smtpd.conf /etc/postfix/main.cf - http://74.111.178.60/random/main.cf
首先检查你的random/smtpd.conf文件中的MECHANISMS。 在我的操作系统上是/etc/default/saslauthd 。
我使用PAMauthentication,首先使用来自/etc/passwd的login名进行testing,因为它似乎设置为PAM。 另外为了保持简单,您可以尝试通过端口25使用SASL,这也是相当不错的。
如果该目录不存在,则创build该目录: /var/spool/postfix/var/run/saslauthd/用于假脱机。
我的/etc/default/saslauthd看起来像这样。 希望你的错误就像改变MECHANISMS="pam"到mysql或类似的一样简单:
START=yes DESC="SASL Authentication Daemon" NAME="saslauthd" MECHANISMS="pam" MECH_OPTIONS="" THREADS=5 OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"