Onpremise: Sentry can not change the email config

Created on 6 Mar 2020  路  4Comments  路  Source: getsentry/onpremise

image

I try different way which including the docker-compose.yml and config.yml. I can not change the config until now. How should I do for this situation.

sentry version 10

Most helpful comment

Due to my problem, I don't add right mail backend. Some email provider (Tencent exmail) need to use SSL instead of TLS. So I need to add mail.backend: 'django_smtp_ssl.SSLEmailBackend' and mail.use-tls: false in config.yml.

mail.backend: 'django_smtp_ssl.SSLEmailBackend'  # Add this
mail.host: 'hwsmtp.exmail.qq.com'
mail.port: 465
mail.username: '[email protected]'
mail.password: 'password'
mail.use-tls: false
# The email address to send on behalf of
mail.from: '[email protected]'

After that use the following command same as you:

docker-compose down
docker-compose build
docker-compose up -d

All 4 comments

you will have to do a;

docker-compose down
docker-compose build
docker-compose up -d

to rebuild the containers with the new settings in config.yml

(might need to also put a sudo in front of those commands)

You need to do this if you modify any of the settings (outside of the sentry admin) as these files are baked into the relevant container.

Due to my problem, I don't add right mail backend. Some email provider (Tencent exmail) need to use SSL instead of TLS. So I need to add mail.backend: 'django_smtp_ssl.SSLEmailBackend' and mail.use-tls: false in config.yml.

mail.backend: 'django_smtp_ssl.SSLEmailBackend'  # Add this
mail.host: 'hwsmtp.exmail.qq.com'
mail.port: 465
mail.username: '[email protected]'
mail.password: 'password'
mail.use-tls: false
# The email address to send on behalf of
mail.from: '[email protected]'

After that use the following command same as you:

docker-compose down
docker-compose build
docker-compose up -d

what is "mail.backend"?the default vaule is 'smtp'.

what is "mail.backend"?the default vaule is 'smtp'.

mail.backend is the backend which you use in your web application. e.g. smtp_ssl or smtp_tls.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WoLpH picture WoLpH  路  3Comments

marbon87 picture marbon87  路  5Comments

MaximilianKindshofer picture MaximilianKindshofer  路  6Comments

adrielliu picture adrielliu  路  3Comments

SteveEdson picture SteveEdson  路  3Comments