How to Troubleshoot Windows Server SMTP Relay Queue Issues
Question details
Users need to resolve an issue where a Windows Server SMTP relay stops sending messages to Exchange Online, causing emails to accumulate in the queue.

- Product
- Windows Server / Exchange Online
- Device & OS
- Windows Server 2012 R2
- Scenario
- Managing an SMTP relay server configured to send outgoing mail through Exchange Online that has suddenly stopped processing the message queue.
- Observed behavior
- The SMTP relay fails to deliver outbound messages, resulting in a large backlog of emails accumulating in the local server queue.
Ensure you have administrative access to the Windows Server running IIS 6.0 and network permissions to verify outbound port connectivity to Exchange Online.
Verify SMTP Relay Configuration and Credentials
Check the core settings of the SMTP Virtual Server to ensure it correctly authenticates and connects to the Exchange Online smart host.
Authentication failures or incorrect smart host settings are the most common reasons for messages backing up in a Windows Server SMTP queue.
Launch Internet Information Services (IIS) 6.0 Manager from the Administrative Tools menu on your Windows Server.
Right-click on your SMTP Virtual Server instance and select Properties from the context menu.
Navigate to the Delivery tab and click 'Outbound Security'. Verify that Basic Authentication is selected, TLS encryption is enabled, and the correct Office 365 credentials are provided.
Click 'Advanced' on the Delivery tab. Ensure the Smart host field is correctly pointing to 'smtp.office365.com' or your organization's specific MX endpoint.

Test DNS Resolution and Port Connectivity
Ensure the server can resolve the Exchange Online hostname and establish a connection over the required ports.
Try WPS Office for Your Everyday Productivity Needs
While troubleshooting server-side Exchange connection problems requires Microsoft administrative tools, your daily document management shouldn't be complicated. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office for creating, editing, and sharing documents seamlessly.

Frequently Asked Questions
Where are the SMTP relay queue files physically located on Windows Server?
By default, the SMTP queue files are stored in the 'C:\inetpub\mailroot\Queue' directory. You can monitor this folder to see if .EML files are accumulating during a delivery failure.
Why is my SMTP relay connection to Exchange Online timing out?
Timeouts often occur due to network firewalls, antivirus software, or ISP restrictions blocking outbound traffic on port 25 or 587. Check your network routing and firewall rules to ensure the required ports are open.
Can an expired SSL certificate cause the SMTP queue to stop processing?
Yes. If your SMTP relay is configured to use opportunistic or forced TLS to connect securely to Exchange Online, an expired or invalid certificate will cause the handshake to fail, leaving outgoing messages stuck in the queue.




