Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS SES Upgrade from version 2 to version 4?

We received an email recently from AWS:


Subject: [Action Required] Important notification regarding Simple Email Service (SIGv2 Deprecation)

Body: We recently observed Signature Version 2 requests on an Amazon SES SMTP endpoint originating from your account. xxxxxxxxxxxxxx etc


Problem:

  • We are not using AWS SES API to send requests, we just use the SmtpClient to send emails. This method does not provide for signing requests. Their own example does not include any signing. https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-using-smtp-net.html
  • In the SES dashboard there is no option for changing the version
  • For the current version 2, we have never added any Signature.

Question: So what exactly do I need to upgrade ?

like image 849
Nigel Fds Avatar asked Jan 20 '21 01:01

Nigel Fds


People also ask

How do I migrate to Signature 4?

To move to Signature Version 4: - If you are self-signing your requests, refer to our documentation for Authenticating requests to the Amazon SES API [1] and creating a canonical request for Signature Version 4 [2]. - If you are not self-signing your requests, simply update your SDK/CLI to the latest version.

What is SESV2?

class SESV2. Client. A low-level client representing Amazon Simple Email Service (SES V2) Amazon SES is an Amazon Web Services service that you can use to send email messages to your customers. If you're new to Amazon SES API v2, you might find it helpful to review the Amazon Simple Email Service Developer Guide .

Is AWS SES cheap?

$0 for the first 1,000 emails you receive, and $0.10 for every 1,000 emails you receive after that. $0.09 for every 1,000 incoming email chunks (see Pricing details for more information). You can use the Amazon Web Services Monthly Calculator to estimate your monthly charges for using Amazon SES.


Video Answer


3 Answers

AWS Finally send me a new email with instructions:

To migrate to Signature Version 4, please replace your existing SMTP credentials using the appropriate procedure relative to your setup:

  • If you generated your SMTP credentials using the SES Console, simply create new credentials and replace your existing credentials with the new ones.
  • If you derived your SMTP credentials from your AWS credentials, make sure you are using the Signature Version 4 algorithm. If you rely on a library to do this conversion, check if the library has a newer release that uses Signature Version 4 algorithm and migrate to it. Otherwise, you will need to either derive the credentials from another library that uses Signature Version 4 algorithm or generate credentials using the SES console.
like image 90
Nigel Fds Avatar answered Oct 20 '22 15:10

Nigel Fds


If you are using SES through hSMTP (i.e. not through the API) you have 2 options:

  1. Obtaining Amazon SES SMTP credentials using the Amazon SES console
  2. Obtaining Amazon SES SMTP credentials by converting existing AWS credentials

In the second link, there are also code samples in Java and Python.

You can see that the version variable is set to 4 (which indicates signature version 4).

After you have the "new" password - you should put this value as the password value when using the SMTPCLient

like image 35
Mr. Leshem Avatar answered Oct 20 '22 13:10

Mr. Leshem


I'm also in the same situation. I do not know how to upgrade it to version 4. I read it somewhere that I just need to re create the SMTP credentials. But I'm not sure how to do it.

like image 1
vidya Avatar answered Oct 20 '22 15:10

vidya