The scanner needs to e-mail its PDF, the ERP system its invoices, the monitoring its alerts. Once the mailboxes are in Exchange Online, the question is: how do these messages get to Microsoft 365 securely and reliably? Microsoft describes three ways.
1. SMTP AUTH (client submission)
The device signs in to smtp.office365.com with a Microsoft 365 mailbox – port 587 (recommended) or 25 – and sends as that mailbox.
- Advantages: sends to internal and external recipients, from any location and without a static IP address; messages are saved in Sent Items.
- Requirements: a licensed mailbox with SMTP AUTH enabled (it is off by default in tenants created after January 2020) and TLS 1.2 or 1.3. Devices that only offer older TLS versions or port 465 can't use it.
- Limits: 10,000 recipients per day and 30 messages per minute. To send as a different sender, the account needs Send As permission.
2. Direct send
The device delivers without authentication directly to your domain's MX endpoint (…mail.protection.outlook.com), port 25.
- Advantages: no sign-in, no mailbox, TLS optional.
- Limits: only recipients in your own tenant – mail to external recipients is rejected. Messages are checked like anonymous mail from the internet, so SPF, DKIM and DMARC have to be right. Microsoft recommends direct send only for experienced administrators, is working on disabling it by default and already offers a setting to reject it organization-wide.
3. SMTP relay through a connector
An inbound connector in Exchange Online identifies the sender by its TLS certificate (recommended by Microsoft) or by a static public IP address. Mail is sent to the MX endpoint on port 25.
- Advantages: no mailbox or license required, any sender address in your domains (such as noreply@), delivery to external recipients too, higher limits than SMTP AUTH.
- Requirements: a certificate whose name contains an accepted domain of your tenant, or a static IP address that you don't share with anyone; plus a matching SPF record.
- Limits: many devices can't present a client certificate, and dynamic IP addresses aren't allowed. This method doesn't work from services hosted by third parties.
The end of Basic authentication for SMTP AUTH
Many scanners still sign in to SMTP AUTH with a user name and password. Microsoft is retiring this Basic authentication. According to the Exchange team's current timeline, it will be disabled by default for existing tenants at the end of December 2026; administrators can re-enable it for the time being, and new tenants won't get it at all. Microsoft plans to announce the final date in the second half of 2027. Basic authentication is already incompatible with the security defaults of Microsoft Entra ID.
Its successor is OAuth 2.0 (SASL XOAUTH2): an app registered in Microsoft Entra ID obtains an access token and signs in with it. For services without a signed-in user there is the client credentials flow with the SMTP.SendAsApp permission; the service principal is registered in Exchange Online and granted rights on the sending mailbox. That is feasible for your own applications – but many scanners and older devices don't support OAuth.
Where an on-premises relay helps
- Many older devices: they keep sending to an internal relay, and only the relay talks to Exchange Online – by certificate or OAuth. Microsoft itself names an on-premises mail server as the way out for devices without TLS 1.2 and as an alternative to Basic authentication with Exchange Online.
- One place for TLS and the certificate: instead of configuring every device, only the relay needs a certificate and a clean TLS setup.
- Tracking: if a message is missing, the relay shows whether and when it was received and delivered.
- No mailbox needed: with a connector there is no mailbox license and none of the SMTP AUTH limits.
The trade-off: the relay is one more service to run, secure and monitor. And it has to be restricted so that only your own systems can send through it.
PriCoSoft MailRelay for Exchange Online
PriCoSoft MailRelay is an SMTP relay for Windows Server 2019 and newer. Devices and applications send to MailRelay via SMTP or the pickup folder, and MailRelay delivers to Exchange Online over TLS:
- Connector with certificate (recommended): MailRelay identifies itself with a client certificate, and the TLS policy “required with name verification” secures the connection. Certificates are referenced by name, so renewals are picked up automatically; the Manager warns if the certificate lacks the Client Authentication purpose.
- Connector with IP address, if you have a static public IP address.
- OAuth 2.0 (XOAUTH2) with an Entra app and a mailbox enabled for SMTP AUTH – a Professional edition feature.
- Message tracking: for every message, a timeline shows receipt, delivery, deferral or failure with the server's response.
The Lite edition is free and includes the connector with certificate or IP address as well as message tracking. Professional (per installation, on request) adds OAuth 2.0 and DKIM signing, among other things. If the old IIS SMTP Server is still your relay, MailRelay takes over its configuration by import. We are happy to set up the connection of your devices to Exchange Online together with you.


