我有以下的配置,我/etc/gitlab/gitlab.rb成立Gitlab未能在发送电子邮件
gitlab_rails['gitlab_email_from'] = '[email protected]'
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = 'secure.emailsrvr.com'
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = '[email protected]'
gitlab_rails['smtp_password'] = 'password'
gitlab_rails['smtp_domain'] = 'mydom.info'
gitlab_rails['smtp_authentication'] = 'login'
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true
注:我已经试过以防万一,但仍然没有改变设置smtp_domain到mydom.com 。
下的管理面板我收到以下错误sidekiq:
Worker: Sidekiq::Extensions::DelayedMailer
Arguments:"---\n- !ruby/class 'Notify'\n- :project_access_granted_email\n- - 68\n"
Error: ActiveRecord::ConnectionTimeoutError: could not obtain a database connection within 5.000 seconds (waited 5.000 seconds)
Worker: Sidekiq::Extensions::DelayedMailer
Arguments: "---\n- !ruby/class 'Notify'\n- :group_access_granted_email\n- - 32\n"
Error: ActiveRecord::RecordNotFound: Couldn't find UsersGroup with 'id'=32
这是/opt/gitlab/embedded/service/gitlab-rails/config/environments/production.rb
等效内容config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => 'secure.emailsrvr.com',
:port => 465,
:domain => 'mydom.info',
:authentication => :login,
:user_name => '[email protected]',
:password => 'password',
:enable_starttls_auto => true,
:tls => true
}
编辑 有什么至少我可以用来测试这些配置是否正确?
你确定它不是互联网问题吗?也许互联网是缓慢的,这就是连接超时的原因 – Apoorv 2014-09-03 14:45:41
我没有任何问题与互联网,我可以noice。 – mangusbrother 2014-09-03 14:56:01