Closed5

AWS SES SDK 「 Net::SMTPAuthenticationError」

がひゅーがひゅー
[2021-12-13T18:24:11.031743 #1] ERROR -- : [ActiveJob] [ActionMailer::DeliveryJob] [7691353e-b534-454b-9b2f-8eb63ff78ee3] Error performing ActionMailer::DeliveryJob (Job ID: 7691353e-b534-454b-9b2f-8eb63ff78ee3) from Async(mailers) in 1084.7ms: Net::SMTPAuthenticationError (535 Signature Version 2 is deprecated for use with SES from March 26, 2021. From that date on, we are progressively rejecting such requests. To resolve the issue, you must migrate to Signature Version 4. If you created your SMTP credentials in the SES Console, please create new credentials and replace the former ones. If you are deriving Signature Version 2 credentials from a IAM user, please start using the Signature Version 4 algorithm: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html

以下を参考にGem変更
https://www.yokoyan.net/entry/2020/07/17/080000

がひゅーがひゅー

https://qiita.com/tentatsu/items/4cc693d46c244c5d6a47

試すが、

[ActiveJob] [ActionMailer::DeliveryJob] [86d224d1-e6ba-481e-8e11-dea311e50c21] Error performing ActionMailer::DeliveryJob (Job ID: 86d224d1-e6ba-481e-8e11-dea311e50c21) from Async(mailers) in 574.98ms: Aws::SES::Errors::MessageRejected (Email address is not verified. The following identities failed the check in region AP-NORTHEAST-1: user-address@example.com, =?UTF-8?B?Z2lnYmFzZemBi+WWtuS6i+WLmedssWxgA==?= <no-reply@example.com>):
がひゅーがひゅー

送信元アドレスの検証

https://docs.aws.amazon.com/ja_jp/ses/latest/DeveloperGuide/verify-addresses-and-domains.html

続けてエラー (送信元 no-reply@ の未検証が消えた)

[ActiveJob] [ActionMailer::DeliveryJob] [4cc7b9a4-6b2b-4a45-a86f-45f4031ef589] Error performing ActionMailer::DeliveryJob (Job ID: 4cc7b9a4-6b2b-4a45-a86f-45f4031ef589) from Async(mailers) in 317.94ms: Aws::SES::Errors::MessageRejected (Email address is not verified. The following identities failed the check in region AP-NORTHEAST-1:  user-address@example.com ):
がひゅーがひゅー

制限解除されると、送信に成功した。

このたびは、送信制限の引き上げ申請をご送信いただき、ありがとうございます。新たな送信クォータは、1 日あたり 50,000 メッセージとなります。新たな最大送信レートは、毎秒 14 メッセージです。また、お客様のアカウントを Amazon SES サンドボックスから移動いたしました。

このスクラップは2021/12/16にクローズされました