BlogEmail clients

What is an app password? When you need one and how to make it

An app password is a separate password that lets one app sign in to your account. Why Gmail, iCloud and Yahoo ask for one, and how to make and revoke it.

ArtaNextmail team

9 min read

An app password is a password made for one app. Instead of typing your account password into a mail app, a calendar app or a scanner, you ask your provider for a long random password, give it to that one app, and delete it when you stop using the app. Google, Yahoo and Fastmail call them app passwords and Apple calls them app-specific passwords, and all of them ask for one when an app that cannot open their own sign-in page wants to reach your mail.

The app uses it in place of your password, and your second sign-in step is skipped for that app alone. That is what makes app passwords useful, and also what makes them worth handling with care.

Why do app passwords exist?

Mail apps read your mailbox over IMAP or POP and send over SMTP, and calendar and contacts apps sync over CalDAV and CardDAV. Those protocols were built for apps that sign in with a username and a password, which Microsoft calls Basic authentication: the app sends the credentials with every request, and they are often saved on the device.

Two-step verification breaks that kind of sign-in, because the app has nowhere to show the code prompt. Microsoft describes an app password as the way an older app "that doesn't support two-step verification" signs in, and Fastmail requires one in every third-party app. The provider makes a separate random password that skips the second step for that one app. Apple adds a second reason: an app-specific password helps make sure the app can never store or collect your Apple Account password.

The modern alternative is OAuth. The app opens the provider's own sign-in page, you sign in there with your password and second step, and the app receives a token instead of a password. Microsoft notes that such tokens have a limited lifetime and are specific to the app and the data they were issued for. Google goes further and says "App passwords aren't recommended and are unnecessary in most cases", asking you to choose Sign in with Google wherever an app offers it.

App password or OAuth sign-in?

App passwordOAuth sign-in
What the app holdsA password for the protocols it usesA token issued to that app, with a limited lifetime
Your second stepSkipped for that appDone on the provider's page when you connect
Your account passwordNever given to the appNever given to the app
Turning it offDelete it in your account's security settingsRemove the app's access in your account settings
Where you meet itMail apps with no provider sign-in, scanners, mailbox importsApps with a Sign in with Google or Microsoft button

Use OAuth whenever the app offers it. App passwords are for the apps that do not.

When do you need an app password?

  • A mail app that only asks for a password. If the app connects over IMAP and SMTP with your address and a password, and offers no button to sign in with your provider, Gmail, iCloud, Yahoo and Fastmail expect an app password in that field. Apple's settings for iCloud Mail in other apps ask for one on both the incoming and the outgoing server. What is IMAP? covers how those apps keep in step with the server.
  • Calendar and contacts apps. Apps that sync over CalDAV and CardDAV, such as DAVx5 on Android, sign in with a password too, and Fastmail's default app password opens mail, contacts and calendars together.
  • Scanners and other devices that send mail. A printer that scans to email sends over SMTP with a password, and Google lists an app password as one way to set up such a device on Google Workspace.
  • Services that work your mailbox for you. Migration tools, CRMs and other mail clients that reach Gmail or iCloud over IMAP ask for an app password too.

How to make an app password

Gmail and Google Workspace

  1. Turn on 2-Step Verification for the Google Account. App passwords only work while it is on.
  2. Open myaccount.google.com/apppasswords and sign in.
  3. Type a name for the app, such as the name of the mail app, and choose Create.
  4. Copy the 16-character password Google shows into the app's password field, with your whole Gmail address as the username.

If the page says app passwords are not available, Google gives three reasons: 2-Step Verification is set up with security keys only, the account belongs to a work, school or other organisation, or it has Advanced Protection. On a work account the administrator decides. Google Workspace stopped accepting account passwords for IMAP, POP, SMTP, CalDAV and CardDAV on 14 March 2025, and app passwords are the one exception.

iCloud

  1. Make sure your Apple Account uses two-factor authentication, which app-specific passwords require.
  2. Sign in at account.apple.com, open Sign-In and Security, choose App-Specific Passwords, then Generate an app-specific password.
  3. Use it as the password for both servers: imap.mail.me.com on port 993 and smtp.mail.me.com on port 587. Apple asks for your whole iCloud address as the SMTP username, and usually just the part before the @ for IMAP.

An Apple Account can have up to 25 active app-specific passwords, and you can revoke them one at a time or all at once.

Yahoo Mail

  1. Sign in to Yahoo's Account Security page.
  2. Under External connections, choose Create app password.
  3. Enter a name for the app, choose Generate password and use the password to sign in to the app.

Yahoo says you only need to enter it once, and that deleting it is the only way to make it stop working.

Fastmail

Fastmail asks for an app password in every third-party app, and its Basic plan cannot make them. In Settings, open Privacy & Security, find Connected apps & API tokens and choose Manage app passwords and access, then New app password. The default access covers mail over IMAP, POP and SMTP, contacts over CardDAV and calendars over CalDAV. Other choices narrow it to mail, contacts or calendars alone, or open Files over WebDAV. The password is shown once, on the page after you make it.

Outlook.com and Microsoft 365

Microsoft has moved mail away from app passwords:

  • Outlook.com ended Basic authentication on 16 September 2024, so other apps have to sign in with Modern Authentication, Microsoft's name for its OAuth sign-in. In Thunderbird that means choosing OAuth2 as the authentication method, and in Apple Mail removing the account and adding it again as Outlook.com.
  • Microsoft 365 work and school accounts lost Basic authentication for IMAP, POP and Exchange ActiveSync starting 1 October 2022, and Microsoft notes this "also prevents the use of app passwords with apps that don't support two-step verification".
  • Sending over SMTP with Basic authentication still works in Microsoft 365 for now. Microsoft plans to switch it off by default in existing tenants at the end of December 2026, with administrators able to turn it back on, and to announce a final removal date in the second half of 2027.

Are app passwords safe?

They are safer than the habit they replace. An app password is long and random, it was never used on another site, so no other site's leak can expose it, and deleting it stops one app without touching the others.

The catch is the second step. Anyone who has the app password can sign in through the protocols it opens with no code and no prompt on your phone. So:

  • Make one per app or device, named after it, so you know which one to delete.
  • Type it only into the app's account settings, never into a web page that asks for it.
  • Delete it when you stop using the app or lose the device that holds it, and make a new one if you still need the app.

Why does an app password stop working?

  • You changed your account password. Google and Apple revoke every app password when the account password changes.
  • It was deleted, by you or, on a work account, by an administrator.
  • Two-step verification was turned off. Google's app passwords only work while 2-Step Verification is on.
  • The provider ended password sign-in, as Outlook.com did in September 2024.

The fix is the same each time: make a new app password, remove the old one saved in the app and enter the new one.

Common questions about app passwords

Do app passwords expire?

None of Google, Apple and Yahoo mentions a time limit. Yahoo says deleting one is the only way to invalidate it, and Google and Apple revoke them all when the account password changes.

Can I use the same app password in two apps?

It works, but deleting it for one app then signs the other out too, and you cannot tell which app used it. Make one for each app, as Fastmail asks.

Why can't I find app passwords in my Google Account?

2-Step Verification is off, or set up with security keys only. Otherwise the account is a work or school account whose administrator has not allowed them, or it has Advanced Protection.

Is an app password the same as a passkey?

No. A passkey signs you in to the provider's own website and apps with your device, in place of your password and second step. An app password is for apps that can only send a password, which cannot use a passkey at all.

Do I need to remember an app password?

No. You type it into the app once, and the app keeps it. If you need one again, make a new one and delete the old one. Fastmail, for one, never shows a password a second time.

Where Nextmail fits

App passwords come up in Nextmail in both directions.

Mail apps on Nextmail addresses. A mail app never signs in with the password of your Nextmail account. It uses an app password made for one address, on that address's Mail apps tab, after Nextmail asks for your verification code: 16 letters in four groups of four, shown only once, where spaces, dashes and capitals make no difference. Each password acts as the person who made it, with what they may do on that address, and a mail app that stays connected follows a change to their access within about five minutes. A person can have up to 20 on each address, the list shows when an app last used each one, and revoking one signs that app out. To set up somebody else's device, the workspace owner or anyone who manages members can email them a setup link instead, which works once and expires after three days. Mail apps has the server settings and a guide for each app, and Troubleshooting mail apps explains every sign-in message.

Mailboxes at other providers. A connected mailbox at Gmail, Yahoo, iCloud, Fastmail, AOL, Zoho or OpenEmail signs in with an app password you make at the provider, while Outlook.com and Microsoft 365 connect with a Microsoft sign-in. Nextmail signs in to both servers before it saves anything, so a wrong password shows up at once. If the provider later stops accepting the password, because it was revoked or the account password changed, the mailbox shows Sign in again and the owner gets an email. Signing in again with a new app password keeps each folder's place, so the mail that arrived in the meantime comes in on the next sync. The guides for Gmail, iCloud and Yahoo show where each provider keeps its app passwords. When you import a mailbox instead, the app password is kept sealed until the import finishes, for 30 days at most, then wiped, so delete it at the provider afterwards.

References

  1. 1Sign in with app passwordsGoogle
  2. 2Transition from less secure apps to OAuthGoogle
  3. 3Sign in to apps with your Apple Account using app-specific passwordsApple
  4. 4iCloud Mail server settings for other email client appsApple
  5. 5Generate and manage 3rd-party app passwordsYahoo
  6. 6App passwordsFastmail
  7. 7Modern Authentication Methods now needed to continue syncing Outlook Email in non-Microsoft email appsMicrosoft
  8. 8Deprecation of Basic authentication in Exchange OnlineMicrosoft
  9. 9Updated Exchange Online SMTP AUTH Basic Authentication Deprecation TimelineMicrosoft

Keep reading

Related articles

10 min read

What is IMAP? How IMAP works: ports, sync and security

IMAP is how mail apps read and organise mail that stays on the server, in sync on every device. How it works, which port to use and how it compares with POP3.

ArtaProtocols

10 min read

What is SMTP? How it works, from ports to reply codes

SMTP is the protocol that carries email from your app to your provider and between mail servers. How it works, which port to use and what each reply means.

BenjaminProtocols

9 min read

What is an email client? How email clients work

An email client is the app you read and send mail in, apart from the service that holds your mailbox. How clients find servers, sync, send and guard privacy.

BenjaminEmail clients

Try it yourself

Your email,
on your own domain.

Nextmail puts your domains, sending and inbox in one place, with the full API on every plan, the free one included.

Give it an address.
Watch it work.

MCP, the API and the command line come with every plan, the free one included. Connect a client and approve exactly what it reaches.

Read https://nextmail.sh/agent.md and follow it. Then tell me what I need to do to sign you in to my Nextmail mailbox. If I have no account yet, create one with my address and ask me for the code that arrives. Wait for my go-ahead before you send anything.

© 2026 Nextmail. All rights reserved.