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

测试错误信息如下:

irb(main):002:0> Notify.test_email('joezhow777@gmail.com', '测试', '邮件测试').deliver_now

Notify#test_email: processed outbound mail in 1.9ms

Sent mail to joezhow777@gmail.com (30005.7ms)

Date: Fri, 20 Oct 2017 10:27:01 -0400

From: HLT_172LocalGitLab

Reply-To: HLT_172LocalGitLab

To: joezhow777@gmail.com

Message-ID: <59ea07b56932b_56ea3f8d962db12c3198b@m172.mail>

Subject: =?UTF-8?Q?=E6=B5=8B=E8=AF=95?=

Mime-Version: 1.0

Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Auto-Submitted: auto-generated

X-Auto-Response-Suppress: All

=E9=82=AE=E4=BB=B6=E6=B5=8B=E8=AF=95

Net::OpenTimeout: execution expired

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

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

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

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

from /opt/gitlab/embedded/lib/ruby/2.3.0/timeout.rb:101:in `timeout'

from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:551: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.6.5/lib/mail/network/delivery_methods/smtp.rb:113:in `deliver!'

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

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

from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionmailer-4.2.8/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.8/lib/active_support/notifications.rb:164:in `block in instrument'

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

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

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

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

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

from (irb):2

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

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

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

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

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

from bin/rails:9:in `require'

from bin/rails:9:in `'

从反馈里看:

From: HLT_172LocalGitLab

Reply-To: HLT_172LocalGitLab

邮箱应该是设置成功了的,但是小白不明白为什么邮件还是发不出去呢?

补充配置文件:

bVW3A1?w=615&h=254

bVW3A4?w=510&h=259

-----10月21日更新

这可能是服务器在校园网内的原因,我在UCLoud上搭建服务器用这个配置没有问题,能成功发送邮件,在校园网的服务器里会出错,有经验的小伙伴可以指点下如何排查问题吗。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值