Mac Mail Keeps Asking for Password: Login Loop Fix
Mac Mail keeps asking for your password? Find the real cause, create an app password for iCloud, Gmail, Fastmail or Yahoo, and see what to do about Outlook.
Updated 8 min read
On this page
You type your password, the prompt goes away, and a few minutes later it is back. People describe it as "Keeps asking me to re enter password, I do it, then it asks again like 5 minutes later." This guide explains why it happens and how to stop it for each provider. It also says where Mailloft helps and where it doesn't.
Why the password prompt keeps coming back
Apple's own explanation: Mail asks for your password when it can reach your email provider but can't get into your account, because the provider isn't accepting the password. The password is rejected, the app asks again, and the cycle repeats. Common reasons, most likely first:
- The provider wants an app password. With Google's two-step verification, for example, a Gmail account in Mail needs an app-specific password. The same applies to iCloud: to reach iCloud data from a third-party app, you may need an app-specific password.
- The password changed somewhere else. If you updated the password on another device, use the same one on your Mac. Changing your Apple Account password also matters here: all of your app-specific passwords are revoked automatically. Gmail app passwords behave the same way. They stop working when you change your Google password.
- The provider changed its sign-in method. When that happens, you may need to remove the account and add it back. This is the usual story behind Outlook and Hotmail loops. People on Microsoft's community forum report that older password-style sign-in is being switched off, and that the Mac app keeps trying it.
- The account is suspended or locked. If the provider deactivated or suspended the account, contact the provider.
- The saved password on your Mac is stale or unreadable. The prompt can come from the saved credential rather than the server. Some people also report loops that clear only after the account is removed and re-added.
| Cause | What you see | Fix |
|---|---|---|
| Provider needs an app password | Prompt returns right after you enter the normal password | Create an app password, use it instead |
| Password changed elsewhere | Loop starts after a reset | Enter the new password or app password |
| Old app password revoked | Worked for weeks, then stopped | Generate a new app password |
| Provider changed sign-in method | Loop on Outlook, Hotmail, Microsoft 365 | Re-add the account with the provider's own sign-in |
| Account locked or suspended | Webmail fails too | Contact the provider |
| Stale saved credential | Webmail works, Mac keeps prompting | Replace the saved password, or remove and re-add |
First check: does webmail accept the password?
Apple suggests this test. Try the same password in webmail; if it fails there too, the password is probably wrong. If webmail works but Mail still prompts, the account is fine and the problem is the app's sign-in method or its saved credential. Work through the fixes below.
Fix 1: create an app password
An app password is a separate password you generate on the provider's site and paste into the mail app once. Your main password stays private.
iCloud
- Sign in at account.apple.com.
- In the Sign-In and Security section, select App-Specific Passwords.
- Select Generate an app-specific password and follow the steps.
Your Apple Account needs two-factor authentication to generate these. Apple's page on signing in to apps with app-specific passwords has the full steps. You can have up to 25 active app-specific passwords.
Gmail
Turn on 2-Step Verification on your Google Account first, then open the app passwords page in your Google Account security settings and create one. Mailloft expects 16 letters, with no digits or symbols. Spaces are fine when you paste it, because Mailloft removes them.
Fastmail and Yahoo
Open your account's security settings and look for the app password section: Settings then Privacy & Security then App passwords in Fastmail, and Account security then App passwords in Yahoo. Menu names change, so search the settings for "app password" if yours differ. Create one with a name like "Mailloft" and copy it. Our app password guide lists the provider pages.
Fix 2: replace the saved password in Apple Mail
If you use Apple Mail, Apple's steps for a stale saved password are these:
- Quit Mail.
- Open System Settings and click Internet Accounts.
- Click your mail account, then Details if it is shown.
- If you see a password field, delete the password and type the correct one. For iCloud, Gmail, Fastmail and Yahoo, paste the app password.
- Close the window, open Mail and test.
Apple's full article is If Mail on your Mac keeps asking for your password. Its last resort: remove and re-add the account, choosing the correct provider for your address. Mail stores IMAP messages on the server, but check for unsent drafts before you remove anything.
Fix 3: use Mailloft's password prompts
If you use Mailloft, a rejected password shows as an orange key badge in the sidebar and in Settings > Accounts. The label reads Password needed, or Sign in again for Microsoft accounts.
- Click the orange badge, or open the account's … menu in the sidebar.
- Choose Enter Password… and paste the app password.
- Or choose Edit Account…, paste it into App Password, and click Test Connection.
- Look for "Connected to IMAP and SMTP successfully."
To add the account fresh:
- Click Add Account in the sidebar footer, or use Settings > Accounts and the + button.
- Enter your name and email address. Mailloft picks the provider from the address.
- On the App Password step, click the button that opens your provider's app-password page, create the password and paste it into App password.
- Continue to Servers. Test Connection runs on its own and shows "Signed in to IMAP and SMTP." when it works.
- Pick an account color and click Add Account.
Mailloft keeps the password in your Mac's Keychain and sends it only to your mail server.
When Mailloft still shows "Password needed"
- Keychain prompt pending or denied. Choose Try Keychain Again from the account menu and approve the macOS prompt. Or choose Enter Password… and type it.
- "The password couldn't be saved in the Keychain." The account keeps working until you quit Mailloft, then asks again. If it keeps happening, contact us.
- Background helper prompt. If you enabled sending scheduled mail while Mailloft is closed, macOS may ask about "Mailloft Helper". Choose Always Allow.
- Wrong username. In Edit Account…, check Username. It is usually your full email address.
- Gmail messages. Mailloft explains Google rejections precisely. "That's N letters. Google app passwords have 16." means the paste was incomplete. "Google wants an app password here, not your Google account password." means you used the normal one. "IMAP is turned off for this account." means you need to enable it in Gmail's Forwarding and POP/IMAP settings, or ask your Workspace admin. "Google blocked this sign-in as unusual." means you should sign in to Gmail in a browser once, then retry.
Outlook, Hotmail and Microsoft 365 loops
This is the case where an app password often isn't the answer, and where Mailloft is not a reliable fix.
Mailloft's Microsoft sign-in only works when a Microsoft client ID is built into the app, and we can't promise that for your copy. If it isn't, the wizard says "Microsoft sign-in isn't set up in this copy of Mailloft." and offers Use an App Password. It also warns that many Microsoft accounts no longer accept app passwords. Details are on our Outlook, Hotmail and Microsoft 365 page.
What helps on the Microsoft side:
- Test the password at Outlook.com in a browser. If that fails, reset it with Microsoft.
- In Apple Mail, remove the account in System Settings > Internet Accounts, then add it again as Outlook.com or Microsoft Exchange, not as a manual IMAP or "Other" account. Microsoft's community answers report that this lets the account use Microsoft's own sign-in window.
- For a work or school account, ask your admin whether IMAP and SMTP are allowed on your mailbox. Mailloft shows "Microsoft accepted your sign-in, but the mailbox refused IMAP or SMTP" in that case.
Checklist before you try again
- Webmail accepts your password in a browser.
- You created the app password after your last password change.
- Gmail has 2-Step Verification on and IMAP enabled.
- You pasted the whole app password, with no extra characters.
- The username is your full email address.
- No old copy of the account is still in Internet Accounts.
If nothing works
Contact your provider first if webmail also fails, since the account may be locked or suspended. For Apple Mail issues, contact Apple Support. For Mailloft, use our support page. Include the exact message or badge text, the provider, what you already tried, and roughly when the prompt reappears.
Hi, Mailloft keeps showing "Password needed" for my account (provider: Gmail).
I created a new app password today, entered it via Enter Password…, and
Test Connection says: <paste exact message>. Webmail login works.
macOS version: <version>. The prompt returns after about <minutes>.
Steps tried: new app password, Try Keychain Again, re-added the account.Where Mailloft fits
For app-password providers, Mailloft is one option for ending the loop: it shows clearly when the password is the problem and lets you fix it from the account menu. It is IMAP and SMTP only, with no POP3 or Exchange. It runs free for 7 days per Mac, and after the trial ends without a license it stops syncing and sending. The app password steps above work in any mail app.
Common questions
Why does it only ask every few minutes?
The app reconnects periodically, and each attempt is rejected. The gap depends on how the app checks for new mail, so it varies. Fixing the credential stops the cycle.
Will an app password stop working?
Yes, in some cases. Apple revokes all app-specific passwords when you change your Apple Account password. Google's app passwords also stop working when you change your Google password. Create a new one.
Is removing and re-adding the account safe?
For IMAP accounts the mail stays on the server. Check for unsent drafts and any mail stored only locally first.
Does Mailloft support "Sign in with Google"?
No. Gmail and Google Workspace use an app password, which requires 2-Step Verification.