簡體   English   中英

GitLab電子郵件通知無效

[英]GitLab email notification not working

我只是在我的專用服務器上設置了gitlab,作為管理員我創建了一個新用戶,他通常應該收到一封帶有密碼的電子郵件,但他沒有。

我想知道的是如何配置電子郵件通知(使用SMTP)。

PS:我根本不熟悉Ruby環境。

謝謝。

更新:它現在有效,我只是忘了在設置gitlab時安裝postfix

更新2:最后我選擇使用SMTP帳戶發送電子郵件通知:

就個人而言,我有一個Amazone帳戶(你可以使用Gmail):

1)在/home/git/gitlab/config/envirenoments/production.rb中評論此行:

#config.action_mailer.delivery_method = :sendmail

2)在結束標記之前添加(使用正確的憑據):

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
     :address => 'gmail.com', // Or an other SMTP provider 
     :port => 467, // Port depends on your provider
     :domain => 'gitlab.yourserver.com', // Your Gitlab main url
     :authentication => :plain,
     :user_name => 'your gmail id',
     :password => 'yourPassword',
     :enable_starttls_auto => true
 }

謝謝,我希望它會幫助你。

最后,我選擇使用SMTP帳戶發送電子郵件通知:

就個人而言,我有一個Amazone帳戶(你可以使用Gmail):

1)在/home/git/gitlab/config/envirenoments/production.rb中評論此行:

#config.action_mailer.delivery_method = :sendmail

2)在結束標記之前添加(使用正確的憑據):

config.action_mailer.delivery_method = :smtp

config.action_mailer.smtp_settings = {
     :address => 'gmail.com', # Or an other SMTP provider 
     :port => 467, # Port depends on your provider
     :domain => 'gitlab.yourserver.com', # Your Gitlab main url
     :authentication => :plain,
     :user_name => 'your gmail id',
     :password => 'yourPassword',
     :enable_starttls_auto => true  }

謝謝,我希望它會幫助你。

請按照安裝指南進行操作,其中包含設置電子郵件的說明。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM