How to Fix Gmail Bounces When Sending from an Office 365 Address
Question details
The user is trying to send emails through Gmail using an Office 365 email address but is encountering bounce-backs and authentication errors despite the credentials working fine in Outlook.

- Product
- Microsoft Office 365
- Device & OS
- not provided
- Scenario
- Setting up an Office 365 email address as a 'Send mail as' alias within the Gmail web interface.
- Observed behavior
- Messages sent from the Office 365 alias in Gmail bounce with an SMTP authentication error or TLS certificate mismatch, preventing outgoing mail delivery.
Ensure you have the correct Office 365 email address and password by testing them in Outlook on the web first. You may also need to contact your IT administrator if Microsoft 365 tenant security policies are blocking third-party SMTP access.
Configure the Correct SMTP Server and TLS Settings in Gmail
Use Microsoft's official SMTP server address and standard encryption settings to prevent TLS certificate mismatches and authenticate properly.
A common mistake when setting up Office 365 inside Gmail is using the SMTP server address returned by a ping command. This often results in a TLS certificate mismatch because the regional server's name does not match the SSL certificate. Always use the standard Office 365 SMTP endpoint.
Navigate to outlook.office.com in your web browser and sign in to confirm your username and password are correct.
Log into your Gmail account, click the gear icon to access Settings, select 'See all settings', and navigate to the 'Accounts and Import' tab. Under 'Send mail as', click 'Edit info' next to your Office 365 address.
In the pop-up window, enter 'smtp.office365.com' as the SMTP Server. Select Port 587 from the dropdown menu.
Input your full Office 365 email address as the Username and type your confirmed password. Ensure the 'Secured connection using TLS' option is selected, then click 'Save Changes'.

Enable Authenticated SMTP in Microsoft 365 Admin Center
If credentials and server settings are correct but Gmail still rejects the connection, the Microsoft 365 tenant administrator must enable SMTP AUTH for the specific mailbox.
Experience a Seamless Office Workflow with WPS Office
While troubleshooting Microsoft Exchange connection errors can be frustrating, managing your documents doesn't have to be. If you are looking for a reliable, offline-capable productivity suite, WPS Office serves as a highly compatible, free, and lightweight alternative to Microsoft Office.
- 1. Download the software: Visit the official WPS Office website to download the free installation package for your PC or Mac.
- 2. Open existing files directly: Launch WPS Office and immediately open your existing .docx, .xlsx, or .pptx files without worrying about format distortion.
- 3. Enjoy seamless productivity: Utilize the all-in-one tabbed interface to manage documents, spreadsheets, and presentations in a single unified window.

Frequently Asked Questions
Why does pinging the Office 365 SMTP server cause a TLS mismatch in Gmail?
When you ping smtp.office365.com, it resolves to a specific regional backend server. If you use that specific IP or regional hostname in Gmail instead of 'smtp.office365.com', the SSL certificate will not match the domain name, triggering a TLS mismatch error.
Why am I getting an authentication error if my password is correct?
Microsoft defaults to disabling SMTP Authentication (SMTP AUTH) for security reasons. Even if your password is correct, Gmail cannot authenticate to send emails until your Microsoft 365 administrator manually enables SMTP AUTH for your account.
Can I use port 465 for Office 365 SMTP connections?
No. Microsoft 365 officially requires Port 587 using the STARTTLS encryption method for client SMTP submissions. Port 465 is generally not supported for this configuration.




