with rails 2.2.2 action mailer requires a valid ssl certificate i have a question about routing my smtp settings for my postfix are now ActionMailer::Base.smtp_settings = { :address => "smtp.mydomain.com", :port => 25, :domain => "mydomain.com", :authentication => :plain, :user_name => "mydomain_mailer-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org", :password => "password" } both the email server and the rails app are on the same machine if i don''t have the address as 127.0.0.1 is it routing information through the internet instead of internally in the machine? if i use 127.0.0.1 i will get the ssl error because the host does not match up. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, In your server''s host file map the address smtp.mydomain.com to IP 127.0.0.1 so that it is not routed externally. -NAYAK On Thu, Jan 8, 2009 at 1:45 PM, tyliong <tyliong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > with rails 2.2.2 action mailer requires a valid ssl certificate > i have a question about routing > > my smtp settings for my postfix are now > > ActionMailer::Base.smtp_settings = { > :address => "smtp.mydomain.com", > :port => 25, > :domain => "mydomain.com", > :authentication => :plain, > :user_name => "mydomain_mailer-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org", > :password => "password" > } > > both the email server and the rails app are on the same machine > if i don''t have the address as 127.0.0.1 > is it routing information through the internet instead of internally > in the machine? > if i use 127.0.0.1 i will get the ssl error because the host does not > match up. > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I tried changing it to this : 127.0.0.1 localhost.localdomain localhost smtp.mydomain.com smtp ::1 localhost6.localdomain6 localhost6 210.193.49.222 ns1.mydomain.com ns1 localhost smtp.mydomain.com smtp But it didn’t work Restarted postfix and mongrel gave ssl error again. From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] On Behalf Of NAYAK Sent: Thursday, January 08, 2009 4:24 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: SMTP settings for action mailer Hi, In your server''s host file map the address smtp.mydomain.com to IP 127.0.0.1 so that it is not routed externally. -NAYAK On Thu, Jan 8, 2009 at 1:45 PM, tyliong <tyliong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: with rails 2.2.2 action mailer requires a valid ssl certificate i have a question about routing my smtp settings for my postfix are now ActionMailer::Base.smtp_settings = { :address => "smtp.mydomain.com", :port => 25, :domain => "mydomain.com", :authentication => :plain, :user_name => "mydomain_mailer-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org", :password => "password" } both the email server and the rails app are on the same machine if i don''t have the address as 127.0.0.1 is it routing information through the internet instead of internally in the machine? if i use 127.0.0.1 i will get the ssl error because the host does not match up. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I am not sure of using multiple host/domain at a time there Try just 127.0.0.1 smtp.mydomain.com NAYAK On Thu, Jan 8, 2009 at 2:57 PM, Tan YL <tyliong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I tried changing it to this : > > 127.0.0.1 localhost.localdomain localhost smtp.mydomain.com smtp > > ::1 localhost6.localdomain6 localhost6 > > 210.193.49.222 ns1.mydomain.com ns1 localhost smtp.mydomain.com smtp > > > > But it didn''t work > > Restarted postfix and mongrel gave ssl error again. > > > > *From:* rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto: > rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] *On Behalf Of *NAYAK > *Sent:* Thursday, January 08, 2009 4:24 PM > *To:* rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > *Subject:* [Rails] Re: SMTP settings for action mailer > > > > Hi, > > In your server''s host file map the address smtp.mydomain.com to IP > 127.0.0.1 so that it is not routed externally. > > -NAYAK > > On Thu, Jan 8, 2009 at 1:45 PM, tyliong <tyliong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > with rails 2.2.2 action mailer requires a valid ssl certificate > i have a question about routing > > my smtp settings for my postfix are now > > ActionMailer::Base.smtp_settings = { > :address => "smtp.mydomain.com", > :port => 25, > :domain => "mydomain.com", > :authentication => :plain, > :user_name => "mydomain_mailer-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org", > :password => "password" > } > > both the email server and the rails app are on the same machine > if i don''t have the address as 127.0.0.1 > is it routing information through the internet instead of internally > in the machine? > if i use 127.0.0.1 i will get the ssl error because the host does not > match up. > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I got it to work with the multiple domain names ActionMailer::Base.smtp_settings = { :address => "smtp.mydomain.com", :port => 25, :domain => "mydomain.com", :authentication => :plain, :user_name => "mydomain_mailer-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org", :password => "password" } I have the address as smtp.mydomain.com and it gives 127.0.0.1 in my mail error log. Instead of ns1.mydomain.com . Is it working internally now? From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] On Behalf Of NAYAK Sent: Thursday, January 08, 2009 5:34 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: SMTP settings for action mailer Hi, I am not sure of using multiple host/domain at a time there Try just 127.0.0.1 smtp.mydomain.com NAYAK On Thu, Jan 8, 2009 at 2:57 PM, Tan YL <tyliong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: I tried changing it to this : 127.0.0.1 localhost.localdomain localhost smtp.mydomain.com smtp ::1 localhost6.localdomain6 localhost6 210.193.49.222 ns1.mydomain.com ns1 localhost smtp.mydomain.com smtp But it didn''t work Restarted postfix and mongrel gave ssl error again. From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] On Behalf Of NAYAK Sent: Thursday, January 08, 2009 4:24 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: SMTP settings for action mailer Hi, In your server''s host file map the address smtp.mydomain.com to IP 127.0.0.1 so that it is not routed externally. -NAYAK On Thu, Jan 8, 2009 at 1:45 PM, tyliong <tyliong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: with rails 2.2.2 action mailer requires a valid ssl certificate i have a question about routing my smtp settings for my postfix are now ActionMailer::Base.smtp_settings = { :address => "smtp.mydomain.com", :port => 25, :domain => "mydomain.com", :authentication => :plain, :user_name => "mydomain_mailer-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org", :password => "password" } both the email server and the rails app are on the same machine if i don''t have the address as 127.0.0.1 is it routing information through the internet instead of internally in the machine? if i use 127.0.0.1 i will get the ssl error because the host does not match up. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---