Gitlab7.0通知郵箱的配置
1. 首先是拷貝Gitlab自帶的example
1
2
|
cd /home/git/gitlab sudo -u git -H cp config /initializers/smtp_settings .rb.sample config /initializers/smtp_settings .rb |
2. 然後用我們自己的郵箱替換example中的郵箱
1
|
sudo -u git -H vim config /initializers/smtp_settings .rb |
這裡提供163和騰訊企業郵箱兩種配置方式,注意將下面的123456替換成自己的密碼
163:
1
2
3
4
5
6
7
8
9
10
11
12
|
if Rails. env .production? Gitlab::Application.config.action_mailer.delivery_method = :smtp ActionMailer::Base.smtp_settings = { address: "smtp.163.com" , port: 25, user_name: "wpgitlab" , password: "123456" , domain: "163.com" , authentication: :plain, enable_starttls_auto: true } end |
騰訊企業郵箱:
1
2
3
4
5
6
7
8
9
10
11
12
|
if Rails. env .production? Gitlab::Application.config.action_mailer.delivery_method = :smtp ActionMailer::Base.smtp_settings = { address: "smtp.exmail.qq.com" , port: 25, user_name: "wangpeng@scnee.com" , password: "123456" , domain: "smtp.qq.com" , authentication: :plain, enable_starttls_auto: true , } end |
3. 修改gitlab.yml
1
2
|
cd /home/git/gitlab sudo -u git -H vim config /gitlab .yml |
將預設郵箱修改為自己的郵箱
163:
1
2
3
|
## Email settings # Email address used in the "From" field in mails sent by GitLab email_from: wpgit@163.com |
騰訊企業郵箱:
1
2
3
|
## Email settings # Email address used in the "From" field in mails sent by GitLab email_from: wangpeng@scnee.com |
4. 修改後。重啟gitlab
1
|
sudo service gitlab restart |
注意事項:
1. 不需要修改 config/environments/production.rb,網上的其他文章說要修改這個檔案可能是針對老版本的,gitlab7.0不需要修改這個檔案(已測試)。
2. 騰訊企業郵箱不能使用其幫助網頁上所寫的465埠。設定了openssl_verify_mode也沒有作用。若有人試驗成功,請告知我,謝謝。
相關文章
- gitlab 郵箱配置Gitlab
- google smtp 郵箱配置Go
- Laravel 配置郵箱引數Laravel
- centos配置郵箱服務CentOS
- 配置QQ郵箱的SMTP服務
- win10 email配置qq郵箱如何操作_win10郵箱怎麼新增qq郵箱Win10AI
- spring boot配置QQ郵箱傳送郵件Spring Boot
- 谷歌郵箱,配置傳送郵件密碼谷歌密碼
- mac iPhone郵箱相關配置MaciPhone
- Jenkins郵箱配置踩坑錄Jenkins
- 伺服器簡單郵箱配置伺服器
- 如何配置 No Reply 郵箱回覆轉發
- 163郵箱傳送郵件通知異常 org.springframework.mail.MailAuthenticationException: Authentication failedSpringFrameworkAIException
- 電子郵箱是qq郵箱嗎 電子郵箱和qq郵箱的區別聯絡介紹
- Git使用者名稱郵箱配置Git
- 高可用服務之Keepalived郵件通知配置
- git使用者名稱和郵箱配置Git
- qq郵箱怎麼發檔案給別的郵箱 qq郵箱如何將文件傳送給別人
- win10自帶郵件怎麼新增qq郵箱_win10郵箱如何匯入qq郵箱Win10
- 郵箱聯想
- 怎麼登陸163郵箱?163的郵箱有哪些實用技巧?
- 收費郵箱有哪些?收費郵箱有哪些真正的價值?
- Git修改和配置使用者名稱和郵箱Git
- 外貿郵箱為什麼申請企業郵箱?
- git配置使用者名稱和郵箱 git設定使用者名稱郵箱有什麼用Git
- Laravel-郵件通知Laravel
- 個人郵箱與企業郵箱的區別有哪些?如何選擇?
- 把企業郵箱換成Zoho Mail企業郵箱之前的疑問AI
- golang傳送郵件(qq郵箱)Golang
- win10系統下郵箱怎麼新增qq郵箱Win10
- win10自帶郵箱無法登入QQ郵箱Win10
- 如何申請企業郵箱?企業郵箱選購指南
- 工作郵箱怎麼註冊?企業郵箱有哪些功能?
- win10郵件怎麼用qq郵箱 win10郵件如何使用qq郵箱Win10
- 開啟GitLab的郵件通知功能以及一些外觀配置Gitlab
- Jenkins 配置郵箱伺服器傳送構建結果Jenkins伺服器
- Outlook如果有多個郵箱,個別郵箱設定不接收郵件的設定方法
- 企業郵箱如何註冊登陸,企業郵箱怎麼收費?企業郵箱哪個更好?
- 郵箱格式驗證