title: Ruby on Rails error using SMTP Microsoft Exchange mail account
body: <p>I'm trying to connect to a Microsoft Exchange account deployed in a local server. Accessing to this server requires a VPN connection.</p>
  
  <p>My app its deployed into another server and has access to this VPN.</p>
  
  <p>When I try to send an Email I'm getting this error:</p>
  
  <pre><code>Net::SMTPAuthenticationError: 504 5.7.4 Unrecognized authentication type
  </code></pre>
  
  <p>These are my stmp_settings:</p>
  
  <pre><code>    config.action_mailer.default_url_options = { :host =&gt; ENV['EMAIL_DEFAULT_URL'] }
      config.action_mailer.delivery_method = :smtp
      config.action_mailer.smtp_settings = {
        address: 'example.com',
        port: 25,
        domain: ENV['EMAIL_DOMAIN'],
        authentication: :login,
        user_name: ENV['EMAIL_USERNAME'],
        password: ENV['EMAIL_PASSWORD'],
        openssl_verify_mode: 'none'
      }
  </code></pre>
  
  <p>Thanks!</p>