John Mccarthy
2009-May-16  22:42 UTC
Sending email from rails app to Postfix remote mail server.
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
-- 
Posted via http://www.ruby-forum.com/.
John Lewis
2011-Jan-27  23:53 UTC
Re: Sending email from rails app to Postfix remote mail server.
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
-- 
Posted via http://www.ruby-forum.com/.
-- 
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.