self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

Sentry can not change the email config

Open nature1995 opened this issue 6 years ago • 4 comments

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

nature1995 avatar Mar 06 '20 01:03 nature1995

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.

cleathley avatar Mar 06 '20 08:03 cleathley

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

nature1995 avatar Mar 06 '20 09:03 nature1995

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

zffocussss avatar Mar 26 '20 07:03 zffocussss

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.

nature1995 avatar Apr 30 '20 22:04 nature1995