Configure Office 365 POP, IMAP, and SMTP Through a Proxy
Question details
Configure and troubleshoot Office 365 POP, IMAP, and SMTP connections through a proxy.

- Product
- Microsoft 365 Exchange Online
- Device & OS
- not provided
- Scenario
- A mail client must connect to Exchange Online through an organization's proxy and firewall.
- Observed behavior
- Outlook cannot find the incoming POP3 server or send a test email, although browser and Outlook access may otherwise work.
Identify the mail client, proxy address and port, and whether the account uses POP or IMAP. Ask your Exchange and network administrators to confirm which protocols and authentication methods are enabled for the mailbox.
Verify Exchange Online server and authentication settings
Use this solution to rule out incorrect mail server, encryption, or account settings before investigating the network path.
In Outlook, open File > Account Settings > Account Settings, select the affected account, and choose Change or Repair. The available options vary by Outlook version.
For POP, enter outlook.office365.com on port 995 with SSL/TLS. For IMAP, enter outlook.office365.com on port 993 with SSL/TLS.
Set the SMTP server to smtp.office365.com on port 587 and select STARTTLS or TLS, as labeled by the client. Enable outgoing-server authentication using the account's supported authentication method.
Ask an Exchange administrator to check in the Exchange admin center that POP or IMAP is enabled for the mailbox and that authenticated SMTP is allowed if needed. Confirm that the client supports the organization's required authentication method, such as OAuth 2.0.
Save the settings and use Outlook's account test or send a test message. Record the exact error and whether receiving, sending, or both fail.

Check proxy and firewall access to mail ports
Use this solution when the server settings are correct but the client cannot connect through the network.
Work on Office documents with WPS Office
WPS Office is a free, lightweight, easy-to-use alternative with a familiar interface and compatibility with common Microsoft Office formats, making it easier to move existing document work. It does not fix Exchange Online proxy or email connections.

Frequently Asked Questions
Which ports does Exchange Online use for POP, IMAP, and SMTP?
The standard settings are POP on port 995 with SSL/TLS, IMAP on port 993 with SSL/TLS, and SMTP submission on port 587 with STARTTLS. Check your organization's settings if it uses a specialized environment.
Why can I access Office 365 in a browser but not through POP or SMTP?
Browser access and mail protocols can use different connection paths and ports. Ask your network administrator to check whether the mail client uses the proxy and whether the proxy and firewall allow the required connections.
Does a proxy on port 8080 replace the mail server port?
No. Port 8080 is the proxy's listening port; the destination remains the mail server's POP, IMAP, or SMTP port. The client and proxy must support the connection method used.
What should I check if Outlook still cannot send a test email?
In Outlook's account settings, verify smtp.office365.com, port 587, TLS or STARTTLS, and outgoing authentication. Ask an Exchange administrator to confirm authenticated SMTP and the required authentication method are allowed for the mailbox.




