Sentry sending mail via SES

Greetings,

im struggling a bit with sending emails from sentry VIA SES on AWS.
Im using GitHub - getsentry/docker-sentry: Docker Official Image packaging for Sentry to create the images and feed all the settings via ENVs.
my ENVs for mailing look like this:

|SENTRY_EMAIL_HOST|email-smtp.eu-west-1.amazonaws.com|
|SENTRY_EMAIL_PASSWORD|xxxx|
|SENTRY_EMAIL_PORT|587|
|SENTRY_EMAIL_USE_TLS|True|
|SENTRY_EMAIL_USER|xxxx|

sadly this fails with a STARTTLS error:
18:09:25 [ERROR] celery.worker.job: Task sentry.tasks.email.send_email[c0888b62-b699-4ebf-92fc-db84dc81bc4f] raised unexpected: SMTPAuthenticationError(530, 'Must issue a STARTTLS command first') (data={u'hostname': 'celery@eb47693186cf', u'name': 'sentry.tasks.email.send_email', u'args': '[]', u'internal': False, u'kwargs': "{'message': <django.core.mail.message.EmailMultiAlternatives object at 0x7f9273b0bdd0>}", u'id': 'c0888b62-b699-4ebf-92fc-db84dc81bc4f'})

im unsure if im running into this issue: Missing support for SMTP with SSL · Issue #4252 · getsentry/sentry · GitHub ?

anyone got smtp working on AWS with SES?

greetings

Christian

solved after fixing a typo in the Environment :wink:

Are you configuring the ENV variables into the docker-compose.yml or sentry.conf.py file?

we are getting the ENVs from our docker environment.

1 Like