I was trying to enable SMTP emails for the on-premise docker server I have running on EC2, for which I did the following changes in sentry/config.yml
mail.host: '<removed>'
mail.port: 25
mail.username: '<removed>'
mail.password: '<removed>'
mail.use-tls: true
# The email address to send on behalf of
mail.from: '<removed>'
Then I ran ./install.sh.
But for some reason sentry got upgrade to 21.5 when im pretty sure it was 21.3 earlier. AFAIK, I had not done a Git pull or anything.
Regardless the service ran fine on accessing it, but I am no longer able to send events to it, i.e., any new events sent to sentry are no longer shown. I am also seeing a bunch of errors in compose logs, especially in relay, snuba-replacer, snuba-sessions-consumer, snuba-outcomes-consumer, snuba-consumer, snuba-transactions-consumer, subscription-consumer-events, subscription-consumer-transactions
Since then I have tried to git pull and install again, to update to latest version, and tried to install 21.3 again, nothing seems to work. I have also reverted config.yml to its original state and re-run installation, still Sentry does not catch errors
mail.backend: 'smtp' # Use dummy if you want to disable email entirely
#mail.host: 'smtp'
mail.host: 'smtp.sendgrid.com'
mail.port: 587
mail.username: 'apikey'
mail.password: '<removed>'
#mail.use-tls: true
# The email address to send on behalf of
mail.from: '<removed>'
I manually tested from the host machine, I am able to send emails via Telnet