Fix Gmail Cannot Connect to Microsoft 365 Outlook Using POP3
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.

- 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.
Ensure you have admin access to the Microsoft 365 admin center, as resolving legacy connection issues often requires checking organization-wide authentication policies.
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.
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.
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.
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.

Check Security Defaults in Azure Active Directory
Determine if Microsoft's default security policies are globally blocking legacy authentication protocols like POP3.
Review Organization-Wide Modern Authentication Settings
Ensure that basic authentication for POP3 has not been disabled at the Exchange organization level.
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. Download the Installer: Visit the official WPS Office website and download the correct version for your operating system.
- 2. Install the Suite: Run the setup file and follow the straightforward on-screen instructions to complete the installation.
- 3. Open Your Documents: Launch WPS Office to instantly view, edit, and save your existing Microsoft Office files with perfect formatting retention.

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.




