title: Error: Connection refused - connect(2) for "localhost" port 25
body: <p>Trying to send mail with Mailgun as default.</p>
  
  <p>Successfully connects to heroku telnet smtp.mailgun.org with ports 25 587 (TLS) and 465 (SSL)</p>
  
  <p>The config for smtp is setup like the documentation wants. The environment variables were generated by Mailgun/Heroku and I updated the domain per the documentation to the mx record change.</p>
  
  <pre><code>Rails.application.config.action_mailer.delivery_method = :mailgun
  Rails.application.config.action_mailer.mailgun_settings = {
    api_key: ENV['MAILGUN_API_KEY'],
    domain: ENV['MAILGUN_DOMAIN'],
  }
  </code></pre>
  
  <p>I know I've seen this error on a few threads, but I've yet to make this work. </p>
  
  <p>I'll reply if I find another thread that solves this before this one figures it out.</p>