[solved] GMail SMTP stoped working
Added by Lukasz Kszonowski over 10 years ago
Hi,
I have successfully set up email sending with redmine 2.6, but 3 days ago it stopped working. I have no idea why.
I use Google Apps, but tried also with my personal @gmail.com account. No luck.
I can easily log in and send mail with telnet (openssl).
Environment: Redmine version 2.5.1.stable.13207 Ruby version 2.1.2-p95 (2014-05-08) [x86_64-linux] Rails version 3.2.18 Environment production Database adapter Mysql2 SCM: Subversion 1.8.9 Git 2.0.1 Filesystem Redmine plugins: no plugin installed
Any help?
Replies (5)
RE: GMail SMTP stoped working - Added by Lukasz Kszonowski over 10 years ago
To clarify, configuration.yml is from example:
default: email_delivery: delivery_method: :smtp smtp_settings: enable_starttls_auto: true address: "smtp.gmail.com" port: 587 domain: "domain.com" # 'your.domain.com' for GoogleApps authentication: :plain user_name: "user@domain.com" password: p4sSw0rDI tried adding:
tls: true
Didn't help
RE: GMail SMTP stoped working - Added by Lukasz Kszonowski over 10 years ago
Additional info, after commenting out logger level nil in production, I recieve this log:
Rendered mailer/_issue.text.erb (3.6ms) Rendered mailer/issue_edit.text.erb within layouts/mailer (5.9ms) Sent email "[Test project - Bug #67] Test Bug" (30008ms) to: myuseremail@domain.com Completed 500 Internal Server Error in 30112.5ms Net::OpenTimeout (execution expired): app/models/mailer.rb:431:in `deliver_mail' app/models/mailer.rb:86:in `block (2 levels) in deliver_issue_edit' app/models/issue.rb:831:in `each_notification' app/models/mailer.rb:85:in `block in deliver_issue_edit' app/models/journal.rb:77:in `block in each_notification' app/models/journal.rb:75:in `each' app/models/journal.rb:75:in `each_notification' app/models/mailer.rb:84:in `deliver_issue_edit' app/models/journal.rb:190:in `send_notification' app/models/journal.rb:54:in `save' app/models/issue.rb:1520:in `create_journal' app/models/issue.rb:165:in `create_or_update' app/controllers/issues_controller.rb:478:in `block in save_issue_with_child_records' app/controllers/issues_controller.rb:466:in `save_issue_with_child_records' app/controllers/issues_controller.rb:188:in `update'
RE: GMail SMTP stoped working - Added by Lukasz Kszonowski over 10 years ago
I had problem with DHCP on my VPS, it is described in detail here: https://bbs.archlinux.org/viewtopic.php?pid=1434363
Apparently dhcpcd had some issues with ipv6. Using static IP helped, but I wanted DHCP, so I switched my VPS's IP with different machine and then back again. It made dhcpcd work (something refreshed on their dhcp server?)
Jan, helps for your support and pointing me in direction of IPv6. My SMTP is back online :)
kszonek
RE: GMail SMTP stoped working - Added by Jan Niggemann (redmine.org team member) over 10 years ago
Good to hear, have fun with redmine!