logo
search
Exchange Connection Problems

Troubleshoot HP Printer External SMTP Relay Issues in Microsoft 365

Kushani NimanthikaKushani Nimanthika Sep 28, 2026 869 views

Question details

The user needs to configure an HP multifunction printer to successfully send emails to external recipients via Microsoft 365 SMTP relay.

Troubleshoot External SMTP Relay from an HP Multifunction Printer
Product
Microsoft 365 and HP Multifunction Printer
Device & OS
not provided
Scenario
Configuring network printer settings for outgoing email communication via Microsoft 365.
Observed behavior
Microsoft 365 SMTP relay works for both internal and external recipients when tested from PowerShell, but the HP printer sharing the same public IP address can only deliver emails to internal recipients.
Before you start

Ensure you have administrator access to the Microsoft 365 Exchange admin center and the login credentials for your HP printer's Embedded Web Server (EWS).

Solution 1Recommended

Verify Exchange Connector and SPF Record Configurations

Confirm that your Microsoft 365 inbound connector recognizes your network's current IP address and that your SPF record is correctly updated.

Even if PowerShell successfully sends emails, an anonymous SMTP relay requires strict IP matching. Network or ISP changes can alter your static public IP address, causing the Microsoft 365 connector to reject external routing for devices like printers.

1
Check the Inbound Connector

Log in to the Microsoft 365 admin center, navigate to the Exchange admin center, and open the 'Connectors' page. Ensure that your inbound connector explicitly lists your network's current static public IP address.

2
Update the SPF Record

Access your domain's DNS settings and verify that the SPF record includes your public IP address. It should look similar to: v=spf1 ip4:<Static_IP_Address> include:spf.protection.outlook.com ~all

3
Test Printer Delivery

After allowing time for DNS propagation, attempt to scan and send a document from the HP printer to an external email address.

Verify Exchange Connector and SPF Record Configurations
DNS Propagation Time: Changes to your SPF record may take up to 24 hours to propagate fully across global DNS servers.
Free Microsoft Office alternative

Streamline Your Document Workflow with WPS Office

While resolving Microsoft 365 SMTP network configurations can be highly technical, creating and sharing the actual documents shouldn't be. WPS Office is a free, powerful, and lightweight alternative to Microsoft Office that makes editing and exporting documents for email or print incredibly easy.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the downloaded installer file and follow the straightforward on-screen instructions.
  3. 3. Start Creating: Launch WPS Office to instantly begin editing, saving, and sharing your documents seamlessly.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Export your documents directly to standard PDF formats before emailing them via your network printer.Lightweight installation ensures smooth performance even on older computers.Familiar ribbon interface requires no steep learning curve to master.
microsoft office alternative - wps office

Frequently Asked Questions

Why does PowerShell send emails successfully while my HP printer fails using the same IP?

PowerShell might be authenticated using different credentials or utilizing SMTP client submission (Port 587) behind the scenes, whereas the HP printer is likely attempting an anonymous SMTP relay (Port 25), which requires strict IP matching in the Microsoft 365 inbound connector.

What are the core requirements for Microsoft 365 SMTP relay (Option 3)?

The sending device must use a static public IP address. This IP address must be added to a configured inbound connector in Microsoft 365, and it must also be included in your domain's SPF record to authorize external delivery.

How do I find the correct static public IP address to enter into my SPF record?

You can find your network's public IP address by searching 'What is my IP' on a computer connected to the same local network as the printer, or by checking the WAN status page inside your internet router's settings.