jus*_*vol 5 amazon-web-services python-2.7 sentry amazon-ses
网上似乎没有关于此的任何信息...
您如何参数化sendry.conf.py以将Amazon SES后端用于电子邮件?
现在,在Django项目中,我们使用:
EMAIL_BACKEND ='django_ses.SESBackend'EMAIL_USE_SSL = True
AWS_ACCESS_KEY_ID ='密钥'AWS_SECRET_ACCESS_KEY ='秘密'
AWS_SES_REGION_NAME ='eu-west-1'AWS_SES_REGION_ENDPOINT ='email.eu-west-1.amazonaws.com'
岗哨有点不同,有人有见识吗?
非常感谢,
您可以将 Sentry 配置为使用 SMTP 服务器发送电子邮件,并且可以从 SES 获取 SMTP 凭据。
要设置 SES 以使用 SMTP 接口,请遵循以下指南:http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp.html
然后配置您的哨兵安装以使用这些凭据(s. https://docs.sentry.io/server/config/#mail)
例子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: 'sentry@example.com'
Run Code Online (Sandbox Code Playgroud)