Emails are not enabled in Sentry on-premise

I did email configurations like this in config.yml

mail.backend: ‘smtp’ # Use dummy if you want to disable email entirely
mail.host: ‘smtp.gmail.com
mail.port: 25
mail.username: ‘example@gmail.com’
mail.password: ‘xxxxxxxxxxx’
mail.use-ssl: true
mail.from: ‘example@gmail.com’

But still I am not getting any emails. Can anyone please help solving this issue?

We’ll need your worker logs to diagnose. Also, did you try using the /manage page to send a test email?

Yes, I tried using the /manage page. It is showing this error “[Errno 99] Cannot assign requested address”.

I don’t have an idea on how to get those worker logs. Can you please tell me?

If you are getting an error from the manage page, we can look at sentry web logs too: docker-compose logs web (run this right after you get the error so we get relevant logs closer to the end)

You can also run docker-compose logs worker to get worker logs. These are documented here: https://develop.sentry.dev/self-hosted/troubleshooting/#general

These are web logs

These are worker logs

Please help me in resolving this issue.

any update on this?

smtp.gmail.com does not accept connections from port 25: Check Gmail through other email platforms - Gmail Help

I think that’s your issue.

I changed the port. It’s working now. Test mail has sent successfully.
Thank you.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.