2015-11-03 65 views
2

我想配置GitLab到與Microsoft Exchange發送郵件,但它不工作,發送郵件,沒有電子郵件是從gitlab發送到用戶無法從GitLab

這裏是我的配置:

gitlab_rails['smtp_enable'] = true 
gitlab_rails['smtp_address'] = "mail.company.com" 
gitlab_rails['smtp_port'] = 25 
gitlab_rails['smtp_user_name'] = "[email protected]" 
gitlab_rails['smtp_password'] = "PASSWORD" 

我還實施的代碼與Java郵件剪斷,併成功發送的郵件,這裏是Java郵件配置:

final String username = "[email protected]"; 
final String password = "PASSWORD"; 
properties.put("mail.smtp.host", "mail.company.com"); 
properties.put("mail.smtp.port", "25"); 
properties.put("mail.transport.protocol", "smtp"); 

任何人都可以指出如何解決這一問題?

回答

0

充分交換配置也應包含以下行:

gitlab_rails['smtp_domain'] = "smtp.company.com" # SMTP domain to use 
gitlab_rails['smtp_authentication'] = "login" # Use login credentials 

Source