gitlab设置阿里企业邮箱smtp服务器时,发送邮件出现"end of file reached"错误
gitlab配置如下
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.mxhichina.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "username@example.com"
gitlab_rails['smtp_password'] = "password"
gitlab_rails['smtp_domain'] = "smtp.mxhichina.com"
gitlab_rails['smtp_authentication'] = "plain"
gitlab_rails['smtp_enable_starttls_auto'] = true
主要错误
"error_message"=>"end of file reached",
详细报错信息如下所示
2016-04-09_08:22:24.76462 2016-04-09T08:22:24.764Z 27975 TID-sdt5k ActionMailer::DeliveryJob JID-12c3f7a7f428cde81ba8297a INFO: fail: 18.065 sec
2016-04-09_08:22:24.76487 2016-04-09T08:22:24.764Z 27975 TID-sdt5k WARN:
{"class"=>"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper", "wrapped"=>"ActionMailer::DeliveryJob", "queue"=>"mailers", "args"=>[{"job_class"=>"ActionMailer::DeliveryJob", "job_id"=>"b2fa369b-8af7-4915-a3df-ef2f2aa37d78", "queue_name"=>"mailers", "arguments"=>["Notify", "project_access_granted_email", "deliver_now", 6], "locale"=>"en"}], "retry"=>true, "jid"=>"12c3f7a7f428cde81ba8297a", "created_at"=>1460189694.5020287, "enqueued_at"=>1460190126.698612, "error_message"=>"end of file reached", "error_class"=>"EOFError", "failed_at"=>1460189711.685607, "retry_count"=>4, "retried_at"=>1460190144.7637725}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将smtp的端口改为25即可