Printers, scanners and business apps that send email aren't mail servers, so they need Microsoft 365 to send for them. Microsoft offers three ways to do it. This guide helps you pick one and gives the settings for each.
What you'll need
- The device's or app's email settings page (often called SMTP, email or scan-to-email)
- A Microsoft 365 admin sign-in, for options 2 and 3
Username-and-password sending is being switched off. Microsoft will turn off this kind of sign-in for option 1 by default at the end of December 2026. Admins can switch it back on for now, but Microsoft will announce a final removal date in the second half of 2027. For a device you're setting up now, choose option 2 if you can.
Which one to choose
| 1. Mailbox sign-in | 2. Relay | 3. Direct send | |
|---|---|---|---|
| Sends outside your business | Yes | Yes | No, only to your own mailboxes |
| Needs a mailbox licence | Yes | No | No |
| Needs a fixed public IP address | No | Yes, or a certificate | Recommended |
| Port | 587 | 25 | 25 |
| Best for | Devices that can sign in with modern authentication (OAuth) | Office printers and scanners on a fixed internet connection | Old devices that can't do anything else |
Settings for each
1. Mailbox sign-in
| Server | smtp.office365.com |
|---|---|
| Port | 587 |
| Encryption | STARTTLS (TLS 1.2 or later) |
| Username and password | The email address and password of the mailbox that sends |
An admin must allow this for the sending mailbox: Microsoft turns it off for businesses that joined after January 2020. It also doesn't work alongside Microsoft's security defaults.
Device suggests port 465? Then it can't use this option. Choose option 2 instead.
2. Relay
| Server | Your domain's MX value, for example yourbusiness-com-au.mail.protection.outlook.com |
|---|---|
| Port | 25 |
| Encryption | STARTTLS, if the device offers it |
| From address | Any address at your domain, for example scanner@yourbusiness.com.au. It doesn't need a mailbox. |
Then an admin adds a connector in Microsoft 365, so it knows mail from your office's IP address is yours:
- Sign in at
admin.cloud.microsoft/exchangeand go to Mail flow > Connectors. - Select Add a connector. For Connection from, choose Your organization's email server.
- Name it (for example "Office scanner") and leave Turn it on ticked.
- Choose to verify by IP address, and enter your office's fixed public IP address.
- Review and select Create connector.
Finally, add that IP address to your SPF record (ip4:203.0.113.10, for example), so your scans don't land in junk mail.
3. Direct send
| Server | Your domain's MX value, as for relay |
|---|---|
| Port | 25 |
| From address | Any address at your domain |
No sign-in and no connector, which is why it can deliver only to mailboxes in your own business. Microsoft treats this mail like any message from the internet, and recommends it only when nothing else works.
Find your MX value
In the admin centre at admin.cloud.microsoft, go to Settings > Domains, select your domain, open DNS records, and copy the value of the MX record.
Still not working?
- Check that your internet provider doesn't block outgoing port 25 (for options 2 and 3) or port 587 (for option 1).
- Option 2 needs a fixed IP address that is yours alone. Ask your internet provider if you're not sure.
- Still stuck? Open a ticket with the device make and model, the option you chose, and the error the device shows.
What's next
- DNS records for Microsoft 365 emailAdd the SPF entry for your device
Follows Microsoft Learn: "How to set up a multifunction device or application to send email using Microsoft 365 or Office 365" (November 2026), and the Exchange Team's updated SMTP AUTH timeline (29 January 2026).