gitlab配置之后发送邮件失败

少不读水浒 发布于 2018/11/20 16:46
阅读 332
收藏 0

gitlab安装好之后,发送邮件失败

配置:

gitlab_rails['gitlab_email_enabled'] = true
gitlab_rails['gitlab_email_from'] = 'username@techbao.cn'
gitlab_rails['gitlab_email_display_name'] = 'Admin'
gitlab_rails['gitlab_email_reply_to'] = 'username@techbao.cn'
gitlab_rails['gitlab_email_subject_suffix'] = '[gitlab]'
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "mailpool.fosun.com"
gitlab_rails['smtp_port'] = 465 
gitlab_rails['smtp_user_name'] = "username@techbao.cn"
gitlab_rails['smtp_password'] = "*****"
gitlab_rails['smtp_domain'] = "mailpool.fosun.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true
user['git_user_email'] = "username@techbao.cn"

然后发送邮件的时候发生错误:

 

irb(main):001:0> Notify.test_email('yangbo1@techbao.cn', 'Message Subject', 'Message Body').deliver_now

Notify#test_email: processed outbound mail in 139.7ms

Sent mail to yangbo1@techbao.cn (30012.5ms)
Date: Tue, 20 Nov 2018 16:36:12 +0800
From: Admin <devops@techbao.cn>
Reply-To: Admin <devops@techbao.cn>
To: yangbo1@techbao.cn
Message-ID: <5bf3c77cc97e4_400a3ff2153db0fc96456@izwz97cf6j5c1663tj65u5z.mail>
Subject: Message Subject
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body><p>Message Body</p></body></html>

不知道有没有遇到这个问题 

加载中
返回顶部
顶部