Scan-to-Email After Microsoft 365 SMTP AUTH: Relay Options
When Microsoft 365 stops accepting basic SMTP AUTH, scanners need another path. For under 100 scans a day, the simplest option is an authenticated third-party relay on port 587 or 2525; SMTP2GO was the most recommended in one MSP thread. Direct Send and a local relay such as hMailServer are the alternatives. Check outbound port 25 first.
Sohail Hussain14 min readShort answer
- For a few scanners sending under 100 emails a day, the simplest replacement is an authenticated third-party SMTP relay on port 587 or 2525, with the sending domain verified and one SMTP user per client.
- If the client has a static public IP and open outbound port 25, a Microsoft 365 SMTP relay connector keeps mail inside Microsoft and also reaches external recipients.
- Test the outbound port before you blame any provider, because blocked port 25 is the classic reason scan-to-email stops.
The question behind this page comes up in MSP communities all the time: Microsoft is retiring basic authentication for SMTP AUTH, the scanner can't do OAuth, and someone needs a cheap, boring way to keep scan-to-email working. Threads from MSPs describe the same pattern: a few devices per client, under 100 emails a day, no wish to run a mail server.
Why scan-to-email breaks or gets risky
Scanners and printers usually send with a stored username and password. Microsoft's term for that is client SMTP submission (SMTP AUTH) against smtp.office365.com. Microsoft describes it as sending authenticated email using the credentials of a cloud mailbox. Basic authentication for that path is the part being retired, and much device firmware never got OAuth support.
The dates have moved several times, so treat any date you read, including here, as something to confirm. Earlier published targets included September 2025 and March 1, 2026. As of November 2026, people on Microsoft's own Q&A forum quote an Exchange Team update dated 27 January 2026. They say basic authentication for SMTP AUTH keeps working until the end of December 2026, is then disabled by default in existing tenants (an admin can turn it back on), and the final removal date is to be announced in the second half of 2027. Microsoft's official device guide still says only that client SMTP submission using Basic authentication is scheduled for deprecation. Check your tenant's Message Center and the Exchange Team blog for the date that applies to you.
Two other things push people toward a relay:
- Weak SMTP AUTH fit. Microsoft notes that basic authentication for client SMTP submission isn't compatible with Security defaults in Microsoft Entra ID.
- Port 25 blocks. Anything that uses port 25 depends on your ISP. A 2020 r/sysadmin thread described scan-to-email dying when AT&T blocked outbound port 25. That is one old report, but the mechanism is real, and Microsoft itself warns that some firewalls and ISPs block port 25.
Community opinion on third-party relays is also worth a sentence. In an r/msp thread (last active December 2022), people reported SendGrid delays and missing scan messages, and SMTP2GO was recommended 113 times as the simple alternative. That is one community's experience, not a benchmark, and it is several years old. Test with real scan jobs before you roll anything out to every client.
Your options at a glance
| Option | Device authenticates with | Port | External recipients | Main catch |
|---|---|---|---|---|
| Third-party authenticated relay (SMTP2GO, SendGrid, others) | Username and password | 587 or 2525 | Yes | Scans pass through a third party; DNS records needed |
| Microsoft 365 SMTP relay connector | Static public IP or certificate | 25 | Yes | Static IP and open port 25 required |
| Direct Send | Nothing | 25 | No, own domains only | Can be filtered as suspicious; port 25 |
| High Volume Email (HVE) | HVE account credentials or OAuth token | 587 | No, internal only | Pay-as-you-go billing setup |
| Local relay (hMailServer, Postfix) | Nothing or plain SMTP to the relay | 25 on the LAN | Depends on its smarthost | You maintain a server |
The Microsoft rows follow Microsoft's own comparison: Direct Send and SMTP relay can both send to recipients in your domains, but only client SMTP submission and SMTP relay relay to the internet through Microsoft 365. The vendor rows depend on each vendor's current ports and limits, which I'm deliberately not quoting; check them yourself.
Option 1: authenticated third-party relay
This is what I'd pick first for small sites. The scanner connects to the vendor's host over STARTTLS on port 587, or 2525 if 587 is filtered, with a plain username and password. There are no inbound ports to open and no static IP to maintain. Check each vendor's documentation for the exact host names and ports it offers.
SMTP2GO is the name the MSP thread kept returning to, and it is a reasonable default. SendGrid works technically, but the delay reports are a reason to pilot it first. Free tiers and limits change, so confirm current numbers on the vendor's pricing page.
Setup is the same pattern for any vendor:
- Create an account and add the sending domain (the domain in the scanner's From address).
- Publish the DNS records the vendor gives you, usually DKIM CNAMEs and an SPF include.
- Create an SMTP user dedicated to scanners. MSPs should create one per client, so revoking one doesn't break the rest.
- On the device, set the vendor's server name, port
587(or2525), STARTTLS, that username and password, and a From address on the verified domain. - Scan to an internal and an external address and check both the inbox and the spam folder.
Your SPF record has to cover both Microsoft 365 and the relay, in a single record:
example.com. TXT "v=spf1 include:spf.protection.outlook.com include:relay-spf-host.example ~all"
Replace relay-spf-host.example with the include host from the vendor's dashboard, and keep to one SPF record per domain and the 10-lookup limit. The SPF generator helps merge includes, and the glossary entries for SPF and DKIM cover the basics. For the full record set, see how to set up SPF, DKIM and DMARC. Without DKIM signing on the relay, scans from your own domain can land in spam.
Scans can be sensitive
A scan is often an invoice, contract or ID. A third-party relay sees every message you send through it, so check the client's data-protection requirements before choosing one. If mail must stay inside the tenant, use a Microsoft option instead.
Option 2: Microsoft 365 SMTP relay connector
You create an inbound connector in Exchange Online that recognizes your office, and the device sends to your tenant's MX endpoint. The connector authenticates the device with a TLS certificate (recommended) or a public IP address. Unlike Direct Send, this reaches external recipients.
Requirements from Microsoft's guide:
- A certificate, or a static public IP that isn't shared with another organization. Dynamic IP addresses aren't supported.
- Port 25, which must not be blocked on your network or by your ISP.
- A device setting that points the smart host at your MX endpoint, for example contoso-com.mail.protection.outlook.com.
For an IP-based connector, open the Exchange admin center, go to Mail flow > Connectors, select Add a connector, and set Connection from to Your organization's email server. Then, on the Authenticating sent email page, choose the option that verifies the sending server's IP address and enter the device's public IP.
Downsides: mail can be disrupted if your IP addresses land on a spam blocklist. Also, if the ISP changes your static IP, the connector stops matching and external mail fails until you update the connector and your SPF record. I'd choose this when the client already has a static IP and open port 25, and skip it for dynamic-IP sites.
Option 3: Direct Send
Direct Send has the device deliver straight to your MX endpoint on port 25 with no authentication. The sender address doesn't need a mailbox. It suits "scan to me" and nothing else: the printer can email only people in your organization, not outside recipients.
Because it's unauthenticated, suspicious mail might be filtered, and Microsoft recommends an SPF record entry. Microsoft also says you need DKIM and DMARC configured correctly for the domain, not only SPF. People on Microsoft's Q&A forum also report a newer organization setting named RejectDirectSend, and say mail matched by a connector still counts as authenticated. I couldn't confirm that in Microsoft's own documentation, so verify it before you design around Direct Send.
Option 4: High Volume Email
HVE is Microsoft's own route for devices that can authenticate with an account that isn't a user mailbox. It enables applications and devices to send large volumes of internal email without affecting user mailboxes. The settings are server smtp.hve.mx.microsoft, port 587, TLS/StartTLS enabled, and HVE account credentials or an OAuth token.
Two catches for small sites. It is internal only, and it uses pay-as-you-go billing, so each HVE account needs a billing policy linked to an Azure subscription before it can send. For a printer that scans to employees, that can be worthwhile. For under 100 scans a day to customers, it's the wrong tool.
Option 5: local relay with hMailServer or Postfix
Run hMailServer (Windows) or Postfix (Linux) on a small LAN server. Devices send to it on port 25 with no authentication or older TLS, and it forwards to a smarthost, meaning one of the authenticated relays above on 587 or 2525. The MSP thread suggested this for devices with limited firmware.
The cost is real: patching, monitoring, and a mail queue nobody checks until scans stop. I'd skip it unless a device truly can't speak modern TLS or can't enter credentials. Microsoft states its own requirement plainly: if a device doesn't support TLS 1.2 or later, you can't use client SMTP submission with Microsoft 365. For background, see SMTP and TLS on SMTP.
Check the port before you blame the relay
If scans fail with a timeout rather than a rejection, the network is probably blocking you. From a Windows machine on the same network as the scanner:
Test-NetConnection -ComputerName smtp.example-relay.com -Port 587
Test-NetConnection -ComputerName smtp.example-relay.com -Port 2525
Replace the host name with the one your relay vendor gave you. If TcpTestSucceeded is False on 587 and True on 2525, use 2525. If both fail, check the firewall, then ask the ISP. For the connector and Direct Send, test port 25 against your MX endpoint the same way. Port 25 is the one most often blocked on consumer-grade connections, which is why I steer new setups to 587 or 2525.
Use a dedicated sender
Give each device or client its own SMTP user and From address. When one device is compromised or a client leaves, you revoke one credential and the rest keep working.
What each error usually means
| Symptom | Likely cause | Fix |
|---|---|---|
| Timeout, no SMTP banner | Outbound port blocked | Test the port; switch to 587 or 2525 for relays |
Client was not authenticated to send anonymous mail during MAIL FROM (5.7.57) | Device connects to smtp.office365.com without credentials | Enter credentials, or move to a connector or Direct Send |
5.7.60 SMTP; Client does not have permissions to send as this sender | From address differs from the login account | Give the login account Send As permission for that sender. |
535 5.7.139 | SMTP AUTH or basic authentication disabled for the tenant or mailbox, or Security defaults on | Re-enable per mailbox if still allowed, or move to a relay |
| Handshake fails immediately | Device only speaks old TLS or SSL | Update firmware; try a local relay |
| Auth fails at third-party relay | Wrong SMTP user or password, or unverified From domain | Recheck credentials and domain verification |
| Scans land in Junk | Missing SPF include or DKIM | Add the relay to SPF and publish DKIM |
Microsoft documents a legacy workaround for old TLS: set AllowLegacyTLSClients to True on Set-TransportConfig (or the matching Exchange admin center mail flow setting) and point legacy devices at smtp-legacy.office365.com. That keeps weak TLS alive and doesn't fix the basic authentication retirement, so I'd treat it as a stopgap.
Open a scan's raw headers in the email header analyzer to confirm SPF and DKIM passed.
Checklist before you cut over
- Every device that sends through Microsoft 365 SMTP is on your inventory, including forgotten ones.
- The sending domain is verified at the new relay and DKIM is published.
- SPF has one record covering Microsoft 365 and the relay.
- The chosen port passes
Test-NetConnectionfrom the scanner's network. - Each device has its own SMTP user and a From address on the verified domain.
- You tested an internal and an external recipient and checked spam folders.
- Only then do you remove the old mailbox password or license used for SMTP.
Should you switch at all?
Often the answer is not yet. If the device supports OAuth, or the vendor ships a firmware update that does, the simplest path for a modern device is SMTP AUTH client submission with a dedicated mailbox, as long as security controls allow SMTP AUTH for that account. One vendor and one set of DNS records is easier to run than two. If scanners only email staff, Direct Send or HVE keeps everything in Microsoft.
A third-party relay earns its place with older devices, many tenants to manage, or clients without a static IP. For what it's worth, Mailneo isn't an SMTP relay for devices; it sends campaigns through mailboxes and providers you connect, so it's not an answer to this problem.
If nothing works
Contact your relay vendor's support if the error comes back from their server, Microsoft 365 admin support if it comes from office365.com or your MX endpoint, and the ISP if the port test fails. Include the exact error text, the time of the failed scan in UTC, the device model and firmware version, the port and encryption setting, and what you already tried. Microsoft 365 admins can also run the diagnostic from the Microsoft 365 admin center for new setups or troubleshooting.
Subject: Scan-to-email failing, SMTP relay on port 587
Hello,
Our scanner (model {model}, firmware {version}) fails to send mail through {relay-host} on port 587 with STARTTLS.
Error shown: {exact error text}
Time of last failure (UTC): {timestamp}
Sending domain: {example.com} (DKIM and SPF published: yes/no)
SMTP user: {username}
Tested: port 587 reachable from the scanner's network: yes/no; port 2525: yes/no
Could you check whether the authentication attempt reached your servers and why it was rejected?
Thank you.
Common questions
Can I just keep using smtp.office365.com with an app password?
App passwords rely on basic authentication, which is the part being retired. People on Microsoft's Q&A forum report they keep working only until the date your tenant disables basic auth, so plan a move rather than hoping for another extension.
Is SMTP2GO or SendGrid better for scanners?
I can't give you a verified comparison. The MSP thread favored SMTP2GO and reported SendGrid delays, but that's community experience from 2022. Pilot your choice with real scan jobs, and check current limits and pricing on the vendor's site.
Why do scans reach my own staff but not Gmail or Yahoo?
That's the Direct Send pattern: it only delivers to recipients in your own organization. Move to an SMTP relay connector or an authenticated third-party relay.
Do I need DKIM if the relay already authenticates the device?
Yes. Device authentication only proves the scanner may use the relay; recipients judge the message by SPF, DKIM and DMARC on your domain. Without DKIM, scans from your own domain are more likely to be filtered.
Explore: Email Marketing Strategy
Related Articles
SendGrid Free Tier IPs on Spamhaus: Deferred Mail, Alternatives
If SendGrid mail is deferred because a shared IP landed on Spamhaus, your options are a paid plan, a dedicated IP, or another relay such as Amazon SES or SMTP2GO. First confirm the IP is the cause and not your domain, content or the recipient. Then pick by cost and effort.
ACS Email retirement: alternatives for sending email from Azure
If you send from Azure through Azure Communication Services Email and it is being retired, you can move to SendGrid, Mailgun, Brevo, SocketLabs or Microsoft Graph. Keep the provider key in Key Vault, publish new DNS records before cutover, and shift traffic in stages while you watch bounces.
Gmail cold email in spam with no bounce: how to spot it
Gmail often accepts cold email and files it in spam, so your bounce rate stays clean while replies die. Compare reply rate by recipient provider, split refusals from bad-address bounces, judge each domain on its last 1,000 sends, and confirm with a seed test of Gmail and Outlook addresses.
Postmark price increase for agencies: SES, SMTP2GO, Mailgun
Postmark changed pricing for accounts with more than 5 servers; one agency with 45 servers reported going from $15 to $138 a month. Count your servers and streams first. Then consolidate, or move to Amazon SES, SMTP2GO or Mailgun, and check each vendor's current terms for multi-client accounts.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free