Exchange Connection Problems

Fix Gmail Cannot Connect to Microsoft 365 Outlook Using POP3

Aamir Naveed AkramAamir Naveed Akram Nov 3, 2026 868 views

Question details

The user is unable to connect their Gmail account to a Microsoft 365 Business account using POP3 or SMTP, receiving a 'Bad user name or password' error.

How to Fix Gmail Cannot Connect to Microsoft 365 Outlook Using POP3
Product
Microsoft 365 Outlook
Device & OS
not provided
Scenario
Attempting to retrieve emails from Microsoft 365 using Gmail's Fetch Mail feature (POP3) and send emails using the Send As feature (SMTP).
Observed behavior
Gmail repeatedly returns a 'Bad user name or password' error, despite POP being enabled, multi-factor authentication active, and correct app passwords being used with both primary and alias addresses.
Before you start

Ensure you have admin access to the Microsoft 365 admin center, as resolving legacy connection issues often requires checking organization-wide authentication policies.

Solution 1Recommended

Verify POP3 Configurations and Regenerate App Passwords

Confirm that the correct server settings are applied and recreate the app password to ensure clean authentication.

Even if multi-factor authentication (MFA) is enabled, minor server setting misconfigurations or outdated app passwords can trigger a credential rejection. Testing with standard configuration parameters often resolves immediate authentication blocks.

1
Confirm Microsoft 365 Server Settings

In Gmail's POP3 setup window, ensure the POP Server is set to 'outlook.office365.com', the Port is set to '995', and the 'Always use a secure connection (SSL)' option is checked.

2
Verify Mailbox POP Status

Sign in to the Microsoft 365 admin center. Go to Users > Active users, select the affected user, click the 'Mail' tab, and select 'Manage email apps'. Ensure the 'POP' checkbox is selected and save changes.

3
Generate a New App Password

Log into your Microsoft account security dashboard. Delete the previously generated app password, create a new one specifically named for Gmail, and paste it directly into the Gmail password field without spaces.

Verify POP3 Configurations and Regenerate App Passwords
Alias Limitation: Always use your primary Microsoft 365 email address for authentication, as alias addresses are often not supported for POP3 login.
Free Microsoft Office alternative

Simplify Your Workflow with WPS Office

Dealing with complex Microsoft 365 authentication policies, Azure AD configurations, and POP3 sync issues can be time-consuming. If you are looking for an intuitive, lightweight, and cost-effective productivity suite, WPS Office provides excellent compatibility with Microsoft Office formats without the subscription hassle.

  1. 1. Download the Installer: Visit the official WPS Office website and download the correct version for your operating system.
  2. 2. Install the Suite: Run the setup file and follow the straightforward on-screen instructions to complete the installation.
  3. 3. Open Your Documents: Launch WPS Office to instantly view, edit, and save your existing Microsoft Office files with perfect formatting retention.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight and fast, requiring fewer system resources than heavy enterprise suites.Free to use with a familiar, easy-to-navigate interface.No complex backend Azure or Exchange administration required.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft 365 reject my correct app password in Gmail?

Microsoft has been deprecating Basic Authentication for Exchange Online. Even if you use a correct app password, tenant-wide security defaults or Exchange policies may block legacy POP3 and SMTP connections from third-party clients like Gmail.

What are the correct POP3 and SMTP settings for Microsoft 365?

For POP3, the server is 'outlook.office365.com', the port is 995, and encryption is SSL/TLS. For SMTP, the server is 'smtp.office365.com', the port is 587, and encryption is STARTTLS.

Can I use my primary Microsoft 365 password for POP3 in Gmail?

No. If you have Multi-Factor Authentication (MFA) enabled on your Microsoft 365 account, you must generate and use a dedicated App Password instead of your primary password to connect third-party apps like Gmail.

Does Gmail support Microsoft's Modern Authentication (OAuth2) for POP3?

Currently, Gmail's 'Fetch mail from other accounts' (POP3) feature relies heavily on basic authentication/app passwords and does not natively support the modern OAuth2 flow required by Microsoft 365's updated security defaults.