1. 程式人生 > >Gitlab之郵箱配置-yellowocng

Gitlab之郵箱配置-yellowocng

Gitlab安裝之後,必須做的事情,就是設定郵箱資訊,修改域名的操作。同時還有設定主機的操作。下面介紹gitlab的郵箱配置。

配置gitlab

配置gitlab的郵箱的時候,一定要使用ssl,然後是465的郵箱埠,不然就傳送不出去了,這個下面,我配置的是阿里雲的郵箱。

vim /etc/gitlab/gitlab.rb

#配置下面,需要配置smtp_tls 
#注意gitlab_rails['smtp_tls'] 這個是設定為true
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.aliyun.com"
gitlab_rails['smtp_port'] = 465 gitlab_rails['smtp_user_name'] = "[email protected]" gitlab_rails['smtp_password'] = "youpassword" gitlab_rails['smtp_domain'] = "smtp.aliyun.com" gitlab_rails['smtp_authentication'] = "login" gitlab_rails['smtp_enable_starttls_auto'] = true gitlab_rails['smtp_tls'
] = true #配置郵箱來源, 與展示的名稱 gitlab_rails['gitlab_email_enabled'] = true gitlab_rails['gitlab_email_from'] = '[email protected]' gitlab_rails['gitlab_email_display_name'] = 'Gitlab'

這裡寫圖片描述

重新配置服務

重新配置服務後生效。

gitlab-ctl reconfigure

測試傳送郵件

gitlab-rails console

#進入控制檯,然後傳送郵件
Notify.test_email('
[email protected]
'
, '郵件標題', '郵件正文').deliver_now

傳送郵件
這裡寫圖片描述

接收到郵件

沒過一會兒,我就收到郵件了。
這裡寫圖片描述

參考文章

相關推薦

Gitlab郵箱配置-yellowocng

Gitlab安裝之後,必須做的事情,就是設定郵箱資訊,修改域名的操作。同時還有設定主機的操作。下面介紹gitlab的郵箱配置。 配置gitlab 配置gitlab的郵箱的時候,一定要使用

GitLab郵箱配置

配置GitLab郵件服務 有合併請求時,郵件通知 賬號註冊時,郵件驗證 修改密碼時,通過郵件修改 配置步驟 1.開啟QQ郵箱的smtp服務(不建議使用163郵箱,發幾次之後,就不能傳送) 設定--》賬戶--》sm

Centos7 docker+gitlab郵箱配置) 記錄

安裝docker 依次執行下面程式碼,含義分別是: 安裝docker 啟動docker服務 檢視docker狀態(是否啟動) 1.yum install Docker 2.service docker start 3.ps -ef|grep docker

gitlab服務器郵箱配置

doc 啟用 sendmai 鏈接 運行 常用 IT oca nor 如想用 SMTP 代替 Sendmail 發送email,添加如下相應郵箱服務商的配置到/etc/gitlab/gitlab.rb, 然後運行gitlab-ctl reconfigure使修改生效。 om

gitlab搭建(2)---gitlab郵箱配置

官方gitlab郵箱配置指導:https://docs.gitlab.com.cn/omnibus/settings/smtp.html 以下是基於163郵箱的配置: 1.編輯/etc/gitlab/gitlab.rb #Sending application email via SMTP

gitlab學習(二)—— 郵箱配置

1 基本配置: 修改gitlab基本配置檔案: sudo vim /etc/gitlab/gitlab.rb ############################# # gitlab.yml configuration # ###########

gitlab 安裝 備份 恢復 郵箱配置 修改web埠

Gitlab維護手冊 安裝方法: yum install curl openssh-server postfixcronie  service postfix start  chkconfig postfix on  lokkit -s http -s ssh wget c

gitlab郵箱配置 及 163郵箱發件失敗

gatlab郵箱配置: http://blog.csdn.net/jackghq/article/details/54954486 163郵箱發件失敗: 轉自:http://ruby-china.org/topics/20450 配置SMTP傳送郵件配置,使用163郵箱。

CI(持續整合)Jenkins+Gitlab的基本配置

CI的先關概念 持續整合Continuous Integration 持續交付Continuous Delivery 持續部署Continuous Deployment git & github & gitlab

華為雲伺服器實戰 Gitlab安裝與配置使用

簡介     GitLab是一個利用Ruby on Rails開發的開源應用程式,

Flask入門SQLAlchemy配置與數據庫連接

數據 rdo nsh imp log kref mod pre file 1. 安裝SQLAlchemy pip install flask-sqlalchemy 2. 導入和配置 from flask_sqlalchemy import SQLAlchemy bas

mysql性能優化優化配置my.cnf文件

win 查詢 format end 索引 addition this tab socket [client]#password = your_passwordport = 3306socket = /opt/mysql/dbdata/mysql.sock # The M

Jenkins進階系列——09配置Linux系統ssh免密碼登陸

dom pub tar finger cnblogs pan 改變 art home ssh認證的完整描述:https://www.ibm.com/developerworks/cn/linux/security/openssh/part1/ 說明:點我去查看 今天我們只說

openvpnEasyRSA配置

code strong 默認 eas pin which onf ont 加粗 cd EasyRSA-2.2.2 vi vars #加粗的表示是我們需要修改的,其它的保持默認就可以 export EASY_RSA="`pwd`" export OPE

mybatis 整合springmapperLocations配置的問題

any 引入 location rop myba 路徑 通過 user configure 今天嘗試spring整合mybatis時遇到這麽一個問題,就是在配置sqlSessionFactory時是否要配置mapperLocations的問題。 <bean i

php擴展xdebug配置

trigger ram pen debug php var ext form lec [XDebug]xdebug.auto_trace = 1xdebug.trace_format = 0xdebug.trace_output_dir = "C:\xampp\htdocs

gitlab安裝與配置

git github gitlab 1、基礎環境準備yum install curl policycoreutils openssh-server openssh-clients postfix -y systemctl start postfix2、安裝gitlab-cecurl -sS htt

yii2.xweb配置

日誌配置 yii2.x url美化 我這裏是以basic版為基礎講解的。但高級版應該也是一樣的。基本版配置文件config/web.php。yii默認的控制器是site,這裏要改成我們習慣的index,只需要在$config這個數組裏面加上<?php $config=[ ....

hystrix熔斷器相關配置

pen pan comm nds lose for .com ont seconds p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3933ff } p.p1 { margin:

centos6.8服務器配置MYSQL配置

whereis root -i community for 查看密碼 rpm安裝 mysql配置 eas 1、rpm安裝方式順序: 下載: wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-communi