Setting up outgoing email for Ruby on Rails

I recently signed up for Linode after a resounding recommendation on IRC from someone, and I'm in the process of moving a Rails 3 app I'm currently developing on Heroku over to my new VPS on Linode.

The app works just fine, but after setting up exim for outoing email based on this guide, I'm not seing mails sent via ActionMailer in Rails 3 being delivered, even though I was able to send a test mail just fine from the shell.

Looking at the log in /var/log/exim4, emails seem to be going out (i've replaced the from email address with (user@example.com in this post):

2010-10-28 05:34:49 1PBRgv-0002fH-MI <= <> R=1PBRgv-0002fG-M3 U=Debian-exim P=local S=1700

2010-10-28 05:34:51 1PBRgv-0002fH-MI => user@example.com R=dnslookup T=remotesmtp H=ASPMX.L.GOOGLE.com [74.125.65.27] X=TLS1.0:RSAARCFOUR_MD5:16 DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=mx.google.com"

2010-10-28 05:34:51 1PBRgv-0002fH-MI Completed

Not sure why it's still referencing google in there, I've commented out all the Google Apps specific references from when I used that to send emails, and since restarted Rails/nginx.

Is there anything else I need to set up in Rails to get it to use exim? Here's the config settings from my production.rb file:

config.actionmailer.deliverymethod = :sendmail

config.actionmailer.performdeliveries = true

config.action_mailer.default :charset => "utf-8"

config.actionmailer.raisedelivery_errors = false

config.actionmailer.sendmailsettings = {

:location => '/usr/sbin/sendmail',

:arguments => '-i -t'

}

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct