Rails ActionMailer problems on Mac
        Posted  
        
            by seth
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by seth
        
        
        
        Published on 2009-12-21T17:54:57Z
        Indexed on 
            2010/03/29
            15:13 UTC
        
        
        Read the original article
        Hit count: 614
        
I've been working on learning to use Rails the last couple days and I've run into something that I haven't been able to solve with Google.
So I'm just creating a basic contact form that sends an email. Everything seems to be working ok in testing, which tells me that the form is working, and ActionMailer was implemented correctly, however, I'm having trouble configuring ActionMailer. I'm running OSX 10.6.2. I have postfix running and have verified that it's running using telnet localhost 25. When I try to use the form I get a "Connection refused" error.
This is my current configuration:
config.action_mailer.smtp_settings = {
  :address  => 'localhost',
  :port     => 25
}
I thought I might need to set :domain but I'm kind of confused on what that should be set to in this situation.
© Stack Overflow or respective owner