Skip to content

Sending notifications through Microsoft 365

AyaNova can send email notifications through a Microsoft 365 (Exchange Online) mailbox. It signs in to Microsoft's mail server with the account and password set in the notification settings.

Microsoft is turning off this kind of sign-in, called basic authentication for SMTP AUTH:

  • Until the end of December 2026 nothing changes.
  • After that it is switched off by default for existing Microsoft 365 organizations. A Microsoft 365 administrator can switch it back on.
  • Microsoft 365 organizations created after December 2026 do not have it switched on.
  • Microsoft plans to remove it completely at a later date, which it will announce in the second half of 2027.

Microsoft's announcement: Updated Exchange Online SMTP AUTH Basic Authentication deprecation timeline

Microsoft 365 settings

Setting Value
SMTP server address smtp.office365.com
SMTP server port 587
SMTP connection security StartTLS
SMTP server account the full email address of the sending mailbox, for example noreply@example.com
SMTP server password that mailbox's password
SMTP notify from address the same email address as the SMTP server account

We recommend a dedicated mailbox used only for sending notifications.

Use the Send test message option in the notification settings to check that it works.

Signs that sign-in is switched off

The test message, or the notification delivery log, shows an error from Microsoft such as

535 5.7.139 Authentication unsuccessful, basic authentication is disabled

or

535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant

The account and password can be correct and still get this error: Microsoft is refusing this way of signing in, not the password.

What to do

Choose one of these.

Ask your Microsoft 365 administrator to allow it for the sending mailbox

The administrator can allow it for the one mailbox AyaNova sends from, without turning it on for everyone. In the Microsoft 365 admin center this is the Authenticated SMTP setting under Users, Active users, the mailbox's user, Mail, Manage email apps. Microsoft's instructions: Enable or disable SMTP AUTH in Exchange Online

Two other Microsoft 365 settings block it even when Authenticated SMTP is allowed: security defaults, and an authentication policy that disables basic authentication for SMTP. Your administrator can tell you whether either applies.

This works until Microsoft removes basic authentication completely.

Send through a Microsoft 365 connector, without signing in

Microsoft 365 can take mail from your AyaNova server without a sign-in when your Microsoft 365 administrator sets up a connector that allows the server's IP address. This doesn't depend on Microsoft's sign-in changes. It needs an IP address that doesn't change: if we host your AyaNova, ask us for your server's IP address.

Your administrator:

  • creates the connector in the Exchange admin center (Mail flow, Connectors): from your organization's email server to Microsoft 365, recognizing the mail by the AyaNova server's IP address
  • adds that IP address to your domain's SPF record, so the mail isn't marked as spam
  • gives you your domain's MX endpoint, for example example-com.mail.protection.outlook.com (in the Microsoft 365 admin center under Settings, Domains)

Microsoft's instructions: How to set up a multifunction device or application to send email using Microsoft 365, option 3, "SMTP relay".

Then in the notification settings:

Setting Value
SMTP server address your domain's MX endpoint
SMTP server port 25
SMTP connection security StartTLS
SMTP server account blank
SMTP notify from address an address on one of your organization's domains, for example noreply@example.com

Send notifications through a different email service

Any email provider or email sending service that accepts an SMTP account and password works with AyaNova. Enter the server address, port, connection security, account and password that the provider gives you in the notification settings.

To keep notifications out of spam folders, follow the provider's instructions for setting up your domain (usually SPF and DKIM records), and use an address on that domain as the SMTP notify from address.