Gitlab Mail Server Configuration

Source: Internet
Author: User

Environment Introduction:

CentOS 6.7

Gitlab : 6.3.1

First, modify the global configuration file

$git config--global user.name "GitLab"
$git config--global user.email "[Email protected]"


Second, Configure the SMTP service to send mail for Gitlab

1). To Modify the gitlab/config/environments/production.rb configuration file:

Config.action_mailer.delivery_method=:smtp

2). To change the SMTP mail configuration file gitlab/config/initializers/smtp_settings.rb:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7D/F3/wKioL1bzq1nBgayMAABytwUDwxM444.png "title=" 1.png " alt= "Wkiol1bzq1nbgaymaabytwudwxm444.png"/>

3). Check mail configuration in Gitlab.yml

$cat gitlab/config/gitlab.yml


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7D/F3/wKioL1bzq2HiiawZAABDuf2ipds263.png "title=" 2.png " alt= "Wkiol1bzq2hiiawzaabduf2ipds263.png"/>

Third, restart Gitlab

#/etc/init.d/gitlab Restart


Iv. Verification Test

Create user, Gitlab will happen mail to user mailbox

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/F7/wKiom1bzqtHjL-wrAACaDfHzpjU005.png "title=" 3.png " alt= "Wkiom1bzqthjl-wraacadfhzpju005.png"/>


This article is from the "Little Mo Growth Road" blog, please be sure to keep this source http://309173854.blog.51cto.com/7370240/1754870

Gitlab Mail Server Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.