Relay Outgoing Emails with Office 365
LiquidFiles requires SMTP Auth authentication
Microsoft has been pushing towards what they call "modern authentication", which is Microsoft speak for the web based authentication method OATH. OATH requires a web browser to authenticate with tokens and is stronger than providing a username and password. But, OATH requires a user to operate the authentication in a browser so it's not something that works for server based systems like LiquidFiles or other functions like a multifunction printer or other systems where a user is not present all the time.
This means that you have to enable SMTP Auth with your Office365 configuration as outlined in this Microsoft Office 365 Support article in order to use Office 365 to relay emails with LiquidFiles (and other similar systems).
If for whatever reason you cannot enable SMTP Auth in Office 365, you will not be able to use Office365 to relay emails from LiquidFiles.
Will LiquidFiles support "Modern Authentication" in future releases?
Very unlikely. “Modern Authentication” is a web based authentication based on OATH and requires a user with a web browser performing the actual authentication. It’s not suitable for, or designed for, server based authentication for systems such as LiquidFiles.
LiquidFiles uses postfix as its MTA and is provided as part of CentOS 7 that is the current underlying operating system for LiquidFiles. Postfix does not currently support OATH and it's unlikely that it ever will, given that postfix is built for servers and not users with browsers. But even if postfix did add support for OATH, it wouldn’t be added to the postfix in CentOS 7. CentOS 7 is in maintenance mode and no major new updates will happen so for LiquidFiles v3.x we can guarantee that OATH/modern authentication will not happen.
In 2023 we will be looking at migrating from CentOS 7 to something that will be supported beyond 2024 and there will be an updated postfix in whatever replacement Linux we'll select. If postfix does add support for OATH authentication in the next couple of years, LiquidFiles will be able to add support for this within 6 months or so after it’s been added to the postfix version in whatever linux variant we’ll end up using after CentOS 7 (we release 2 major updates to LiquidFiles each year).
When using Office 365 to relay emails, you need to use the setting "Use the Email Sender Address for all emails" configured in Admin → Configuration → Email:
You then configure the email relay section as follows:
Please see further documentation for Office 365 at the Office 365 Relay Documentation.