Password login, app passwords and OAuth2
Microsoft is moving SMTP from passwords to OAuth2. Microsoft's own help page says Outlook.com requires Modern Auth (OAuth2), and Exchange Online is turning off basic authentication for SMTP client submission on Microsoft 365, with the dates pushed back more than once. In practice:
- Outlook.com / Hotmail: many apps still connect with an app password. If yours is rejected, use an app that supports OAuth2 sign-in.
- Microsoft 365: SMTP AUTH must be allowed for the mailbox, and the tenant must still accept basic auth. If you see
550 5.7.30, it no longer does, and the app needs OAuth2, Microsoft Graph or a sending service.
Turn on SMTP AUTH for a Microsoft 365 mailbox
- In the Microsoft 365 admin center, open Users → Active users and select the user.
- Open Mail → Manage email apps.
- Check Authenticated SMTP and save. It can take an hour to apply.
If the whole tenant has SMTP AUTH turned off, the per-mailbox setting has no effect until an admin allows it at the organization level.
Common Outlook SMTP errors
- 535 5.7.139 Authentication unsuccessful: SMTP AUTH is off for the mailbox or tenant, or the password was rejected.
- 550 5.7.30 Basic authentication is not supported: the tenant only accepts OAuth2 now.
- 554 5.2.0 SendAsDenied: the From address isn't your mailbox or an alias you're allowed to send as.
- Connection times out on port 465: Outlook doesn't accept 465. Use 587 with STARTTLS. See SSL vs STARTTLS.