title: Django and AWS Simple Email Service
body: <p>I'm attempting to get a django site up and running and I'm trying to enable django's standard password reset service.</p>
  
  <p>My site is hosted by AWS EC2, so I figured I would use AWS SES for my email service. However, I can't get the smtp connection to work. Any idea on how to solve for the following error:</p>
  
  <p>Exception Type: SMTPSenderRefused
  Exception Value: (530, b'Authentication required', 'example@example.com')</p>
  
  <p>I've looked at the following, but I'd prefer to stay with django's built-in email back-ends if possible:</p>
  
  <ul>
  <li><a href="https://github.com/django-ses/django-ses" rel="nofollow noreferrer">https://github.com/django-ses/django-ses</a></li>
  <li><a href="https://github.com/azavea/django-amazon-ses" rel="nofollow noreferrer">https://github.com/azavea/django-amazon-ses</a></li>
  <li><a href="https://stackoverflow.com/questions/8580754/amazon-ses-smtp-with-django">Amazon SES SMTP with Django</a></li>
  </ul>
  
  <p>Email Settings:</p>
  
  <pre><code>EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  EMAIL_HOST = 'email-smtp.us-west-2.amazonaws.com'
  EMAIL_PORT = 587 # (I've also tried 25, 465, &amp; 2587)
  EMAIL_HOST_USER = ''
  EMAIL_PASSWORD = ''
  EMAIL_USE_TLS = True
  DEFAULT_FROM_EMAIL = 'example@example.com' # but my real email address
  </code></pre>
  
  <p>My EMAIL_HOST_USER and EMAIL_PASSWORD are set to my SMTP credentials I obtained by following the instructions at: <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html</a></p>
  
  <p>Also, I was sure to verify my DEFAULT_FROM_EMAIL and my domain following these instructions: <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html</a></p>
  
  <p>And DKIM is enabled and my nameservers have been updated.</p>
  
  <p>Any help would really be appreciated.</p>
  
  <p>UPDATE:</p>
  
  <p>I was able to get the django email send working with the django-ses 3rd party library, but I'm still not able to figure out why the standard backend doesn't work via SMTP.</p>
  
  <p>I think there is definitely something wrong with my code as I went so far as to switch email clients from AWS SES to Zoho mail and I'm still receiving the same 530 Authentication required error.</p>
  
  <pre><code>EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  EMAIL_HOST = 'smtp.zoho.com'
  EMAIL_PORT = 587
  EMAIL_HOST_USER = 'support@example.com'
  EMAIL_USE_TLS = True
  DEFAULT_FROM_EMAIL = 'support@example.com'
  EMAIL_PASSWORD = ''
  </code></pre>