Gitlab 郵件配置

2021-09-10 21:41:30 字數 1588 閱讀 1028

git郵件配置vim /etc/gitlab/gitlab.rb

#找到【gitlab email server settings】,在其中新增下如配置:

external_url ''            //這裡可採用ip訪問也可採用網域名稱訪問

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

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

gitlab_rails['smtp_enable'] = true

#gitlab_rails['smtp_address'] = "smtp.wltest.com"

gitlab_rails['smtp_address'] = "smtp.163.com"

gitlab_rails['smtp_port'] = 25

#gitlab_rails['smtp_user_name'] = "[email protected]"

gitlab_rails['smtp_user_name'] = "[email protected]"

#gitlab_rails['smtp_password'] = "[email protected]"

gitlab_rails['smtp_password'] = "benngcc1991"                      //授權碼

#gitlab_rails['smtp_domain'] = "wltest.com"

gitlab_rails['smtp_domain'] = "163.com"

gitlab_rails['smtp_authentication'] = "login"

gitlab_rails['smtp_enable_starttls_auto'] = true

#user['git_user_email'] = "[email protected]"

user['git_user_email'] = [email protected]

gitlab-ctl reconfigure

傳送測試郵件gitlab-rails console

notify.test_email('[email protected]', 'cjk', 'cjk').deliver_now

如下表示傳送成功

去郵箱看看

注意:如果測試郵件報錯如下:提示驗證失敗,有可能是授權碼需要重置,還有可能是郵箱伺服器掛了。

gitlab傳送郵件配置

1.修改gitlab的配置檔案 vim etc gitlab gitlab.rb,找到如下圖所示的部分,放開注釋,修改配置,此處我用的發件郵箱是qq郵箱,所以網域名稱配置都是qq.com,如果用的是163或者gmail郵箱等等,更改對應配置即可 文字部分說明 gitlab rails smtp en...

docker部署gitlab 郵件配置

基礎環境準備 安裝docker yum config manager add repo yum install docker ce y 啟動docker systemctl enable docker systemctl start dockerdocker 啟動gitlab 啟動gitlab映象 ...

linux 私有gitlab倉庫配置郵件

email settings gitlab rails gitlab email enabled true gitlab rails gitlab email from xx com gitlab rails gitlab email display name gitlab gitlab rails...