Postfix SASL SMTP

Postfix SASL SMTP

当我尝试使用 Postfix + Courier 和 MySQL 虚拟用户通过 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

答案1

首先检查文件中的 MECHANISMS random/smtpd.conf。在我的操作系统上它是/etc/default/saslauthd

我使用 PAM 身份验证,首先使用登录进行测试,因为/etc/passwd它似乎设置为 PAM。另外,为了简单起见,您可以尝试在端口 25 上使用 SASL,它也非常好用。

如果不存在则创建此目录:/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"

相关内容