The single most effective step to secure an email account is to turn on two-factor authentication (2FA), also called multi-factor authentication, and to prefer the strongest method your provider offers: a passkey or hardware security key first, an authenticator app second, and SMS codes only if nothing else is available. Pair that with a unique, long password stored in a password manager and a check of the account's recovery and forwarding settings.
Your email account is the master key to your other accounts, because password resets are sent there. Anyone who controls it can take over banking, shopping and work accounts. This guide explains the 2FA methods and their trade-offs, the settings attackers change after a takeover, and a checklist for individuals and for administrators who manage many mailboxes.
Why passwords alone are not enough
Passwords are stolen by phishing pages, malware, data breaches and guessing. Reuse multiplies the damage: a password leaked from one website is tried against email accounts within hours. A second factor means a stolen password alone is not sufficient to sign in. It does not make an account invulnerable, but it removes the most common attack path, so enable it before anything else.
Choosing a second factor
| Method | How it works | Strengths | Weaknesses |
|---|---|---|---|
| Passkey | A cryptographic credential stored on your device or in a credential manager, unlocked with biometrics or a PIN | Phishing resistant, no shared secret, fast | Needs a supported device and provider; plan recovery |
| Security key (FIDO2/WebAuthn) | Physical key you touch or tap | Phishing resistant; works without battery or signal | Cost; carry a spare; not every client supports it |
| Authenticator app (TOTP) | App generates a six digit code every 30 seconds | Works offline; widely supported | Codes can be phished in real time; backup needed if the phone is lost |
| Push approval prompt | Approve a sign-in on a trusted device | Convenient | Prompt fatigue attacks; use number matching where offered |
| SMS or voice code | Code sent to a phone number | Easy to set up | SIM swap, interception and phishing risk |
| Backup codes | One-time codes printed or saved | Recovery if the device is lost | Must be stored securely |
Standards behind passkeys and security keys are FIDO2 and the W3C WebAuthn specification. Provider names, menus and available methods vary and change, so use each provider's current help pages to find the right screen. Typically it is under a security or sign-in section of the account settings.
Turn on 2FA: a practical order
- Update your password first. Use a unique passphrase from a password manager, not a variation of an old one.
- Add the strongest method you can: register a passkey or security key. Register two keys if you can, and store the second safely.
- Add an authenticator app as a fallback. Save the setup secret or enable encrypted backup in the app.
- Generate backup codes and store them offline or in your password manager.
- Review recovery options: the recovery email and phone number must be accounts you control and also protect with 2FA.
- Sign out of devices you do not recognise.
- Test by signing in from a private window, so you know the flow works before you need it.
Settings attackers change after a takeover
Attackers who get into a mailbox often add persistence before they are noticed. Check these places regularly, and immediately if you suspect a compromise.
| Setting | What attackers do | What to check |
|---|---|---|
| Forwarding | Silently forward copies of all mail to an outside address | Forwarding and POP/IMAP settings |
| Filters and rules | Delete or hide security alerts and replies | All rules, especially ones that move or delete mail |
| Recovery options | Replace recovery email or phone | Recovery email and phone, and account recovery methods |
| Connected apps and OAuth grants | Grant a malicious app access that survives a password change | Third-party access list; remove anything unknown |
| App passwords | Create passwords that bypass 2FA for old clients | Revoke any you do not use |
| Signature and Reply-To | Redirect replies or add payment instructions | Signature and Reply-To settings |
| Delegation and shared access | Add another person with access to the mailbox | Delegates and mailbox permissions |
If you find any of these, change the password, revoke sessions, remove the changes, re-enroll 2FA and warn contacts who may have received fraudulent messages. Organisations should follow the account compromise response.
App passwords, SMTP and legacy clients
Some older mail programs and scripts cannot do 2FA. Providers offer app passwords or require OAuth 2.0 for them. Prefer OAuth where supported, because tokens can be scoped and revoked without changing your password. Where you must use an app password, create one per application, name it clearly and revoke it when you stop using that program. Never use your main password in scripts. For sending from applications, use a dedicated sending service with API keys rather than a personal mailbox. See SMTP OAuth 2.0, Gmail SMTP and app passwords and API key security.
Phishing habits that protect you
- Do not sign in from a link in a message. Open the site yourself or use a saved bookmark.
- Check the sender's domain, not only the display name. Compare it with the real address you know.
- Treat urgency, secrecy and payment changes as red flags. Confirm by phone using a number you already hold.
- Never share a one-time code with anyone, including someone claiming to be support.
- Passkeys and security keys help because they only work on the genuine site.
- Report suspicious messages to your provider or IT team. See where to report phishing and how to spot phishing.
For administrators and domain owners
- Require MFA for all users and block legacy authentication protocols that cannot do it, following your platform's current guidance.
- Prefer phishing resistant methods for administrators and finance staff first.
- Monitor sign-in locations, impossible travel, new forwarding rules and mass deletion. Alert on them.
- Limit admin roles and use separate admin accounts.
- Authenticate your domain with SPF, DKIM and DMARC so attackers cannot forge it. See spoofing and phishing prevention.
- Encrypt in transit and review mail security settings. See TLS in transit.
- Offboard promptly: disable accounts, revoke tokens and remove delegates when people leave.
- Prepare recovery. Document the process for lost keys and phones so helpdesk staff do not bypass controls under pressure.
Recovery planning
Strong authentication creates a new failure mode: you can lock yourself out. Before you rely on a method, decide how you would recover if the phone is lost, stolen or broken. Keep at least two independent methods registered, for example a security key and an authenticator app, and keep backup codes in a place that does not depend on the mailbox you are protecting. Do not store the only copy of backup codes inside the same email account.
Recovery processes are also what attackers target. Providers ask for old passwords, recovery emails and phone numbers, so keep these current and protect them with the same care. A recovery email address that you no longer control, such as an expired domain, can be registered by a stranger and used to reset your account. If you use a custom domain for mail, keep its registration renewed and locked. See domain expiry.
For organisations, write a helpdesk procedure for lost factors that verifies identity through a separate channel and records every reset. Social engineering of support staff is a common route around otherwise strong controls.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| Locked out after changing phone | Authenticator app not transferred | Use backup codes or another registered method, then re-enroll |
| Code always rejected | Device clock out of sync | Turn on automatic time. See clock sync |
| Mail app asks for password repeatedly | App does not support 2FA | Use OAuth sign-in or an app password |
| Did not request a sign-in prompt | Someone has your password | Deny the prompt, change the password at once, review activity |
| SMS code not arriving | Carrier delay or number changed | Switch to an app or key |
| Recovery impossible | Recovery details outdated | Update recovery email and phone while you still have access |
Next steps: set up a passkey or key today, store backup codes, check forwarding and rules now and again every few months, and make 2FA mandatory for any team that shares sensitive mail. Account security complements, not replaces, authentication of your sending domain.
Send application email without sharing mailbox passwords Use an SMTP relay or email API with scoped credentials instead of a personal account.
References and further reading
Frequently asked questions
What is the best two-factor method for email?
A passkey or FIDO2 security key, because it resists phishing. An authenticator app is the next best choice, and SMS is the weakest.
Is SMS two-factor authentication still worth using?
Yes, if it is your only option, because it still blocks many attacks. Move to an app or key when possible.
What should I check if my email was hacked?
Forwarding addresses, filters, recovery email and phone, connected apps, app passwords and delegates, then change the password and revoke sessions.
Do I need an app password with 2FA?
Only for older programs that cannot do 2FA. Prefer OAuth, create one app password per program and revoke it when unused.
How do I avoid being locked out?
Register two methods, store backup codes safely, keep recovery details current and test sign-in before you need it.