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
posta 3 mesi fa97 visualizzazioni
1 Risposta
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
con risposta 3 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande