Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon-ses -Error: 554, b'Message rejected: Email address is not verified?

I want to use Amazon's Simple Email Service to send emails.

I verified my domain as well as the email address I want to send from. I'm not in sandbox mode.

I'm able to receive email when I sign up but when I try to reset the password I get SMTPDataError with exception

(554, b'Message rejected: Email address is not verified. The following identities failed the check in region AP-SOUTH-1: webmaster@localhost')

How can this issue be resolved?

like image 577
Monu Yadav Avatar asked Dec 10 '25 07:12

Monu Yadav


1 Answers

As it shows in the error message, Django is using webmaster@localhost for sending the email through Amazon SES. However, webmaster@localhost is an unverified email and one that is not possible to verify. The intended FROM email address must be a different one but by default Django uses webmaster@localhost.

To resolve this add a property in settings.py file of project

DEFAULT_FROM_EMAIL = '[email protected]>'

so that Django uses your intended FROM email address.

like image 54
Monu Yadav Avatar answered Dec 12 '25 20:12

Monu Yadav