Email Gitlab安装程序未发送电子邮件
我正在尝试在WindowsAzure中安装GitLab。我关注了这个博客,它很有魅力。但我无法通过GitLab配置smtp邮件发送Email Gitlab安装程序未发送电子邮件,email,azure,smtp,gitlab,Email,Azure,Smtp,Gitlab,我正在尝试在WindowsAzure中安装GitLab。我关注了这个博客,它很有魅力。但我无法通过GitLab配置smtp邮件发送 我遵循了这个设置。尝试了Gmail和Zoho,端口都是465和587 我得到以下错误 2016-09-21_09:44:28.55626 2016-09-21T09:44:28.556Z 13562 TID-vskyw WARN: {"class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","w
- 我遵循了这个设置。尝试了Gmail和Zoho,端口都是465和587
2016-09-21_09:44:28.55626 2016-09-21T09:44:28.556Z 13562 TID-vskyw WARN: {"class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","wrapped":"ActionMailer::DeliveryJob","queue":"mailers","args":[{"job_class":"ActionMailer::DeliveryJob","job_id":"6a954ac7-19d6-4b27-b28c-c511f25e6896","queue_name":"mailers","arguments":["DeviseMailer","confirmation_instructions","deliver_now",{"_aj_globalid":"gid://gitlab/User/1"},"tgShkQTx5e1sALoxkkGi",{"to":"<my email here>","_aj_symbol_keys":["to"]}],"locale":"en"}],"retry":true,"jid":"cbd7dc87ce4202265d1a6be7","created_at":1474450319.7324607,"enqueued_at":1474451065.2083879,"error_message":"end of file reached","error_class":"EOFError","failed_at":1474450320.9358478,"retry_count":5,"retried_at":1474451068.5555682}
2016-09-21_09:44:28.55626 2016-09-21T09:44:28.556Z 13562 TID vskyw警告:{“类”:“活动作业::队列适配器::SidekiqAdapter::作业包装器”,“包装”:“ActionMailer::DeliveryJob”,“队列”:“邮件器”,“参数”:[{“作业类”:“ActionMailer::DeliveryJob”,“作业id”:“6a954ac7-19d6-4b27-b28c-c511f25e6896”,“队列名称”:“邮件器”,“参数”,“确认指示”、“立即交付”、“全球确认”:gid://gitlab/User/1“},”tgshkqtx5e1saloxkkkgi“,{”to“:”,“'u aj_symbol_key:“[”to“}],”locale:“en”}],“retry”:true,“jid:“cbd7dc87ce4202265d1a6be7”,“创建地址”:1474450319.7324607,“排队地址”:1474451065.2083879,“错误消息”:“已到达文件结尾”,“错误类别”:“EOFError”,“失败地址”“:1474450320.9358478,“重试计数”:5,“重试时间:1474451068.5555682}”
2016-09-21_09:44:28.55639 2016-09-21T09:44:28.556Z 13562 TID vskyw警告:EOFError:已达到文件结尾
- 我尝试了各种SSL和TLS的组合,但还没有成功李>
8.11.7
任何帮助都将不胜感激
更新:
我试过使用GMail smtp,在允许使用它访问应用程序后,它运行良好。此问题可能是由于某些Zoho的smtp策略造成的您应该使用新的smtp配置 如果您是从源代码安装并使用SMTP传递邮件,则需要将以下行添加到config/initializers/SMTP_settings.rb:
ActionMailer::Base.delivery\u method=:smtp
如图所示
smtp\u设置.rb
的配置示例如下:
if Rails.env.production?
Rails.application.config.action_mailer.delivery_method = :smtp
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: "email.server.com",
port: 465,
user_name: "smtp",
password: "123456",
domain: "gitlab.company.com",
authentication: :login,
enable_starttls_auto: true,
openssl_verify_mode: 'peer' # See ActionMailer documentation for other possible options
}
end
您可以在中查看配置SMTP的示例文件文档
您可以在此处看到更多配置选项您应该使用新的smtp配置 如果您是从源代码安装并使用SMTP传递邮件,则需要将以下行添加到config/initializers/SMTP_settings.rb:
ActionMailer::Base.delivery\u method=:smtp
如图所示
smtp\u设置.rb
的配置示例如下:
if Rails.env.production?
Rails.application.config.action_mailer.delivery_method = :smtp
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: "email.server.com",
port: 465,
user_name: "smtp",
password: "123456",
domain: "gitlab.company.com",
authentication: :login,
enable_starttls_auto: true,
openssl_verify_mode: 'peer' # See ActionMailer documentation for other possible options
}
end
您可以在中查看配置SMTP的示例文件文档
您可以在此处看到更多配置选项