linux gitlab 9 邮件不发送,gitlab无法发送邮件

我在centos7上安装了gitlab 却无法发送邮件。

gitlab_rails['gitlab_email_enabled'] = true

gitlab_rails['gitlab_email_from'] = '939950559@email.xn--eqrt2go2a13sj93e.top'

user['git_user_email'] = "939950559@email.xn--eqrt2go2a13sj93e.top"

gitlab_rails['smtp_openssl_verify_mode'] = 'none'

gitlab_rails['smtp_enable'] = true

gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"

gitlab_rails['smtp_port'] = 465

gitlab_rails['smtp_user_name'] = "939950559@email.xn--eqrt2go2a13sj93e.top"

gitlab_rails['smtp_password'] = "bMtWut4jW252imQ"

gitlab_rails['smtp_domain'] = "email.xn--eqrt2go2a13sj93e.top"

gitlab_rails['smtp_authentication'] = "login"

gitlab_rails['smtp_enable_starttls_auto'] = true

gitlab_rails['smtp_tls'] = ture

postfix 我也删了

然后用控制台就是这个错误

Notify#test_email: processed outbound mail in 280.6ms

Sent mail to 939950559@qq.com (60045.9ms)

Date: Tue, 27 Feb 2018 11:20:40 +0800

From: Example <939950559@email.xn--eqrt2go2a13sj93e.top>

Reply-To: Example

To: 939950559@qq.com

Message-ID: <5a94ce88ec57e_1f7a3ffb905db10c973bf@izwz963kajb8wuzwbphs6fz.mail>

Subject: 1

Mime-Version: 1.0

Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: 7bit

Auto-Submitted: auto-generated

X-Auto-Response-Suppress: All

123

Net::ReadTimeout: Net::ReadTimeout

from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:176:in `rbuf_fill'

from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:154:in `readuntil'

from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:164:in `readline'

from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:955:in `recv_response'

from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:556:in `block in do_start'

from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:965:in `critical'

from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:556:in `do_start'

from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:521:in `start'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp.rb:109:in `start_smtp_session'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp.rb:100:in `deliver!'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.7.0/lib/mail/message.rb:2160:in `do_delivery'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.7.0/lib/mail/message.rb:260:in `block in deliver'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionmailer-4.2.10/lib/action_mailer/base.rb:543:in `block in deliver_mail'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:164:in `block in instrument'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:164:in `instrument'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionmailer-4.2.10/lib/action_mailer/base.rb:541:in `deliver_mail'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.7.0/lib/mail/message.rb:260:in `deliver'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionmailer-4.2.10/lib/action_mailer/message_delivery.rb:85:in `deliver_now'

from (irb):1

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/commands/console.rb:110:in `start'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/commands/console.rb:9:in `start'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:68:in `console'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:39:in `run_command!'

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/commands.rb:17:in `'

from bin/rails:9:in `require'

from bin/rails:9:in `'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值