Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sentry configuration with Amazon SES

Tags:

There seems to be nothing on the web about this...

How do you parametrize sentry.conf.py to use Amazon SES backend for emails?

Right now, in a Django project, we use:

EMAIL_BACKEND = 'django_ses.SESBackend'
EMAIL_USE_SSL = True

AWS_ACCESS_KEY_ID = 'key'
AWS_SECRET_ACCESS_KEY = 'secret'

AWS_SES_REGION_NAME = 'eu-west-1'
AWS_SES_REGION_ENDPOINT = 'email.eu-west-1.amazonaws.com'

Sentry is a bit different, anyone has insights?

Thanks a lot,

like image 738
justinlevol Avatar asked Jan 10 '17 16:01

justinlevol


1 Answers

You can configure sentry to send emails using a SMTP Server and you can obtain SMTP credentials from SES.

To set up SES for using the SMTP interface follow this guide: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp.html

Then configure your sentry installation to use those credentials (s. https://docs.sentry.io/server/config/#mail)

Example config.yml:

mail.backend: 'smtp'
mail.host: 'email-smtp.eu-west-1.amazonaws.com'
mail.port: 587
mail.username: 'myuser'
mail.password: 'mypassword'
mail.use-tls: true
# The email address to send on behalf of
mail.from: '[email protected]'
like image 164
Jann Avatar answered Sep 25 '22 10:09

Jann