I login to our MS Exchange 2003 server via NTLM and can send messages with smtplib
module. Is there a way to detect my email address (which will be specified in From:
field of a message) based on NTLM username.
When one adds new Exchange account in Windows it asks for server address and username which can be resolved to an e-mail address (or several addresses if username is ambiguous) with a 'Check name' button. It's done even before logging in to server.
Related:
https://github.com/xulz/python-ntlm
SMTP through Exchange using Integrated Windows Authentication (NTLM) using Python
Upd: i think it uses NSPI ambiguous name resolution (ANR), and i also think that spending time on this isn't worth it.)