title: How to correctly configure symfony2 swiftmailer bundle to work with SMTP server with NTLM AUTH?
body: <pre><code># Swiftmailer Configuration
  swiftmailer:
      transport:  smtp
      host:       10.8.100.1
      port:       25
      username:   user
      password:   pass
      auth_mode:  ~
      encryption: ~
      spool:      { type: memory }
  </code></pre>
  
  <p>When I try to send a message via <code>$this-&gt;get('mailer')-&gt;send($message);</code> I am getting the following error:</p>
  
  <pre><code>Fatal error: Uncaught exception 'Swift_TransportException' with message 'Failed
  to authenticate on SMTP server with username "user" using 0 possible  authenticators'
  in /..path../vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php:184 Stack trace: #0 
  </code></pre>
  
  <p>I've tried changeing the <code>auth_mode</code> setting to all possible values <code>plain, login, cram-md5, or null</code> - still the same error message.</p>
  
  <hr>
  
  <p>Then I wanted to telnet to SMTP server to manually check if i can auth (though, I am 100% sure the credentials are correct).</p>
  
  <p><strong>telnet 10.8.100.1 25</strong></p>
  
  <pre><code>Trying 10.8.100.1...
  Connected to 10.8.100.1.
  Escape character is '^]'.
  220 EXC.acme.local Microsoft ESMTP MAIL Service ready at Wed, 19 Mar 2014 10:34:00 +0100
  </code></pre>
  
  <p><strong>EHLO EXC.acme.local</strong></p>
  
  <pre><code>250-EXC.acme.local Hello [10.8.100.1]
  250-SIZE
  250-PIPELINING
  250-DSN
  250-ENHANCEDSTATUSCODES
  250-STARTTLS
  250-X-ANONYMOUSTLS
  250-AUTH NTLM
  250-X-EXPS GSSAPI NTLM
  250-8BITMIME
  250-BINARYMIME
  250-CHUNKING
  250-XEXCH50
  250 XRDST
  </code></pre>
  
  <p>I'm no mail server expert, but I was expecting <strong>AUTH LOGIN</strong> there... seems like the server (over which I have no control) has a diffrent authentication method (which is not suppoerted by Swiftmailer bundle?) and that might be the cause of the problem...</p>
  
  <p>Are my suspictions correct? Or is there a way to configure Swiftmailer bundle to correctly auth with AUTH NTLM?</p>