An app password is a separate, randomly generated password that lets one application or device sign in to your email account when that application cannot complete modern sign-in steps such as a two-factor prompt. You need one when an older mail program, a printer, a script or a plugin asks for your email password over SMTP, IMAP or POP and your account has two-step verification turned on. Your normal password will be rejected in that situation, and the app password takes its place for that single app.
This guide explains how app passwords work, when each of the big providers asks for one, how to create and revoke them safely, and why the option sometimes does not appear. Menu names and rules change often, so use the steps as orientation and confirm them in the provider's current help pages.
Why app passwords exist
Two-factor sign-in works by asking for something extra after the password: a code, a prompt or a security key. Older protocols and many small programs cannot show that prompt. They simply send a username and password to the mail server. Providers solved this gap by letting you generate a long random password that works only for mail protocol access, can be named after the app and can be revoked individually without changing your main password. The mail server accepts it in place of the account password, and it does not ask for the second factor.
When you need one
- A desktop mail client, scanner, printer or older device that only offers a plain password field.
- A website plugin or script that sends mail through your personal mailbox over SMTP.
- A mail migration or backup tool using IMAP with a basic login.
- Any app that fails with an authentication error although the password is correct, while two-step verification is on.
You do not need one for signing in on the provider's own website or official apps, and you often do not need one if the app supports OAuth sign-in with a browser window; see OAuth 2.0 for SMTP and IMAP.
Provider overview
| Provider | When an app password is typical | Notes (confirm in current help pages) |
|---|---|---|
| Gmail and Google accounts | Third-party app using SMTP or IMAP with a password while 2-Step Verification is on | Creation is under the account security settings. It may be unavailable if only security keys are used for 2-Step Verification, if Advanced Protection is on, or if a Workspace administrator disabled it |
| Outlook.com and Microsoft accounts | Older client that cannot do modern sign-in, with two-step verification on | Availability varies by account type. Work and school accounts follow organisation policy, and Microsoft has been retiring basic authentication in Exchange Online |
| Yahoo Mail | Third-party client or script using a password | Generated from the account security area as an app password for a named app |
| AOL Mail | Same pattern as Yahoo | See AOL SMTP and IMAP settings |
| iCloud Mail | Third-party mail client | Apple calls these app-specific passwords, created from the Apple Account management page |
| Business mail on shared hosting | Usually not used | Mailbox passwords or separate SMTP credentials apply |
Provider details are in Gmail SMTP settings and app passwords, Yahoo SMTP settings, iCloud SMTP settings and Outlook and Microsoft 365 SMTP settings.
How to create one safely
- Turn on two-step verification for the account first if the provider requires it.
- Open the account's security settings and find the app passwords option. The label differs between providers and can move; use the help search of the provider if you cannot find it.
- Give the password a name that identifies the app and device, such as Office printer, so you can recognise it later.
- Copy the generated password immediately. Most providers show it once.
- Paste it into the app's password field. Remove spaces if the provider displayed it in groups and the app does not accept them.
- Store it in a password manager, not in a document or chat message.
- Test the connection. If it fails, see the troubleshooting section.
What the settings look like in an application
# Typical SMTP client settings with an app password
Host: smtp.mailprovider.example (use the provider's documented host)
Port: 587 with STARTTLS (or 465 with SSL/TLS)
Username: [email protected] (the full address)
Password: <the generated app password, not your normal password>
Encryption: requiredThe host and port come from the provider. Confirm them on their documentation page rather than copying from an article, since they can change. For how ports and encryption relate, see SMTP settings, ports, TLS and authentication.
Security considerations
- An app password bypasses the second factor. Anyone who has it can read and send mail as you through those protocols, so guard it like your main password.
- Use one per app. If a device is lost or an app is retired, revoke only that password.
- Revoke what you no longer use. Review the list now and then and remove old entries.
- Changing your main password may revoke them all. Some providers do this, and some do not. Check, and be ready to generate new ones.
- Do not share them. A colleague who needs access should have their own account or delegated access.
- Prefer stronger options. OAuth tokens are scoped and expire, security keys resist phishing. See two-factor authentication best practices.
App passwords are not for business sending
Using a personal Gmail or Outlook mailbox plus an app password to send customer mail from a website or application is fragile. Mailbox providers apply low daily sending caps, may block bulk activity, rewrite the sender, and cannot give you control over authentication for your own domain or visibility into bounces. Messages sent this way also tend to carry the provider's domain rather than yours, which weakens your brand and your reputation signals.
For application and marketing mail, use a dedicated sending service with its own credentials. MigoSMTP, for example, authenticates your application with SMTP credentials over port 587 or 465, or with an API key, so there is no personal mailbox or second factor involved. The same principle applies to any provider: separate credentials for sending, scoped to that purpose and revocable on their own.
Troubleshooting
| Problem | Likely cause | What to do |
|---|---|---|
| No app passwords option | Two-step verification off, only security keys used, advanced protection on, or admin policy | Enable 2SV; ask your administrator; use OAuth or another method |
| App still says wrong password | Normal password pasted, a typo, or spaces included | Paste the generated value; remove spaces if required |
| It worked and then stopped | Password revoked, main password changed, or provider changed policy | Create a new app password; check provider notices |
| 535 authentication failed | Wrong credentials or basic auth disabled for the account | Recheck username (full address) and the generated password; basic auth may be disabled for the account |
| Prompted again and again | App does not support the password type or needs OAuth | Update the app or switch to OAuth |
| Organisation account refuses | Administrator disabled basic authentication | Ask the administrator or use a sending service |
Summary and next steps
Create an app password only when an app truly cannot use modern sign-in, name it, store it securely and revoke it when finished. For anything that sends on behalf of a business, move to proper sending credentials and authenticate your domain with SPF, DKIM and DMARC. Check your provider's documentation for the current steps, because menus and policies change often.
Send business email without a personal mailbox Use dedicated SMTP credentials on your own authenticated domain.
References and further reading
Frequently asked questions
What is an app password?
A generated password that lets one app sign in to your mail account without a second-factor prompt, used in place of your normal password.
Why is there no app password option on my account?
Usually because two-step verification is off, only security keys are used, advanced protection is on, or an administrator disabled it.
Is an app password safe?
It is safe if kept private and used for one app, but it bypasses your second factor, so treat it like a full password and revoke it when unused.
Can I use an app password to send marketing email?
Technically it may connect, but personal mailboxes have low limits and weak domain control; use a dedicated sending service instead.
How do I revoke an app password?
Open the app password list in your account security settings and remove the entry for that app.