I have a linux host running Sendmail. I want to send messages messages to an Exchange Online (365) server. I believe I need to do so with with AuthInfo (but correct me if I'm wrong).
If I have an Exchange account for user myuser at mydom.com with Exchange password mypass and MX record mydom-com.mail.protection.outlook.com what should my AuthInfo record look like:
Code:
AuthInfo:mydom-com.mail.protection.outlook.com "U:myuser" "P:mypass"
Should U: be as shown, or
myuser@mydom.com, or DCdomain\myuser? Do I need "M:PLAIN"? Some other encryption type?
Does sendmail.mc need:
Code:
define(`SMART_HOST',`mydom-com.mail.protection.outlook.com')dnl
FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl
Anything else?
What if the Exchange account is set up for two-factor authentication? Will the AuthInfo choke?
Where should the AuthInfo config go? I've seen it set in /etc/mail/access and in /etc/mail/authinfo.db.