Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to config SMTP Settings in Sentry?

How to config SMTP Settings in Sentry?

I set my SMTP mail-server configuration on onpremise/config.yml, then I did as follows:

sudo docker-compose run --rm web upgrade
sudo docker-compose up -d (before that, I removed previous consider containers)

But in Sentry mail setting panel not appeared my SMTP configs:

sentry SMTP setting


NOTE: I'm using onpremise sentry docker package.

What should I do?

Any help with this would be greatly appreciated.

like image 201
Benyamin Jafari Avatar asked May 15 '18 07:05

Benyamin Jafari


People also ask

What is email sentry?

Sentry provides support for both outbound, and incoming email. Inbound email is fairly limited in use, and currently it only supports processing replies to error and note notifications.


2 Answers

Problem solved:

I updated my Sentry version from 8.22.0 to 9.0.0 with Dockerfile and configure config.yml file as following:

A piece of config.yml on onpremise package:

###############
# Mail Server #
###############

mail.backend: 'smtp'  # Use dummy if you want to disable email entirely
mail.host: 'smtp.gmail.com'
mail.port: 587
mail.username: '[email protected]'
mail.password: '********'
mail.use-tls: true
# The email address to send on behalf of
mail.from: '[email protected]'

Dockerfile:

FROM sentry:9.0-onbuild

Or you can do $ git pull in onpremise path (to get latest changes).

Finally:

docker-compose build
docker-compose run --rm web upgrade
docker-compose up -d

like image 155
Benyamin Jafari Avatar answered Oct 11 '22 12:10

Benyamin Jafari


If you are running Docker check your docker-compose.yml

Most likely you overwrite SENTRY_EMAIL_HOST variable and other variables like the following:

SENTRY_EMAIL_HOST=smtp.gmail.com 
SENTRY_EMAIL_PORT=587 
SENTRY_EMAIL_PASSWORD={pass} 
SENTRY_EMAIL_USER={email} 
SENTRY_EMAIL_USE_TLS=true 
SENTRY_SERVER_EMAIL={email}

https://github.com/getsentry/onpremise/blob/master/docker-compose.yml#L24

like image 38
Andrew Savetchuk Avatar answered Oct 11 '22 12:10

Andrew Savetchuk