3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWS SESでたまにメールが送られない(2021年3月頃から)

Posted at

AWSのSESを使っている本番環境で急にメールが 「たまに」 送られなくなった。
ログにはこんなメッセージが。

[_lastResponse:protected] => Array
    (
        [0] => Array
            (
                [code] => 535
                [message] => 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
            )
    )

どうやらcredentialsの仕組みが変わったからなんか対応しろと言ってるらしい。
リンク先を見ると難しいことが書いてあるが対応は

SESの画面で「Create My SMTP Credentials」ボタンからIAMユーザ再発行して
そのID、パスワードに置き換えましょう。それだけで良さそうです。

スクリーンショット 2021-04-16 10.11.31.png

色々難しいことを書いてあるサイトが多かったけどこれだけでした。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?