In general, I have been observing such a situation for quite a long time, but now I’m boiling over this.
Moved to DigitalOcean. I set up the server (Ubuntu 16.04.1 x64). The Rails project works fine, except for sending mail from the site.
This applies not only to my custom Mailers, but also to Devise. It will be specifically about Devise, as this is the most painful topic for me.
My account activation is activated via a link from an email. I personally registered more than 5 times on the site. 10-15 minutes, I did not get anything. As a result, I received letters, but some were lost. Moreover, the letters did not arrive in the order in which I was registered.
After the move, I code the rules only in production.rb:
config.action_mailer.perform_caching = false config.action_mailer.default_url_options = { host: 'http://site.com' } config.action_mailer.delivery_method = :sendmail I did not touch the custom Mailer code, much less Devise.
I put on the server, of course, Ubuntu Server. But there is one observation from Ubuntu Desktop, which is installed on the virtual machine at home. Ubuntu Desktop sent the same version of the letter from the Rails project instantly, although I didn’t even set up an OS for this. She was almost naked - only ssh, ruby, gem's.