I have a CentOS 5 box that is a web server. When it generates emails, all emails should go out through our Exchange mail server.
I believe our Exchange server requires NTLM authentication:
# telnet exchangeserv 25
Connected to exchangeserv.domain.edu (10.102.14.27).
Escape character is '^]'.
220 ExchangeServ.domain.edu Microsoft ESMTP MAIL Service ready at Mon, 7 Mar 2011 11:49:31 -0500
250-ExchangeServ.domain.edu Hello [10.102.15.191]
250-X-EXPS GSSAPI NTLM
I set up my /etc/mail/access file as follows:
AuthInfo:ExchangeServ.domain.edu "U:smmsp" "I:domain\first.last" "P:password" "M:NTLM"
Then I ran
# makemap hash /etc/mail/access.db < /etc/mail/access
Then I restarted sendmail.
I am not getting authenticated though.
The message gets accepted for delivery by localhost but then when it hands the message off to the Exchange server smart relay, I see this in /var/log/maillog:
Mar 7 12:44:15 webserv sendmail: STARTTLS=client, relay=exchangeserv.domain.edu., version=TLSv1/SSLv3, verify=FAIL, cipher=AES128-SHA, bits=128/128
Mar 7 12:44:15 webserv sendmail: AUTH=client, relay=exchangeserv.domain.edu [10.102.14.27], authinfo failed
My Exchange folks told me that the userid should be in the form "domain\first.last" just like I log into our Active Directory domain. I can't find any information on how to test that I've got the correct userid format though. I've spent quite a lot of time doing searches and reading.