SMTP settings for Microsoft 365
Settings for sending mail through Microsoft 365: SMTP server smtp.office365.com, 587 (STARTTLS). Read from the provider's own help pages on 2026-10-19.
Settings
SMTP (sending)
Hostsmtp.office365.com
Port 587STARTTLS
Username and password
- Sign-in method stated on the page read: Authenticated SMTP submission (SMTP AUTH).
- Use the username your provider shows beside these settings. Many mailbox providers use the full email address.
- Put the mailbox password the sign-in method names into the password field.
Connect it to a sending tool
- In the tool you send from, add a mailbox and choose the custom IMAP and SMTP option. ColdAgentAI connects mailboxes that sign in with a password, app password or key over IMAP and SMTP. IMAP and SMTP mailboxes in ColdAgentAI
- Enter smtp.office365.com as the SMTP server. Use one of the ports listed under settings (587) and set the security mode shown beside it.
- Sign in with the method the page states: Authenticated SMTP submission (SMTP AUTH).
- If your tool reads replies, it also needs the provider's IMAP host and port from its help page.
- Send one test message to an address you own and open it to check the sender, the subject and where it landed.
- Keep each mailbox's daily sending modest and let volume rise gradually. Provider limits are compared on the sending limits page. SMTP sending limits compared
Common errors
| Error | Usual cause | What to try |
|---|---|---|
| 535 authentication failed | The username or password was refused. An everyday account password is often refused when the provider wants a different credential. | Re-check the username, then use the kind of credential the sign-in method above names. |
| 530 authentication required | The server wants you to sign in before it takes mail, or the secure connection was not set up first. | Switch authentication on in your tool and set the security mode that matches the port you chose. |
| 554 message rejected | The server refused the message: the sender address is not allowed for this login, the content or recipient was blocked, or a policy limit was hit. | Send from the address that belongs to the login, read the text after the code, and try one plain test message. |
| 421 service not available | A temporary refusal, usually too many connections or messages in a short time. | Wait, lower your sending speed, and retry. Repeated 421 replies mean you are over a limit. |
| Timeout or connection refused | Your network blocks the port, the host name has a typo, or the security mode does not match the port. | Try another port listed for this provider, check the host spelling, and match SSL/TLS or STARTTLS to the port. |
Sending limits
| Limit | Figure | Source |
|---|---|---|
| Daily | 10,000 recipients per day | https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365 |
| Hourly or rate | 30 messages per minute | https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365 |
Compare every provider on the sending limits page.
Sources
- https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365Read on 2026-10-19
- https://learn.microsoft.com/en-us/office365/servicedescriptions/exchange-online-service-description/exchange-online-limitsRead on 2026-10-19
- https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submissionRead on 2026-10-19
Questions
What is the SMTP server for Microsoft 365?
The page we read gives smtp.office365.com. We read it on 2026-10-19.
Which port and security mode does Microsoft 365 use for sending?
The page states 587 (STARTTLS). Choose the security mode that matches the port.
How do I sign in to Microsoft 365 from a sending tool?
The page states: Authenticated SMTP submission (SMTP AUTH). Use the credential that method names rather than your everyday password.
What are the sending limits for Microsoft 365?
Daily: 10,000 recipients per day; Hourly or rate: 30 messages per minute. Check the source for the current figure before planning volume.
Where do these settings come from?
They come from Microsoft 365's own help pages, read on 2026-10-19. Spot a setting that changed? Write to hello@coldagentai.com.