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

  1. Set gitlab_rails SMTP enablement, address, port and authentication in /etc/gitlab/gitlab.rb; set gitlab_email_from to an authorized sender.
  2. Configure TLS flags for the provider’s submission mode without disabling certificate verification; run sudo gitlab-ctl reconfigure.
  3. 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.

Official documentation

Have Pilae operate GitLab

We agree what to monitor, how to recover and who responds when something breaks. Bring your existing deployment or start with a new one.