【发布时间】:2017-02-28 14:21:17
【问题描述】:
我已准备好将 SES 用于生产,因此我提高了发送限制。这是来自 AWS 的电子邮件:
“恭喜!在审核了您的案例后,我们已将您在 AWS 区域美国东部(弗吉尼亚北部)的发送配额增加到每天 50,000 条消息,并将您的最大发送速率增加到每秒 14 条消息。您的账户也已移出沙盒,因此您不再需要验证收件人地址。”
我配置了 sSMTP,因此我可以使用 mail 命令、使用 AWS 端点和生成的 SMTP 凭证发送电子邮件。我发送了一封电子邮件,我收到了这个:
“17 月 17 日 14:08:10 ia sSMTP[20486]: 554 邮件被拒绝:电子邮件地址未验证。以下身份在 US-EAST-1 区域中未通过检查:root , root@ia.internal.vdopia .com”
SMTP 端点是:email-smtp.us-east-1.amazonaws.com:587
我做错了什么?
更新
syslog的输出:
syslog 的输出:
Oct 19 07:29:44 ia sSMTP[427]: Creating SSL connection to host
Oct 19 07:29:44 ia sSMTP[427]: 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-1652178317 ANxvvoY79LhkdX5l8cYI
Oct 19 07:29:44 ia sSMTP[427]: EHLO ia.internal.vdopia.com
Oct 19 07:29:44 ia sSMTP[427]: 250 Ok
Oct 19 07:29:44 ia sSMTP[427]: STARTTLS
Oct 19 07:29:44 ia sSMTP[427]: 220 Ready to start TLS
Oct 19 07:29:44 ia sSMTP[427]: SSL connection using RSA_AES_128_CBC_SHA1
Oct 19 07:29:44 ia sSMTP[427]: EHLO ia.internal.vdopia.com
Oct 19 07:29:44 ia sSMTP[427]: 250 Ok
Oct 19 07:29:44 ia sSMTP[427]: AUTH LOGIN
--- removing some lines
Oct 19 07:29:44 ia sSMTP[427]: 235 Authentication successful.
Oct 19 07:29:44 ia sSMTP[427]: MAIL FROM: <root@ia.internal.vdopia.com>
Oct 19 07:29:44 ia sSMTP[427]: 250 Ok
Oct 19 07:29:44 ia sSMTP[427]: RCPT TO:<ayush.sharma@vdopia.com>
Oct 19 07:29:44 ia sSMTP[427]: 250 Ok
Oct 19 07:29:44 ia sSMTP[427]: DATA
Oct 19 07:29:44 ia sSMTP[427]: 354 End data with <CR><LF>.<CR><LF>
Oct 19 07:29:44 ia sSMTP[427]: Received: by ia.internal.vdopia.com (sSMTP sendmail emulation); Wed, 19 Oct 2016 07:29:44 +0000
Oct 19 07:29:44 ia sSMTP[427]: From: "root" <root@ia.internal.vdopia.com>
Oct 19 07:29:44 ia sSMTP[427]: Date: Wed, 19 Oct 2016 07:29:44 +0000
Oct 19 07:29:44 ia sSMTP[427]: Subject: testing
Oct 19 07:29:44 ia sSMTP[427]: To: <ayush.sharma@vdopia.com>
Oct 19 07:29:44 ia sSMTP[427]: X-Mailer: mail (GNU Mailutils 2.99.98)
Oct 19 07:29:44 ia sSMTP[427]:
Oct 19 07:29:45 ia sSMTP[427]: .
Oct 19 07:29:45 ia sSMTP[427]: 554 Message rejected: Email address is not verified. The following identities failed the check in region US-EAST-1: root <root@ia.internal.vdopia.com>, root@ia.internal.vdopia.com
【问题讨论】:
-
root@ia.internal.vdopia.com是您的发件人地址吗? -
我没有明确设置任何东西,但是当使用 mail 命令时,它会从 root 发送它,并附加主机名,在这种情况下是 ia.internal.vdopia.com。
-
我尝试将 Debug=Yes 添加到 ssmtp.conf 并且调试数据显示那里没有错误。正在检查 SMTP 凭据,它只是在我上面提到的 SES 错误中失败。
-
您在 SES 中验证了哪个域?是
ia.internal.vdopia.com吗?
标签: amazon-web-services amazon-ses