SES moved out of sandbox, but still no emails to unverified allowed

0

I have a Django site that I am using SES for password reset and have set-up in AWS_SES_REGION_ENDPOINT = "email.us-east-1.amazonaws.com" . For trouble-shooting, I added a few emails in the verified identities area. The email works fine when I send TO these emails. If I try to send to anyother non verified email I receive the following error: An error occurred (MessageRejected) when calling the SendRawEmail operation: Email address is not verified. The following identities failed the check in region US-EAST-1: mymailaddress@hotmail.com

I did verify that I am out of Sandbox mode and do not have the warning at the top of the dashboard. Is there something I can do to troubleshoot this?

  • I am out of sandbox
  • I can send to verified identities
  • I cannot send to non-verified identities
  • Congratulations! Your DKIM setup for the domain mysite.com is complete. You can now send DKIM-signed emails from any address within this domain through both Amazon SES.

    For more information about DKIM, see the Amazon SES Developer Guide at http://docs.aws.amazon.com/ses/latest/DeveloperGuide/dkim.html . Please note that this email only relates to the US East (Ohio) region.

profile picture
gefragt vor 4 Monaten128 Aufrufe
1 Antwort
1
Akzeptierte Antwort

This was a rookie mistake. I had 2 regions set-up in Amazon SES. The one that was out of the sandbox (us-east-2) and one still in "sandbox" us-east-1. My Django code was using the wrong one. Changed the settings.py email settings to us-east-2:

    EMAIL_BACKEND = 'django_ses.SESBackend'
    EMAIL_HOST = 'email-smtp.us-east-2.amazonaws.com'
    EMAIL_PORT = 587
    EMAIL_USE_TLS = True    
    AWS_SES_REGION_ENDPOINT = "email.us-east-2.amazonaws.com" 
    AWS_SES_REGION_NAME = 'us-east-2'
    DEFAULT_FROM_EMAIL = 'noreply@mysite.com'
profile picture
beantwortet vor 4 Monaten
profile picture
EXPERTE
überprüft vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen