SMTP connection timeout with correct email config

I’m using Sentry to monitor a Django app. I copied the following working email settings from the Django app to my Sentry config file:

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'mail.privateemail.com'
EMAIL_HOST_USER = 'info@ookmijnbedrijf.nl'
EMAIL_HOST_PASSWORD = '***'
EMAIL_PORT = 465
EMAIL_USE_SSL = True
EMAIL_USE_TLS = False
SERVER_EMAIL = EMAIL_HOST_USER

Everything looks right on the SMTP Settings page, but when I try to send a test email I get this:

Connection unexpectedly closed: timed out

The Django app is sending emails correctly with these exact settings. Where’s the difference? What am I doing wrong?

EDIT: Does Sentry actually support SMTP with SSL?

1 Like

Hmm, I guess we don’t. We only support TLS. I didn’t even know Django had a setting for SSL, actually.

This should be easy for us to add support though, I guess it has just never come up before. I think TLS is way more common.

Thanks for getting back to me! I made an issue about this now. SSL support would be greatly appreciated! Namecheap hosted email recently switched to SSL, so I expect there will be many users like me stuck refreshing their Sentry issue page instead of getting notifications. :slight_smile: