【问题标题】:AWS SES: Stuck in sandbox modeAWS SES:陷入沙盒模式
【发布时间】: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


【解决方案1】:

尽管如此,这个问题得到了正确的回答,也许这个提示可以帮助其他人。在激活并从 AWS SES Sandbox 切换到生产模式(支持增加限制的请求)后,我意识到使用旧的“SMTP IAM 用户”会导致同样的问题。只需在生产授权后创建一个新的“SMTP IAM 用户”。我真的无法解释它,但现在已经成功了好几次了。

【讨论】:

    【解决方案2】:

    SMTP Response Codes Returned by Amazon SES

    当您的帐户移出沙盒时,您无需验证收件人的地址。但您仍需验证发件人的地址或域。从您的帖子看来,您尚未验证发件人的地址。记得验证出现在的地址/域:

    • 发件人
    • 来源
    • 发件人/返回路径

    您可以发布您用于发送邮件的实际邮件命令/脚本吗?

    【讨论】:

    • 我使用的是:mail -s 'testing' ayush.sharma@vdopia.com &lt; /dev/null我的机器主机名是ia.internal.vdopia.com
    • 成功了!验证域是我需要做的。谢谢:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-10-20
    • 1970-01-01
    • 2012-08-31
    • 1970-01-01
    • 1970-01-01
    • 2020-01-17
    • 2012-04-20
    相关资源
    最近更新 更多