Problem to solve
If I add invitation to a new user, EMail doesn’t received.
If I have a look on CLI with “mailq” or “postqueue -p” I see the deferred Emails, as the stay in the spool forever.
If I check /var/log/mail.log
, I see error messages like:
postfix/smtp[6377]: connect to mail.halbe.com[178,210,125,66]:25: Connection timed out
I see that message for each invitation-mail which is pending in the spool, even if it’s on any other servers (like gmail.com, gmx.net etc.)
If I do a ping to the mail.halbe.com
(or to their IP) from the CLI of the Gitlab-Server, it succeed
Configuration
/etc/gitlab/gitlab.rb
smtp section looks like this:
gitlab_rails [‘smtp_enable’] = true
gitlab_rails [‘smtp_address’] = “mail01.xyz.com”
gitlab_rails [‘smtp_port’] = 587
gitlab_rails [‘smtp_user_name’] = “user@my-domain.net”
gitlab_rails [‘smtp_password’] = “mypassword”
gitlab_rails [‘smtp_domain’] = “mail01.xyz.com”
gitlab_rails [‘smtp_authentication’] = “plain”
gitlab_rails [‘smtp_enable_starttls_auto’] = true
gitlab_rails [‘smtp_tls’] = false
gitlab_rails [‘gitlab_email_enabled’] = ‘true’
gitlab_rails['gitlab_email_from'] = "user@my-domain.net"
gitlab_rails['gitlab_email_display_name'] = "gitlab-server"
gitlab_rails['gitlab_email_reply_to'] = "noreply@my-domain.net"
Versions
Please select whether options apply, and add the version information.
- Self-managed
- GitLab.com SaaS
Versions
- GitLab GitLab Community Edition v16.9.1
I wonder if Gitlab really try to send the Emails via external SMTP, as I can find the invitation-mails in my local spool-server.
Shouldn’t they be delivered to the gitlab-server I’ve set up in the gitlab.rb, so that the logs on this server should appear?