Fix PowerMTA Office 365 SMTP AUTH LOGIN Error 501
Question details
The user needs to send outbound email from PowerMTA through Office 365 without an SMTP AUTH LOGIN error.

- Product
- PowerMTA and Microsoft 365 Exchange Online
- Device & OS
- not provided
- Scenario
- PowerMTA is configured to send outbound mail through Office 365 to recipients at Hotmail or Outlook.com.
- Observed behavior
- The SMTP server returns “501 Cannot decode parameter - too long” during AUTH LOGIN.
Identify the SMTP host, port, authentication method, and sending mailbox configured in PowerMTA. Check whether you are using a Microsoft 365 work account or a personal Outlook.com account, because their submission settings and authentication requirements differ.
Verify the Microsoft 365 SMTP submission settings
Use this check to rule out an incorrect endpoint, disabled SMTP AUTH, or a mismatch between the account and authentication method.
Sign in to the sending account in Outlook or Outlook on the web and send a test message to a Hotmail or Outlook.com recipient. A successful test confirms basic mailbox sending, but does not by itself verify PowerMTA's SMTP settings.
Open the PowerMTA outbound SMTP configuration and verify that Microsoft 365 client SMTP submission uses smtp.office365.com on port 587 with STARTTLS. Use the submission host for the sending service, rather than choosing a host based on the recipient's domain.
In the Microsoft 365 admin center, go to Users > Active users, select the sending user, and check Mail > Manage email apps for Authenticated SMTP. Also review organization-level SMTP AUTH and security settings in Exchange Online; an organization policy can affect whether the mailbox can authenticate.
In the PowerMTA configuration, check the sending mailbox credentials, authentication method, and TLS settings. Confirm that PowerMTA supports an authentication method permitted by the account and Microsoft's current Exchange Online policies, and use TLS 1.2 or later.
Consult Microsoft's instructions for sending email from a multifunction device or application through Microsoft 365. In the Exchange admin center, check Mail flow > Connectors if you use connector-based SMTP relay; a connector is not normally required for authenticated client submission.

Inspect the PowerMTA SMTP authentication transcript
Use the SMTP conversation to identify which AUTH LOGIN exchange triggers the 501 response.
Work with Office files in WPS Office
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make it easy to move everyday file work across, although it does not fix PowerMTA or Exchange Online SMTP authentication.

Frequently Asked Questions
What does the 501 error mean during AUTH LOGIN?
The server reports that it cannot decode an authentication parameter because it is too long. Inspect the SMTP transcript around AUTH LOGIN and compare the exchange with the PowerMTA configuration; the message alone does not establish the exact cause.
Which SMTP host should PowerMTA use for Microsoft 365?
For Microsoft 365 authenticated client SMTP submission, configure smtp.office365.com on port 587 with STARTTLS. Other sending methods, such as connector-based relay, have different requirements.
Does sending successfully from Outlook prove SMTP AUTH is working?
No. Sending a test message from Outlook confirms that the mailbox can send through that client, but PowerMTA's SMTP endpoint, authentication method, and SMTP AUTH permissions still need separate checks.
Where can I check whether SMTP AUTH is enabled for a mailbox?
In the Microsoft 365 admin center, go to Users > Active users, select the account, and check Mail > Manage email apps for Authenticated SMTP. Also review organization-level Exchange Online and security policies.
Can I send my SMTP transcript to support?
Yes, but first remove passwords, tokens, and encoded AUTH values from the transcript and configuration. Base64-encoded authentication values can reveal credentials.




