title: Rails 3 - Production environment - smtp email issue
body: <p>I am using smtp settings for sending mails in rails 3. It works fine when <code>sendmail</code> and <code>postfix</code> services are running. But when I stopped those two services then mails stop sending and giving me connection error.</p>
  
  <p><strong>Error log</strong> - </p>
  
  <pre><code>ERROR -- : (Errno::ECONNREFUSED): Connection refused - Connection refused
  org/jruby/ext/socket/RubyTCPSocket.java:126:in `initialize'
  org/jruby/RubyIO.java:1178:in `open'
  </code></pre>