OAuth vs. app passwords for email clients

Understand what each email sign-in method gives an app, choose the one your provider supports, and test or revoke access without losing mail.

A sealed cream envelope and brass key on an olive surface.

Choose your email provider’s OAuth sign-in when the provider and your client support it for the mailbox. Typically you sign in on the provider’s page and approve access there. Use an app password when the provider explicitly offers that option for your mail client and account. It is a separate credential you generate and enter where the app asks for the mailbox password. Either method can grant access to real email, so check which mailbox and features you are authorising. OAuth 2.0 framework, Google’s guidance on app passwords

What each sign-in gives the app

OAuth authorises the client to use a service on your behalf. In a typical desktop mail setup, the app opens the provider’s sign-in page. After you authenticate and approve the requested access, the app receives a token. The token can cover selected capabilities, called scopes. It might let the client read messages, send mail, or do both, depending on the provider and the connection. If the provider issues a refresh token, the client can use it to request a new access token when needed. Standard OAuth sign-in through the provider keeps your everyday account password with that provider. OAuth 2.0 roles, scopes and tokens

An app password is a generated password for a device or program. You get it from an account security page, give it a label if the provider asks for one, and paste it into the mail client’s password field. The client can then use it to authenticate to the mail service as allowed by the provider. The label helps you identify the credential later. A label like Desktop inbox does not set read-only permissions. Check the provider’s description for what the credential can access. Yahoo’s app password guide, Apple’s app-specific password guide

Question OAuth App password
Where do I prove my identity? Typically on a provider-hosted sign-in page On the provider’s account security page before you generate the credential
What does the app hold? An access token and, where issued, a refresh token A generated password it can reuse for supported services
Where do I look to remove access? The provider’s list of authorised apps or connected services, or the organisation’s admin tools The provider’s app password list
What controls the breadth of access? The granted scopes and provider policies What the provider permits the credential and account to do
What can remain after I revoke it? Mail and other data the app already downloaded Mail and other data the app already downloaded

The terms describe authentication and authorisation. IMAP is an incoming mail protocol. SMTP is one way to submit outgoing mail. A service can offer IMAP and SMTP with OAuth or with passwords, and a dedicated provider integration can use its own mail API. The option to connect through IMAP alone tells you little about which sign-in the app needs. Microsoft, for example, documents OAuth support for IMAP, POP and SMTP in Exchange Online. Microsoft’s Exchange protocol and OAuth reference

TLS protects your traffic while it travels to the mail service. It matters with OAuth and with password-based login. For manual setup, use the host names and encryption settings your mail provider publishes. Never switch the connection to plain text to make a password work. If the client says a certificate is invalid, confirm the configured server name against the provider’s instructions or contact its support before entering a credential again. cPanel’s secure client settings

Identify the provider before choosing a setup option

Your email address and the company that accepts your login can have different names. jo@example.org could be a Google Workspace mailbox, a work account on Microsoft Exchange Online or an account created by the domain’s hosting provider. Open the webmail the administrator gave you or ask where it lives. In the client, use that provider’s account type when it is supported. Save Other or manual setup for cases where the provider actually tells you to enter its servers and credentials.

Outlook.com and Microsoft work accounts

Microsoft’s Outlook.com settings list OAuth or Modern Auth for IMAP, POP and SMTP, and Microsoft says third-party clients that sync Outlook.com mail need Modern Authentication. Look for Outlook.com or Microsoft as the account type, or OAuth in the authentication options if Microsoft’s instructions for your client direct you there. An app password elsewhere in a Microsoft account’s security settings does not establish that Outlook.com will accept it for the mail connection you want. With a work account, ask the organisation which clients it permits before assuming its rules match a personal Outlook.com account. Outlook.com server and authentication settings, Microsoft’s Modern Authentication guidance

An organisation can govern incoming and outgoing access separately. Imagine you add a Microsoft work mailbox, see new mail, and find that messages stay in Outbox. If the client sends using authenticated SMTP, confirm the intended server and account and ask your administrator whether SMTP AUTH is allowed for that mailbox. Receiving through IMAP or a mail API may still work while sending through SMTP fails. A client approved for the provider’s native connection or the organisation’s webmail can keep you working while the administrator checks the outgoing path. Microsoft’s SMTP AUTH controls

iCloud Mail and Yahoo Mail

Apple supports authorising some third-party apps with your Apple Account. Apple also provides app-specific passwords for eligible accounts with two-factor authentication. If the client you picked needs the latter, generate a dedicated credential in your Apple Account settings and use it for that app. If you change or reset your primary Apple Account password, Apple says it revokes your app-specific passwords, so an older device can need a newly generated one. Apple’s supported authorisation and app-specific passwords

Yahoo distinguishes apps that use its branded sign-in page from those that require a generated app password. Its instructions say those app passwords can stay active after you change your main account password. If you remove an old device from your routine, open the Yahoo password list and delete the corresponding entry explicitly. That difference matters if you support a household with more than one provider. The remedy you used for an Apple mailbox after a password reset may miss a Yahoo credential that is still valid. Yahoo’s generation and revocation instructions

Gmail, Google Workspace and independent hosting

Google recommends signing in through Google for supported apps and offers app passwords in particular circumstances. App passwords require 2-Step Verification and may be unavailable under some account setups. Google also revokes them when you change the Google Account password. If an app cannot use the provider flow and the security page offers no app password, use a compatible client or Gmail in the browser. For work or school, ask the administrator whether the intended app can be approved. Google’s app password conditions, Gmail’s instructions for connecting a mail client

A host-managed mailbox may use an ordinary mailbox password because its provider offers conventional IMAP and SMTP. The password for office@example.org can differ from the one for the hosting control panel. Use the server settings under the specific mailbox’s Connect Devices or equivalent page. If your host documents app passwords, use its instructions. Generating a Gmail app password on a separate Google account will have no effect on a mailbox hosted under another service. See how to find your IMAP server settings or the cPanel email setup guide for Windows. cPanel’s mail client instructions

Check what the app can do before approving it

Think about the actual job. A full mail client that sends replies, updates read status and archives messages needs permission to make changes. A utility that only shows you the latest mail may have a narrower route. If the provider lists everything together, read the developer’s own explanation of how the stated access supports the app. An OAuth button alone cannot tell you whether the consent is limited, whether the connection runs entirely on your computer or whether the app will copy messages to its servers. The app’s documentation and policy should answer those questions together. OAuth scope definition, How to evaluate an email app’s privacy policy

Open the account connection from the installed app you intended to use. Check that you landed on the expected provider website, that the app name matches and that the account shown is the one you want to connect. When several accounts are already signed in to a browser, a consent page can open with the wrong personal or work profile. Cancel if the account or application differs, then reopen the flow and select the correct profile. Native app OAuth guidance calls for using an external user agent such as the system browser. OAuth for native apps

For an app password, create one entry per app or installation when your provider lets you. Give it a useful label such as Laptop mail client and enter it only in the app’s account setup. If a password is visible once, take care to paste it into the credential field and clear it from any shared clipboard history you use. Keep credentials out of support tickets, screenshots and chat messages. When diagnosing an error with support, they can work with the error text, provider name and selected authentication method. They do not need the token or app password itself. Apple’s per-app password controls, Yahoo’s app password controls

Compare two devices before assuming they share access

Suppose you have iCloud Mail in a desktop app and on a family tablet. The tablet uses Apple’s own account setup, while the desktop app needed a generated password. Those are distinct routes. When you retire the computer, you can revoke its app-specific password in the Apple Account instead of changing the mailbox’s primary password and forcing other clients to reconnect. Give each credential a label that tells you which installation to remove. If you previously reused one generated password, replace it in the app you want to keep before deleting the old entry. Apple’s app-specific password management

OAuth access can be shown differently. Some provider dashboards group permissions by application or grant, even if you authorised use from more than one device. Read the scope of the removal action before relying on it to sign out only a single installation. Check the provider’s list of signed-in devices separately if you also used its webmail or another first-party app on the computer. The list of third-party grants and the device’s own provider sign-in answer different questions about access. Google’s guide to third-party app connections

Check two-step verification at the right step

With OAuth, you may be asked for a security key, phone confirmation or another sign-in step on the provider’s page. With app passwords, the provider normally applies its account security rules when you get the password. After that, a supported mail app uses the generated password to sign in repeatedly. It usually does not ask for a fresh two-step code on each connection. Protect that generated password as a separate credential and revoke it if you lose control of the installation. Apple and Google require their accounts to have two-factor or two-step verification to generate app passwords. Apple’s setup requirements, Google’s setup requirements

If a sign-in dialog offers both a built-in provider button and a generic username and password form, compare it with the provider’s current instructions for the exact account. A provider-specific button might also perform discovery or prompt you to approve the app, while the generic form expects the servers and password separately. If you are setting up a managed account and its security settings prevent you from generating a password, the administrator or supported client is the way to resolve that policy decision.

Test incoming mail and sending independently

Connect a spare mailbox first if you are comparing clients. Give it one old message, one unread message and a harmless draft. If the app will handle a work account, confirm the organisation permits the test and the eventual connection. A separate test mailbox also makes it easier to see which machine holds the active connection without disturbing a mailbox you rely on.

  1. Send a uniquely named message from another address you control. Check that it arrived in the provider’s webmail, then check whether the client shows it under the correct account. If neither shows it, start with delivery. If webmail shows it, investigate the client sync or sign-in.
  2. Mark the test message as read in the client. Refresh webmail to verify that the change synchronises if that is part of your workflow. A local cache can display mail downloaded earlier while live access has already stopped.
  3. Send a message to a separate address from the account you just set up. Inspect the received From address and check Sent in the provider’s webmail. This tests the outgoing authorisation as well as the location of the sent copy.
  4. Close and reopen the app, then try another incoming test. That checks that the login survives a normal restart. An OAuth permission page that returned successfully can still be followed by an account mismatch or a startup connection error.

One Yahoo mailbox may still receive updates while another app on the same PC has lost its iCloud authorisation. Record which service and app actually failed rather than resetting all your passwords. A single working provider sign-in says nothing about whether a different authorised app has access. For a connection consistently asking you to sign in again, check why Gmail OAuth can stop syncing if the account is Gmail. Gmail’s client sign-in troubleshooting

Diagnose the error before replacing credentials

What you see Check first
Consent page says administrator approval is required Check whether the account is managed and request review through its approved process
The provider accepted the browser login but the app is empty Confirm the chosen mailbox, the requested mail permission and the app’s connection status
App password fails immediately Check the provider documents this method, then verify the mailbox username, server and credential entry
Mail appears after opening but Send fails Check the outgoing service and its authentication separately
An app password stops working after an account password change Check the provider’s rule for invalidating separate passwords
Old messages open but a new one never arrives Verify current connection status and look for the new test message in webmail

If you are replacing a working sign-in with OAuth, note which app and account you are changing. You might have local drafts or an unsent Outbox in the existing account profile. Save important unsent work before removing that profile. Then use the app’s reconnect action or its documented migration steps and check new incoming and outgoing mail before retiring the original credential. Some clients treat the same address added a second time as a new account and therefore show duplicate rows. Distinguish this from two copies being delivered to the mailbox by checking its webmail.

A login prompt can also mean the app attempted to connect to a server that requires a different security method. Compare the setup screen with what the provider publishes, including its authentication option. For example, a client might default to password authentication on a manually entered IMAP host when your Microsoft account needs OAuth. Resolve the protocol and provider setting before generating more passwords. Microsoft’s third-party mail client instructions, Troubleshooting an IMAP password that keeps failing

Retire access and check what stays behind

Disconnect the mailbox in the client if you can open its settings. Then review the provider account. For OAuth, remove the app or withdraw the relevant connection in the provider’s authorised apps screen. For an app password, revoke or delete the specific entry you created. If it was shared across more than one installation, those installations can lose access too. Check the provider’s list again and use a harmless new message to confirm that the old client stops receiving mail if you still have the device. Google’s instructions for managing third-party connections, Apple’s instructions for revoking app-specific passwords, Yahoo’s app password removal guidance

Revoking access controls future use of that credential. You may still be able to read mail the app already cached, and the provider still holds its own mailbox. Look for a separate option to delete downloaded mail, drafts and search indexes if the device is being handed over. If the client synchronises through its own servers, check how to remove the synced copy there too. A provider’s app list cannot answer what the app retained outside the provider after previous syncs. Google’s guidance on previously shared data

In Swftink’s Public Account edition, signing in to the Swftink account with Google uses identity permissions. An eligible direct Gmail mailbox connection separately requests Gmail access, and Google test access is currently required. A direct IMAP mailbox uses the credentials and mail servers for that provider. Swftink’s policy says the Windows app keeps tokens or mailbox passwords in Credential Manager, and its Mailbox data and privacy controls let you disconnect from the provider and delete local data separately. The setup you get depends on the provider and edition, even though all the mail can appear in the same app. Swftink’s privacy policy, Gmail third-party app permissions

Sources