Forum: Ruby on Rails Sending email from rails app to Postfix remote mail server.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5e44a8fc5e72f2ed8ca767e7c9d313d0?d=identicon&s=25 Close Account (balishaggy)
on 2009-05-17 00:42
Hi, I am running a rails app on my local development machine testing
email delivery with a remote mail server running Postfix at Slicehost.

I haven't been able to configure ActionMailer to connect to the mail
server without a timeout.  I'm using workling to send emails, and the
timeout error is:

WORKLING ERROR: runner could not invoke MailingsWorker:send_message with
........dump of hash sent to mailings worker.....error was:
#<Timeout::Error: execution expired>

My ActionMailer configuration looks like:

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
  :address    => "11.22.33.253",
  :domain     => "mail.example.com",
  :port       => 25,
  :authentication => :plain,
  :user_name => "my_username",
  :password => "my_password"
}

I am able to send mail locally from the mail server, and can receive
email at the mail server sent with gmail and yahoo.  I can also send
email from my rails app using gmail smtp settings.

Does postfix require specific configuration to act as a remote mail
server?

Thank you!,
John
F81f92c3286e090f341ba4a27df3074a?d=identicon&s=25 John Lewis (jcarlton)
on 2011-01-28 00:53
I had problems setting up rails ActionMailer on a slicehost site and
contracted with rackspace for email. I would now like to use the
rackspace email server to handle my ActionMailer transactions. My
configuration is set up as follows:

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
  :address    => "11.22.33.253",
  :domain     => "mail.example.com",
  :port       => 25,
  :authentication => :plain,
  :user_name => "my_username",
  :password => "my_password"
}

How do I completed setup with my rackspace email account and my rails
project?

John
This topic is locked and can not be replied to.