Mail error 0x8007054e in Windows 10 occurs when the Mail app cannot connect to your email server, usually due to incorrect credentials, an expired password, or a corrupted account configuration. The fix involves updating your password in the Mail app, removing and re-adding the account, or checking your server settings. Below are the exact steps to resolve it.
What Causes Error 0x8007054e?
This error is a client-side authentication failure. The code 0x8007054e maps to ERROR_DS_DRA_INTERNAL_ERROR in Windows, but in the Mail app context it simply means the server rejected your login. Common triggers include:
- Password changed on the webmail or server side, but the Mail app still has the old one.
- Two-factor authentication (2FA) is enabled, and you need an app-specific password instead of your regular password.
- The account type (IMAP, POP, Exchange) or incoming/outgoing server names are wrong.
- The Mail app’s cached credentials are corrupted.
- Your internet connection or firewall blocks the mail server.
Most users see this error after changing their email password or after the provider enforces a new security policy.
Fix 1: Update Your Password in the Mail App
The simplest fix is to re-enter your current password. Here’s how:
- Open the Mail app (search “Mail” in the Start menu).
- Click the gear icon (Settings) in the bottom-left corner.
- Select Manage Accounts.
- Click the account that’s showing the error.
- Choose Change mailbox sync settings.
- Scroll down and click Advanced mailbox settings.
- Click Update password and enter the new password.
If you don’t see the “Update password” option, remove the account and re-add it (Fix 3).
Fix 2: Use an App-Specific Password (If You Have 2FA)
If you have two-factor authentication enabled on your email account (e.g., Gmail, Outlook.com, Yahoo), the Mail app cannot use your normal password. You need to generate an app password from your email provider’s security settings. For example:
- For Gmail: Go to your Google Account → Security → App passwords.
- For Outlook.com: Go to Security settings → Advanced security → App passwords.
- For Yahoo: Go to Account security → Generate app password.
Once you have the app-specific password, enter it in the Mail app as your password. This is a common cause of error 0x8007054e, especially for users who recently enabled 2FA.
Fix 3: Remove and Re-Add the Account
If updating the password doesn’t work, the account configuration may be corrupted. Removing and re-adding the account resets everything. Here’s how:
- Open the Mail app.
- Go to Settings → Manage Accounts.
- Click the problematic account.
- Click Delete account and confirm.
- Close the Mail app and reopen it.
- Go to Settings → Manage Accounts → Add account.
- Choose your email provider (e.g., Outlook.com, Google, IMAP).
- Enter your email address and the correct password (or app-specific password).
After re-adding, the Mail app will re-sync your messages. This fixes most persistent cases.
Fix 4: Check Server Settings for IMAP/POP Accounts
If you’re using a custom email domain (e.g., from your company or a web host), the Mail app may have incorrect server names or ports. To verify:
- Go to Settings → Manage Accounts → your account → Change mailbox sync settings → Advanced mailbox settings.
- Check the incoming and outgoing server names. These should match what your email provider lists. For example, for most providers it’s
imap.example.comandsmtp.example.com. - Verify the port numbers: IMAP is usually 993 (SSL) or 143 (STARTTLS), SMTP is usually 465 (SSL) or 587 (STARTTLS).
- Ensure SSL is enabled if your provider requires it.
If you’re unsure of the correct settings, contact your email provider or check their help page. Incorrect server settings will cause authentication to fail, even with the right password.
Fix 5: Reset the Mail App (If Nothing Else Works)
If the error persists, the Mail app itself may be corrupted. You can reset it without affecting your other apps:
- Open Settings (Windows key + I).
- Go to Apps → Apps & features.
- Scroll down to Mail and Calendar.
- Click it, then click Advanced options.
- Click Reset. This will clear the app’s data, including all accounts. You’ll need to re-add your accounts afterward.
Resetting is a last resort because it removes all your configured accounts, but it often clears deep corruption.
Preventing Future Occurrences
To avoid error 0x8007054e in the future:
- Update your password in the Mail app immediately after changing it on the web.
- If you have 2FA, always use an app-specific password for the Mail app.
- Keep your Windows and Mail app updated (Settings → Update & Security → Windows Update).
- If you travel, make sure your network allows outbound connections to your mail server’s ports.
Also, if you’re using a corporate Exchange account, your IT administrator may have changed security policies. Contact them if the error appears suddenly.
Frequently Asked Questions
Will this error delete my emails?
No. Error 0x8007054e only prevents the Mail app from syncing new messages. Your emails remain on the server and will appear once the connection is fixed.
Does this error affect the Calendar app?
Yes, if the calendar is linked to the same email account, it may also stop syncing. Fixing the email account will usually restore calendar sync.
Can I use a web browser instead of the Mail app?
Yes, you can access your email via the provider’s website (e.g., outlook.com, gmail.com) while troubleshooting. This is a good way to confirm your password works.
Why does the Mail app ask for a password even though I just entered it?
This often happens when the password is correct but the server requires additional security (like 2FA) or when the account is configured with the wrong server type (e.g., POP instead of IMAP). Double-check your server settings and use an app password if 2FA is on.
Is there a way to back up my Mail app settings before resetting?
No, the Mail app doesn’t have an export feature. However, you can note down your account type, server names, and ports before resetting. After reset, you’ll re-enter them manually.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Move Data to a New Samsung Galaxy Phone
- Pixel C vs Surface Pro: Key Differences
- iPhone X vs iPhone: Key Differences Explained
- How to Delete Photos on Google Drive
- Firefox Bookmark Management Tips & Tricks
- Chromebook Won’t Charge: How to Fix