How to Fix AADSTS20012 Exchange Account Setup Error on Apple Mail
Question details
The user needs to resolve an authentication error preventing the setup of an Exchange email account on Apple Mail.

- Product
- Apple Mail (GoDaddy Hosted Exchange)
- Device & OS
- not provided
- Scenario
- Setting up or logging into an Exchange account on Apple Mail.
- Observed behavior
- The authentication process fails and displays an AADSTS20012 error, indicating an invalid or malformed WS-Federation message.
Before attempting to re-add your account, keep the error prompt open or take a screenshot so you can copy the specific request ID and correlation ID.
Check GoDaddy Service Status and Contact Support
Since this error is usually caused by a provider-side WS-Federation outage, verify the service status and report the specific error IDs to support.
The AADSTS20012 error means the server returned an invalid federation message during the login attempt. This is almost always an issue on the email provider's side (such as GoDaddy) rather than a misconfiguration on your device.
Visit the official GoDaddy service status page in your web browser to check for any active incidents regarding Office 365, Exchange, or email authentication.
From the error prompt in Apple Mail, note down the request ID, correlation ID, timestamp, and your exact account domain.
Reach out to GoDaddy Support and provide the collected IDs and timestamp. This allows their technical team to trace the failed authentication request on their backend servers.

Remove and Recreate the Exchange Account
Once the provider has resolved the federation outage, you will need to re-add your account to establish a fresh authentication token.
Enhance Your Productivity with WPS Office
While waiting for your Exchange email provider to resolve server outages, ensure your offline work remains uninterrupted. WPS Office is a powerful, lightweight, and free office suite that offers a familiar interface and seamless compatibility with Microsoft Office files.
- 1. Download the Installer: Visit the official WPS website and click the free download button for your operating system.
- 2. Install the Software: Open the downloaded installation file and follow the quick on-screen instructions to set up the suite.
- 3. Start Creating: Launch WPS Office to instantly open, edit, or create documents, spreadsheets, and presentations.

Frequently Asked Questions
What does the AADSTS20012 error mean?
The AADSTS20012 error indicates that an invalid or malformed WS-Federation message was encountered during Exchange account authentication. This typically means the authentication servers hosted by the email provider (like GoDaddy) are experiencing a temporary outage or configuration failure.
Can I fix the AADSTS20012 error by changing my Apple Mail settings?
Generally, no. Because the error stems from a provider-side server issue returning bad authentication tokens, changing local settings on your device will not fix it. You must wait for the provider to resolve the incident.
Why does GoDaddy Support need my correlation ID?
The correlation ID and request ID are unique identifiers generated during your specific login attempt. Support teams use these IDs to search their server logs, allowing them to pinpoint exactly where and why the authentication request failed.




