How to Configure a Scanner to Send Email Through Microsoft 365
Question details
The user needs to configure a network printer or scanner (such as a Lexmark XM1242) to send emails via Microsoft 365 using SMTP.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Setting up scan-to-email functionality on a network scanner to securely route documents through Microsoft 365 exchange servers.
- Observed behavior
- The user requires the correct SMTP configuration settings, including server addresses, ports, and troubleshooting steps to bypass authentication restrictions.
Ensure you have the administrator credentials for your Microsoft 365 tenant, as you may need to adjust Exchange authentication policies to allow SMTP connections.
Apply Correct Microsoft 365 SMTP Settings
Verify and apply the exact SMTP settings required by Microsoft 365 in your scanner's network configuration portal.
A common cause of scanner email failure is a typo in the SMTP server name. Ensure you are using the correct spelling to connect to the primary gateway.
Log in to your scanner or printer's web interface (EWS) using its IP address.
In the email or SMTP setup section, enter 'smtp.office365.com' as the server name. Double-check your spelling to ensure it is not mistakenly typed as 'smpt.office365.com'.
Set the SMTP port to 587. Enable STARTTLS (or TLS) encryption for the connection.
Enter the full Microsoft 365 email address and password designated for the scanner.

Enable Authenticated SMTP for the Mailbox
Microsoft disables SMTP authentication by default for some tenants. You must enable it for the specific mailbox used by the scanner.
Use an App Password for MFA-Enabled Accounts
If the email account uses Multi-Factor Authentication (MFA), basic password authentication will fail. You must use an App Password.
Handle Your Scanned Documents Easily with WPS Office
While configuring your scanner network settings, consider WPS Office as a lightweight, free alternative for viewing, editing, and managing the PDFs and documents you scan to your computer.
- 1. Download and Install: Get WPS Office from the official website and run the quick installation.
- 2. Open Scanned Files: Right-click your newly scanned PDF or image and choose to open it with WPS Office.
- 3. Edit and Convert: Use the integrated PDF tools to edit text, merge pages, or convert the scan to a Word document.

Frequently Asked Questions
Why is my scanner failing to connect to smtp.office365.com?
Connection failures are usually caused by a typo in the server name (e.g., typing 'smpt' instead of 'smtp'), port 587 being blocked by your firewall, or Microsoft 365 disabling basic SMTP authentication for your tenant.
Do I need an app password for my scanner?
Yes, if the Microsoft 365 account you are using for the scanner has Multi-Factor Authentication (MFA) enabled. Since scanners cannot receive SMS or app prompts, you must generate an App Password in your Microsoft account settings and use it in place of your regular password.
Can I use port 25 instead of port 587 for my scanner?
Microsoft 365 recommends port 587 with STARTTLS for standard SMTP client submission. Port 25 is typically reserved for Direct Send or SMTP relay setups, which require additional connector configurations in the Exchange admin center and cannot send emails to external addresses without authentication.




