Combine Gitlab With Tencent Exmail


Official document gives an example of gmail configuration, however, it’s slightly different when it comes to tencent exmail server.

Edit the configuration file /etc/gitlab/gitlab.rb

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = ""
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "[email protected]"
gitlab_rails['smtp_password'] = "pass"
gitlab_rails['smtp_domain'] = ""
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true

gitlab_rails['gitlab_email_from'] = '[email protected]' 
gitlab_rails['gitlab_email_reply_to'] = '[email protected]'


gitlab_rails['smtp_tls'] must be set to true, which is false by default.

gitlab_rails['gitlab_email_from'] and gitlab_rails['gitlab_email_reply_to'] must be the same as gitlab_rails['smtp_user_name'] or an 501 mail from address must be same as authorization user error occurs.

comments powered by Disqus