Error sending mail using AWS SES

0

Pls how do I resolve this error: 'The SMTP server requires a secure connection or the client was not authenticated. The server response was: Authentication required'

Chris
asked 3 months ago85 views
1 Answer
0

This error indicates that the sending application didn't attempt to authenticate when it connected to the Amazon SES SMTP interface. Usually this error is seen if the SES API call request was signed using AWS Signature version 2 (SigV2), instead of AWS Signature version 4 (SigV4).

Note: If you created your SMTP credentials before January 10, 2019, your SMTP credentials were created using an older version of AWS SigV2. Credentials created after that date use AWS SigV4 by default.

Resolution

Check the creation time of the SMTP user by following these steps:

  1. Sign in to the AWS Management Console, and then open the AWS Identity and Access Management (IAM) console.
  2. In the navigation pane, choose Users, and then choose the SMTP user name.
  3. A new page loads. You can find "creation time" under summary.

If your SMTP user was created before January 10, 2019, then you receive an error because requests are signed using AWS SigV2.

To resolve the issue, create a new SMTP user from the SES console, and then replace the older SMTP user from your sending application. You can also derive the AWS Sigv4 SMTP username and password from IAM user by converting existing AWS credentials.

If the issue persists, or if your SMTP user was created after January 10, 2019, then open a case with SES support to investigate further.

AWS
zsewell
answered 3 months ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions