sendmail authinfo with Exchange
by mfoley from LinuxQuestions.org on (#6H012)
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')dnlAnything 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.
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')dnlAnything 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.