title: SMTP through Exchange using Integrated Windows Authentication (NTLM) using Python
body: <p>I want to use the credentials of the logged-in Windows user to authenticate an SMTP connection to an Exchange server using NTLM.</p>
  
  <p>I'm aware of the <a href="http://code.google.com/p/python-ntlm/" rel="nofollow noreferrer">python-ntlm</a> module and the <a href="http://code.google.com/p/python-ntlm/issues/detail?id=14" rel="nofollow noreferrer">two</a> <a href="http://code.google.com/p/python-ntlm/issues/detail?id=15" rel="nofollow noreferrer">patches</a> that enable NTLM authentication for SMTP, however I want to use the current user's security token and not have to supply a username and password.</p>
  
  <p>Very similar problem to <a href="https://stackoverflow.com/questions/909658/windows-authentication-with-python-and-urllib2">Windows Authentication with Python and urllib2</a>.</p>