docker-gitlab: SMTP doesn't work and no way to debug
IMHO you really need some sort of test process for SMTP configuration.
In my case I have tried STARTTLS
as well as SSL
for SMTP and am not getting anywhere.
Outbound messages are supposed to be getting delivered…
Sent mail to user@host.com (60140.2ms)
Sent mail to user@host.com (60130.0ms)
Sent mail to user@host.com (60142.5ms)
… but the emails never arrive, and there appears to be no means to debug the problem.
Testing the very same SMTP credentials using Mozilla Thunderbird, emails are delivered fine to the very same recipients.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (4 by maintainers)
I am testing with
Notify.test_email('xxx@xxxx.me', 'Message Subject', 'Message Body').deliver_now
, and got these errors:Sent mail to xxx@xxx.me (60250.3ms) Date: Thu, 08 Feb 2018 14:23:30 +0530 From: GitLab noreply@ganggang.me Reply-To: GitLab noreply@ganggang.me To: ganggang@ganggang.me Message-ID: 5a7c100a9741f_5dce2d0b046a8@4ea1d5db8218.mail Subject: Message Subject Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html><body>Message Body
</body></html>Net::ReadTimeout: Net::ReadTimeout from /usr/lib/ruby/2.3.0/net/protocol.rb:176:in
rbuf_fill' from /usr/lib/ruby/2.3.0/net/protocol.rb:154:in
readuntil’ from /usr/lib/ruby/2.3.0/net/protocol.rb:164:inreadline' from /usr/lib/ruby/2.3.0/net/smtp.rb:955:in
recv_response’ from /usr/lib/ruby/2.3.0/net/smtp.rb:556:inblock in do_start' from /usr/lib/ruby/2.3.0/net/smtp.rb:965:in
critical’ from /usr/lib/ruby/2.3.0/net/smtp.rb:556:indo_start' from /usr/lib/ruby/2.3.0/net/smtp.rb:521:in
start’ from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp.rb:109:instart_smtp_session' from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp.rb:100:in
deliver!’ from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/mail-2.7.0/lib/mail/message.rb:2160:indo_delivery' from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/mail-2.7.0/lib/mail/message.rb:260:in
block in deliver’ from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionmailer-4.2.10/lib/action_mailer/base.rb:543:inblock in deliver_mail' from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:164:in
block in instrument’ from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:ininstrument' from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:164:in
instrument’ from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionmailer-4.2.10/lib/action_mailer/base.rb:541:indeliver_mail' from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/mail-2.7.0/lib/mail/message.rb:260:in
deliver’ from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionmailer-4.2.10/lib/action_mailer/message_delivery.rb:85:indeliver_now' from (irb):1 from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.10/lib/rails/commands/console.rb:110:in
start’ from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.10/lib/rails/commands/console.rb:9:instart' from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:68:in
console’ from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:39:inrun_command!' from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.10/lib/rails/commands.rb:17:in
<top (required)>’ from ./bin/rails:9:inrequire' from ./bin/rails:9:in
<main>’