SMTP settings for action mailer

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 => "",
:port => 25,
:domain => "",
:authentication => :plain,
:user_name => "",
:password => "password"

both the email server and the rails app are on the same machine
if i don't have the address as
is it routing information through the internet instead of internally
in the machine?
if i use i will get the ssl error because the host does not
match up.


In your server’s host file map the address to IP so that it is not routed externally.


I tried changing it to this : localhost.localdomain localhost smtp

::1 localhost6.localdomain6 localhost6 ns1 localhost

But it didn’t work

Restarted postfix and mongrel gave ssl error again.

From: [] On
Behalf Of


I am not sure of using multiple host/domain at a time there
Try just


I got it to work with the multiple domain names

ActionMailer::Base.smtp_settings = {
:address => “”,
:port => 25,
:domain => “”,
:authentication => :plain,
:user_name => “”,
:password => “password”

I have the address as and it gives
in my mail error log. Instead of .

Is it working internally now?