Report this

What is the reason for this report?

Rails and SMTP on ubuntu 12.04 x64

Posted on September 28, 2013

Running Rails 4 wih passenger, when attempt to send email it crashes with Completed 500 Internal Server Error (in the log). Do I need to set up Postfix in order to send emails from the app? My prduction SMTP settings

config.action_mailer.default_url_options = {:host => domain.com'} config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "localhost", :port => 25, :domain => 'domain.com' }



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

How much mail do you anticipate sending? If it’s on the low end, perhaps a lightweight client like <a href=“https://www.digitalocean.com/community/questions/wordpress-email-notifications”>exim4</a> would work?

I recommend using a service such as Mandrill to send mail as it’s better than setting up your own mailserver. <br> <br>You can also install postfix and it should work fine.

I’ll try mandrill, after setting up postfix and SPF all emails go to spam… so it’s not very reliable. Thank you.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.