Username
Username

Reputation: 3663

SMTPRecipientsRefused: Sender address rejected: not owned by user

I have a Django app running on a server with uWSGI and nginx.

In my local_settings.py file I have this:

###############
# EMAIL SETUP #
###############
EMAIL_HOST = 'smtp.privateemail.com'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'MY EMAIL PASSWORD'
EMAIL_PORT = 465
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True


########################
# OTHER EMAIL SETTINGS #
########################
ADMIN_EMAIL = "[email protected]"
SUPPORT_EMAIL = "[email protected]"
DEFAULT_FROM_EMAIL = ADMIN_EMAIL
SERVER_EMAIL = ADMIN_EMAIL

I run python manage.py runserver on my local machine in the Django project's virtual environment. I fill out the password reset form at password_rest/ using the email [email protected] and submit it. I get this error.

SMTPRecipientsRefused: {u'[email protected]': (553, '5.7.1 <[email protected]>: Sender address rejected: not owned by user [email protected]')}

My website's email provider is Namecheap.

Why do I get this error when testing on my local machine? What must I change/add to get rid of it?

Upvotes: 0

Views: 3978

Answers (1)

Username
Username

Reputation: 3663

Changed EMAIL_HOST = 'smtp.privateemail.com' to EMAIL_HOST = 'mail.privateemail.com'

Upvotes: 1

Related Questions