Rails Mailer “Net::OpenTimeout: execution expired” Exception on production server only

前端 未结 8 1400
南方客
南方客 2020-12-05 04:19

I am using Ruby MRI 2.0.0 and Rails 3.2.12 on a Ubuntu 12.04 TLS VPS and attempting to setup email notifications in my app. It was working fine a few days ago, but n

8条回答
  •  一向
    一向 (楼主)
    2020-12-05 04:41

    I probably had the same issue, my production application didn't send mails although everything in development was working fine. I also got the "Net::OpenTimeout" error.

    My problem was that i was using a Google server in production, and it blocks ports 25, 465 and 587 on outbound connections.

    Since I was using Mandrill for sending mails, I was able to switch the connecting port from 587 to 2525 and everything is okay now.

提交回复
热议问题