GitLab outgoing mail
Route Linux-package GitLab notifications through an authenticated SMTP relay.
Last updated
On this page (5)
GitLab · Outgoing mail
Before you start
- GitLab Linux package and administrative shell.
- Approved sender, staging recipient and SMTP credentials.
Procedure
- Set gitlab_rails SMTP enablement, address, port and authentication in /etc/gitlab/gitlab.rb; set gitlab_email_from to an authorized sender.
- Configure TLS flags for the provider’s submission mode without disabling certificate verification; run sudo gitlab-ctl reconfigure.
- Send a test from the GitLab Rails console using Notify.test_email(…).deliver_now, then trigger a real project notification.
Verify the result
- Both messages arrive with the expected From address; review relay logs for the accepted message IDs.
- A rejected test credential is detectable through logs and restoring it recovers deliveries.
