How to debug GitLab e-mail notifications; users aren't notified of repo changes

Hey, folks! :slight_smile:

I’m going nuts here.

I’m trying to get e-mail notifications working over SMTP with MS Exchange. I’ve followed the instructions for connecting to Exchange without authentication and was able to successfully send e-mail through the Ruby console and through the GitLab admin area. But so far repository activity has never generated an e-mail notification to anyone.

How do I debug e-mail functionality in GitLab?

I tried looking at all of the /var/log/gitlab/* logs I could find and don’t see any SMTP activity. I must not be looking for the right thing, right?

Thanks in advance!

Okay, I finally found e-mails being logged in the production.log file.

What about when repo activities trigger e-mails? Where is that being logged?

Email notifications have multiple scopes and can be configured at the global, group, project level.

https://docs.gitlab.com/ee/user/profile/notifications.html

You can test sending emails properly using the rails console

https://docs.gitlab.com/omnibus/settings/smtp.html#testing-the-smtp-configuration

Details will be captured in /var/log/gitlab/gitlab-rails/production.log, as you’ve already discovered :slight_smile:

1 Like

Thank you for your reply, @gitlab-greg ! :slight_smile:

Well then, it seems that I need to dig a little deeper. I will try to remember to update this conversation when I figure out what the problem is.

1 Like