How do you set up scan to email and app SMTP with Microsoft 365?
Microsoft 365 offers four routes: SMTP AUTH to smtp.office365.com on port 587 with a licensed mailbox and TLS 1.2 or later; an SMTP relay connector authenticated by static IP or certificate; Direct Send to your MX endpoint (internal only); or High Volume Email (internal only). Basic auth for SMTP AUTH goes off by default in late December 2026.
On this page 10 sections
Printers, scanners and business apps create email but aren't mail servers, so they need a route out. Microsoft 365 gives you four routes, each with different rules about sign-in, recipients and limits. Picking the wrong one is why scan to email works for a week, then fails with a bounce nobody understands.
This guide compares the options, walks through each setup, decodes the common errors and explains what Microsoft's Basic auth retirement means for your devices.
What are the ways to send email from a device through Microsoft 365?
Microsoft documents four methods for devices and applications: SMTP AUTH client submission, SMTP relay through a connector, Direct Send, and High Volume Email (HVE) for internal mail (Microsoft Learn). They differ in server name, port, sign-in and who they can reach:
| Item | SMTP AUTH client submission | SMTP relay (connector) | Direct Send | High Volume Email |
|---|---|---|---|---|
| Server | smtp.office365.com |
Your MX endpoint | Your MX endpoint | smtp.hve.mx.microsoft |
| Port | 587 (recommended) or 25 | 25 | 25 | 587 |
| TLS | Required, 1.2 or 1.3 | Optional (enable it) | Optional | Required |
| Authentication | A licensed mailbox's credentials or OAuth | Certificate or static IP on an inbound connector | None | HVE account password or OAuth |
| External recipients | Yes | Yes | No | No |
| Licensed mailbox needed | Yes | No | No | No (HVE account, no license) |
| Saved to Sent Items | Yes | No | No | No |
| Limits | 10,000 recipients a day, 30 messages a minute | "Reasonable limits" | Standard throttling for anonymous internet mail | No recipient or message rate limit; 50 recipients a message |
Your MX endpoint is the host name your domain's MX record points to in Microsoft 365, in the form contoso-com.mail.protection.outlook.com. Domains that have DNSSEC turned on for inbound mail use a newer form ending in mx.microsoft, such as contoso-com.o-v1.mx.microsoft (Microsoft Learn). Find yours in the Microsoft 365 admin center under Settings > Domains: select the domain, open the DNS records tab and copy the MX Points to address or value. An MX Lookup shows the same value, unless your MX points to a filtering gateway. Microsoft says not to use an IP address in its place.
Which Microsoft 365 SMTP option should you choose?
Choose SMTP AUTH client submission when the device supports TLS 1.2 and reaches external recipients; choose a relay connector when it can't sign in; use Direct Send only as a last resort. In order of preference:
- SMTP AUTH client submission if the device supports TLS 1.2 and, ideally, OAuth. It's the simplest and reaches anyone.
- SMTP relay through a connector if the device can't sign in, or you don't want a licensed mailbox for it, and you have a certificate or a static public IP that only your organization uses.
- High Volume Email if the device only ever emails staff and you want to avoid mailbox limits and Basic auth risk. It needs pay-as-you-go billing.
- Direct Send only if the device must reach internal staff and can't do any of the above. Microsoft says most customers don't need it, and recommends it "only for advanced customers willing to take on the responsibilities of email server admins."
One exception: Microsoft says you can't use SMTP relay to send from a third-party hosted service, such as an app running in Azure. Cloud-hosted apps should use client submission (with OAuth) or HVE instead.
How do you tell which method a device already uses?
Look at the server name in the device's email settings. Microsoft's troubleshooting guide puts it simply: smtp.office365.com with a username and password is client submission; a server ending in mail.protection.outlook.com with no connector for it is Direct Send; the same server with an inbound connector for your public IP or certificate is SMTP relay (Microsoft Learn).
How do you set up SMTP AUTH client submission?
SMTP AUTH client submission means the device signs in to smtp.office365.com as a real mailbox, so that mailbox's address becomes the sender.
- Pick or create a licensed mailbox for the device, for example
scanner@yourdomain. Microsoft requires "a licensed Microsoft 365 or Office 365 mailbox that the device uses to send email from." - Enable SMTP AUTH on that mailbox. Microsoft disables SMTP AUTH for organizations created after January 2020, and recommends keeping it off for the organization and enabling it only for the accounts that need it (Microsoft Learn). In the Microsoft 365 admin center, go to Users > Active users, select the user, select Mail, then Manage email apps, check Authenticated SMTP and select Save changes. Or use Exchange Online PowerShell:
Set-CASMailbox -Identity scanner@yourdomain.com `
-SmtpClientAuthenticationDisabled $false
- Leave the organization setting off. The mailbox setting overrides the organization one, so you can keep SMTP AUTH disabled tenant-wide. In the Exchange admin center the switch is under Settings > Mail flow, labeled Turn off SMTP AUTH protocol for your organization. Check both levels in PowerShell:
Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled
Get-CASMailbox -Identity scanner@yourdomain.com |
Format-List SmtpClientAuthenticationDisabled
True at the organization level is what you want. On the mailbox, False means enabled, True means disabled and blank means it follows the organization setting.
- Configure the device: server
smtp.office365.com(never an IP address), port 587, TLS or STARTTLS on, and the mailbox's username and password, or OAuth if the device supports it. - Test the path, then send a test to an internal and an external address. If the device can't connect at all, check that port 587 is open with Telnet or OpenSSL from the same network; our guide to testing an SMTP server with Telnet and OpenSSL shows the commands, and SMTP ports 25, 587 and 465 explains which port does what.
What about OAuth for apps and devices?
OAuth (modern authentication) lets a device or app present a token instead of a password, and it's the method Microsoft supports long term. Line-of-business apps can use the OAuth 2.0 client credentials grant: you register an app in Microsoft Entra ID, grant it the SMTP.SendAsApp application permission, register its service principal in Exchange with New-ServicePrincipal, and give it access to the sending mailbox (Microsoft Learn). The token is sent with AUTH XOAUTH2. Many older printers can't do OAuth at all; check the manufacturer's current firmware notes before you plan around it.
What goes wrong with client submission?
- Security defaults. If security defaults are on in Microsoft Entra ID, Microsoft says "SMTP AUTH is already disabled in Exchange Online." An authentication policy that blocks Basic auth for SMTP, or a Conditional Access policy that blocks legacy authentication, has the same effect. Microsoft's troubleshooting page lists turning off MFA or excluding the account from those policies as fixes, but that weakens your sign-in protection; see what security defaults break and prefer a relay connector instead.
- No TLS. A device that can't negotiate TLS 1.2 or later can't use this method. Microsoft adds that a device that recommends or defaults to port 465 "doesn't support the required versions of TLS." Older firmware is the usual cause; see our guide to STARTTLS and encryption in transit.
- Sending as another address. If the device sends from an address other than the sign-in mailbox, that mailbox needs Send As permission, or you'll get
5.7.60 SMTP; Client doesn't have permissions to send as this sender. - Mailbox limits. The sign-in mailbox has the normal mailbox limits shown above. Our guide to Microsoft 365 sending limits covers what happens when a device hits them.
What do common Microsoft 365 scan-to-email errors mean?
A scan-to-email bounce code usually points straight to the cause. Most come from Microsoft's device troubleshooting guide (Microsoft Learn); 5.7.30 is from the Basic auth retirement announcement (Microsoft Tech Community):
| Error | What it means | Fix |
|---|---|---|
535 5.7.3 Authentication unsuccessful |
Sign-in to smtp.office365.com was refused |
Check the password, SMTP AUTH on the mailbox, security defaults and Conditional Access |
5.7.57 Client not authenticated to send mail |
The device connected to smtp.office365.com without signing in |
Enter mailbox credentials, or switch to relay or Direct Send |
5.7.60 Client doesn't have permissions to send as this sender |
The From address isn't the sign-in mailbox | Grant Send As, or use a relay connector |
550 5.1.8 Bad outbound sender |
The mailbox was blocked for sending spam | Investigate, then remove it from restricted users in the Microsoft Defender portal |
5.7.64 TenantAttribution; Relay Access Denied |
The relay connector no longer matches the device's IP or certificate | Update the connector and SPF with the new IP or certificate |
550 5.7.68 TenantInboundAttribution |
Reject Direct Send is on and the device uses Direct Send | Move the device to a connector or client submission |
550 5.7.236 |
The device sends from your onmicrosoft.com address, limited to 100 external recipients a day per organization |
Send from your own verified domain |
550 5.7.30 Basic authentication is not supported for Client Submission |
Basic auth for SMTP AUTH is off | Move to OAuth, a relay connector or HVE |
The onmicrosoft.com limit catches new tenants: Microsoft throttles outbound mail from the default domain to 100 external recipients per organization in a rolling 24 hours (Microsoft Learn). For generic sign-in failures, see 535 5.7.8 and 530 5.7.0, or paste any bounce into the SMTP Error Code Lookup. Scans that bounce for size are a separate problem; see email attachment size limits.
When is Basic auth for SMTP AUTH turned off?
At the time of writing (November 2026), Microsoft plans to turn off Basic auth (username and password) for SMTP AUTH by default for existing tenants at the end of December 2026, with admins still able to turn it back on. Microsoft first announced the retirement in April 2024 and has moved the date several times. The current plan, from the Exchange Team's update of January 27, 2026 (Microsoft Tech Community), is:
| When | What changes |
|---|---|
| Now to December 2026 | No change |
| End of December 2026 | Basic auth for SMTP AUTH "disabled by default for existing tenants"; admins can still turn it back on |
| New tenants after December 2026 | Basic auth unavailable by default; OAuth is the supported method |
| Second half of 2027 | Microsoft will announce the final removal date |
Earlier dates you may still see quoted, such as September 2025 or March to April 2026, were replaced by this timeline. Once Basic auth is off, clients get 550 5.7.30 Basic authentication is not supported for Client Submission. The change applies to client submission only. Relay connectors and Direct Send don't sign in, so they aren't affected. Our SMTP AUTH Basic auth retirement guide covers the migration in more depth.
To find out what's at risk, open the Exchange admin center and go to Reports > Mail flow > SMTP AUTH clients. It lists each sender, whether it used Basic Auth or Modern Auth, and the share of its traffic on TLS 1.0, 1.1 and 1.2. It shows 7 days by default and accepts a date range of up to 90 days (Microsoft Learn). For each Basic auth sender, switch it to OAuth, move it to a relay connector or HVE, or replace the device. Microsoft's alternatives are HVE (internal mail), Azure Communication Services Email (internal and external) or an on-premises relay server.
How do you set up an SMTP relay connector in Microsoft 365?
An SMTP relay connector is an inbound connector that tells Microsoft 365 to accept and relay mail from your device, identified by a certificate (recommended) or a static public IP. The device can send as any address in your accepted domains, with no mailbox and higher limits than client submission.
- Confirm the source. Get the public IP the device's traffic leaves from. Microsoft says dynamic IP addresses "aren't supported or allowed," and the IP must not be shared with another organization. For a certificate, its Subject or SAN must contain one of your accepted domains.
- Create the connector. In the Exchange admin center, go to Mail flow > Connectors (
https://admin.cloud.microsoft/exchange#/connectors) and select Add a connector. - Under Connection from, select Your organization's email server. Connection to is set to Office 365 automatically.
- Name it, keep Turn it on selected and leave Retain internal Exchange email headers unselected.
- On Authenticating sent email, choose the certificate option and enter your domain, or choose the IP option and enter the device's public IP.
- Review and select Create connector.
- Configure the device: server is your MX endpoint, port 25, TLS on (1.2 or 1.3), sender address in your accepted domain.
- Update SPF. Microsoft says to add the IP to your domain's SPF record so messages aren't marked as spam. Our Microsoft 365 SPF page shows the include, and the SPF Checker confirms you stay under 10 lookups.
- Send a test to an external address and confirm it arrives.
If you already have a hybrid connector from on-premises Exchange, you probably don't need a separate one. Our guide to Microsoft 365 connectors explains how this connector differs from partner connectors, and port 25 blocked by your ISP helps when the device can't reach port 25 at all.
Is Direct Send safe, and how do you lock it down?
Direct Send is safe only when you control it: the device connects anonymously to your MX endpoint on port 25 and sends as an address in your domain, with no settings in Microsoft 365. That's also its weakness. Microsoft treats the messages "just like anonymous email from the internet," they can't reach external recipients, and attackers can use the same path to spoof your domain to your own staff; our guide to Direct Send spoofing shows how.
If you use it, add the sending IP to SPF and make sure DKIM and DMARC are set up for the domain, as Microsoft advises. If nothing of yours uses Direct Send, block it:
Set-OrganizationConfig -RejectDirectSend $true
Microsoft says the change propagates within 30 minutes. It then rejects anonymous messages whose envelope sender uses one of your accepted domains, with 550 5.7.68 TenantInboundAttribution; Direct Send not allowed for this organization from unauthorized sources. Any legitimate sender that hits it needs a partner connector matching its certificate or IP. The setting is off by default for existing tenants; Microsoft says it plans to turn it on by default for new tenants, without a published date at the time of writing (Microsoft Tech Community). Our guide to blocking Direct Send and filter bypass covers how to find existing direct senders first.
Does High Volume Email replace scan to email?
High Volume Email can replace scan to email for devices that only send to staff. HVE accounts aren't mailboxes and need no license. They sign in to smtp.hve.mx.microsoft on port 587 with TLS, using a password or OAuth, and work even when SMTP AUTH is disabled tenant-wide. Microsoft lists no recipient or message rate limit, but caps each message at 50 recipients and 10 MB, allows up to 100 HVE accounts per tenant, and bills per delivered recipient through pay-as-you-go billing; an account without a billing policy can't send (Microsoft Learn).
HVE accounts can't send to external recipients or receive mail, and Microsoft notes that with security defaults on, HVE can authenticate only with OAuth. The older endpoint smtp-hve.office365.com "will be deprecated in the future," so use the mx.microsoft name for new devices. Our HVE setup guide shows how to create an account and fix common errors.
Does a filtering gateway change scan to email?
A filtering gateway doesn't change client submission (devices still sign in to smtp.office365.com), but it does change Direct Send and relay connectors. Once your MX points to a filtering gateway, an MX lookup no longer returns your Microsoft 365 endpoint, so copy it from the admin center instead. And if you restrict your tenant to accept mail only from the gateway, as you should, anonymous Direct Send from a device stops working, so move those devices to client submission or a relay connector first. Check a test message in the Email Header Analyzer to see which route it actually took. If you're weighing a gateway for Microsoft 365, our Microsoft 365 platform page explains how iBlockSpam's inbound filtering sits in front of your tenant.
Next steps
- Open the SMTP AUTH clients report and list every device that still signs in with Basic auth.
- Move each one to OAuth, a relay connector or HVE before the end of December 2026.
- Keep SMTP AUTH disabled for the organization and enabled only on the mailboxes that need it.
- Add any relay or Direct Send IPs to SPF, then run
Set-OrganizationConfig -RejectDirectSend $trueif nothing still uses Direct Send. - Look up any bounce in the SMTP Error Code Lookup, and review mail flow rules for security while you're in the Exchange admin center.
Browse more setup guides.
Frequently asked questions
Can a scanner send email through Microsoft 365 without a license?
Yes, with SMTP relay or Direct Send. Neither needs a licensed mailbox, and the device can use any address in one of your accepted domains, such as scanner@yourdomain. SMTP AUTH client submission is different: Microsoft requires the credentials of a licensed Exchange Online mailbox, and that mailbox appears as the sender.
Which port should a printer use for Microsoft 365 SMTP?
For SMTP AUTH client submission, use smtp.office365.com on port 587 with STARTTLS. Port 25 also works if your network allows it. Relay connectors and Direct Send use port 25 to your MX endpoint. Microsoft says a device that defaults to port 465 doesn't support the TLS versions client submission needs.
Will scan to email stop working when Microsoft retires Basic auth?
Only devices that sign in to smtp.office365.com with a username and password are affected. At the time of writing (November 2026), Microsoft plans to turn Basic auth for SMTP AUTH off by default for existing tenants at the end of December 2026, with admins able to turn it back on. Relay connectors and Direct Send don't use Basic auth.
Why can my scanner email staff but not outside addresses?
It's probably using Direct Send, which delivers only to mailboxes in your own Microsoft 365 organization. Microsoft rejects Direct Send mail addressed to external recipients such as Gmail users. To reach outside addresses, switch the device to SMTP AUTH client submission or an SMTP relay connector.
Does SMTP AUTH work with security defaults turned on?
Not with a password. Microsoft says SMTP AUTH is already disabled in Exchange Online when security defaults are on, and Basic authentication isn't compatible with them. Use OAuth if the device or app supports it, or choose a connector-based relay, rather than turning security defaults off for one printer.
What does 535 5.7.3 Authentication unsuccessful mean on a Microsoft 365 printer?
Microsoft 365 refused the device's sign-in to smtp.office365.com. Check the password, then confirm SMTP AUTH is enabled on that mailbox with Get-CASMailbox. Security defaults, an authentication policy or a Conditional Access policy that blocks legacy authentication cause the same error even when the password is right.
Corrections and significant updates
- : Refreshed against Microsoft Learn (November 2026): added High Volume Email to the comparison (no recipient or message rate limits, billing policy required), the Exchange admin center switch for SMTP AUTH, an error-code table, the onmicrosoft.com sending throttle, OAuth client credentials for apps, DNSSEC MX host names and Microsoft's plan to reject Direct Send by default for new tenants.
Sources
- Microsoft Learn: How to set up a multifunction device or application to send email using Microsoft 365
- Microsoft Learn: Enable or disable SMTP AUTH in Exchange Online
- Microsoft Learn: Fix issues with printers, scanners, and LOB apps that send email using Microsoft 365
- Microsoft Tech Community: Updated Exchange Online SMTP AUTH Basic Authentication Deprecation Timeline
- Microsoft Learn: SMTP AUTH clients report in the new EAC
- Microsoft Learn: Manage High Volume Email for Microsoft 365
- Microsoft Tech Community: Introducing more control over Direct Send in Exchange Online
- Microsoft Learn: Authenticate an IMAP, POP or SMTP connection using OAuth
See how your domain measures up
Run a free Email Health Check: MX, SPF, DKIM, DMARC and transport security in one scan, with the raw records shown. No sign-up.
Keep reading
Microsoft 365 connectors explained: when you need them and how they work
When Exchange Online needs inbound or outbound connectors: Partner vs on-premises types, TLS certificate and IP matching, smart hosts, validation and mistakes.
9 min read Setup guidesWhat is High Volume Email in Exchange Online, and how do you set it up?
What Exchange Online High Volume Email (HVE) is, its limits and billing, how to create an HVE account in the admin center or PowerShell, and how to fix errors.
9 min read Setup guidesWhat does the SMTP AUTH Basic auth retirement mean for your Microsoft 365 tenant?
Microsoft turns off Basic auth for SMTP AUTH by default at the end of December 2026. The timeline, how to find affected devices, the settings and alternatives.
11 min read