Email ubuntu 12后缀smtpd身份验证

Email ubuntu 12后缀smtpd身份验证,email,ubuntu,postfix-mta,smtpd,Email,Ubuntu,Postfix Mta,Smtpd,我刚刚用courier配置了一个后缀。我正在使用tls获取和接收电子邮件 我使用本指南配置Ubuntu的服务器(新安装): 使用squirrelmail网络客户端时,我能够发送和接收电子邮件,但使用iPhone或任何其他客户端时,我只能接收电子邮件 我在指南方向上所做的唯一更改是使用了远程MySQL服务器(在AmazonRDS上),而不是本地主机 在我的服务器日志中,当我尝试发送电子邮件时,会收到以下消息: Aug 3 08:10:34 ip-10-152-164-180 postfix/sm

我刚刚用courier配置了一个后缀。我正在使用tls获取和接收电子邮件

我使用本指南配置Ubuntu的服务器(新安装):

使用squirrelmail网络客户端时,我能够发送和接收电子邮件,但使用iPhone或任何其他客户端时,我只能接收电子邮件

我在指南方向上所做的唯一更改是使用了远程MySQL服务器(在AmazonRDS上),而不是本地主机

在我的服务器日志中,当我尝试发送电子邮件时,会收到以下消息:

Aug  3 08:10:34 ip-10-152-164-180 postfix/smtpd[5728]: warning: hostname spotCUST.spot.net does not resolve to address 93.37.128.33: Name or service not known
Aug  3 08:10:34 ip-10-152-164-180 postfix/smtpd[5728]: connect from unknown[93.37.128.33]
Aug  3 08:10:35 ip-10-152-164-180 postfix/smtpd[5728]: warning: SASL authentication failure: Password verification failed
Aug  3 08:10:35 ip-10-152-164-180 postfix/smtpd[5728]: warning: unknown[93.37.128.33]: SASL PLAIN authentication failed: authentication failure
Aug  3 08:10:35 ip-10-152-164-180 postfix/smtpd[5728]: lost connection after AUTH from unknown[93.37.128.33]
Aug  3 08:10:35 ip-10-152-164-180 postfix/smtpd[5728]: disconnect from unknown[193.37.128.333.37.128.33]
Aug  3 08:10:36 ip-10-152-164-180 postfix/smtpd[5728]: warning: hostname spotCUST.spot.net does not resolve to address 93.37.128.33: Name or service not known
Aug  3 08:10:36 ip-10-152-164-180 postfix/smtpd[5728]: connect from unknown[93.37.128.33]
Aug  3 08:10:37 ip-10-152-164-180 postfix/smtpd[5728]: warning: SASL authentication failure: Password verification failed
Aug  3 08:10:37 ip-10-152-164-180 postfix/smtpd[5728]: warning: unknown[93.37.128.33]: SASL PLAIN authentication failed: authentication failure
Aug  3 08:10:37 ip-10-152-164-180 postfix/smtpd[5728]: lost connection after AUTH from unknown[93.37.128.33]
Aug  3 08:10:37 ip-10-152-164-180 postfix/smtpd[5728]: disconnect from unknown[93.37.128.33]
Aug  3 08:10:37 ip-10-152-164-180 postfix/smtpd[5728]: warning: hostname spotCUST.spot.net does not resolve to address 93.37.128.33: Name or service not known
Aug  3 08:10:37 ip-10-152-164-180 postfix/smtpd[5728]: connect from unknown[93.37.128.33]
Aug  3 08:10:39 ip-10-152-164-180 postfix/smtpd[5728]: warning: SASL authentication failure: Password verification failed
Aug  3 08:10:39 ip-10-152-164-180 postfix/smtpd[5728]: warning: unknown[93.37.128.33]: SASL PLAIN authentication failed: authentication failure
Aug  3 08:10:39 ip-10-152-164-180 postfix/smtpd[5728]: lost connection after AUTH from unknown[93.37.128.33]
Aug  3 08:10:39 ip-10-152-164-180 postfix/smtpd[5728]: disconnect from unknown[93.37.128.33]
Aug  3 08:10:40 ip-10-152-164-180 postfix/smtpd[5728]: warning: hostname spotCUST.spot.net does not resolve to address 93.37.128.33: Name or service not known
Aug  3 08:10:40 ip-10-152-164-180 postfix/smtpd[5728]: connect from unknown[93.37.128.33]
Aug  3 08:10:41 ip-10-152-164-180 postfix/smtpd[5728]: warning: SASL authentication failure: Password verification failed
Aug  3 08:10:41 ip-10-152-164-180 postfix/smtpd[5728]: warning: unknown[93.37.128.33]: SASL PLAIN authentication failed: authentication failure
Aug  3 08:10:42 ip-10-152-164-180 postfix/smtpd[5728]: lost connection after AUTH from unknown[93.37.128.33]
Aug  3 08:10:42 ip-10-152-164-180 postfix/smtpd[5728]: disconnect from unknown[93.37.128.33]

有人知道出了什么问题吗?

我在前一周部署了postfix,所以我是这方面的新手,但正如我在您首先提供的日志中所看到的,您收到了警告:

postfix/smtpd[5728]:警告:主机名spotCUST.spot.net未解析为地址93.37.128.33:名称或服务未知

这意味着您必须在/etc/hosts中添加
127.0.0.1 spotCUST.spot.net

接下来的步骤是将Postfix配置为使用SASL进行SMTP验证。 确保已安装以下模块:

sudo apt get安装libsasl2-2 libsasl2模块

然后编辑/etc/default/saslauthd以激活saslauthd。删除START=yes前面的#,添加PWDIR、PARAMS和PIDFILE行,并编辑末尾的选项行:
#在自动运行saslauthd之前,需要取消注释
开始=是

PWDIR=“/var/spool/postfix/var/run/saslauthd”
PARAMS=“-m${PWDIR}”
PIDFILE=“${PWDIR}/saslauthd.pid”

mechaniss=“pam”

OPTIONS=“-c-m/var/spool/postfix/var/run/saslauthd”

注意:如果您愿意,可以使用“shadow”而不是“pam”。这将使用MD5哈希密码传输,是完全安全的。验证所需的用户名和密码将是您在服务器上使用的系统上的用户的用户名和密码。 接下来,更新/var/spool/postfix/var/run/saslauthd的dpkg“状态”。saslauthd init脚本使用此设置创建具有适当权限和所有权的丢失目录(从未工作,目录有问题):
dpkg statoverride——强制——更新——添加根sasl 755/var/spool/postfix/var/run/saslauthd

这可能会报告一个错误--update given“并且“/var/spool/postfix/var/run/saslauthd”目录不存在。您可以忽略这一点,因为当您启动saslauthd next时,它将被创建。 最后,启动saslauthd:
sudo/etc/init.d/saslauthd start

我是这方面的新手,但这就是我在工作站上工作时所做的。
也许你会发现。这是我完成部署所必须遵循的。

你好,克里斯托斯,我有你提到的所有软件包和所有设置。请注意,我将用户作为mysql表(虚拟)使用,而不是pamTry向sals用户添加后缀
usermod-a-gsal后缀
,我不知道还有什么原因。