New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
SecurityUpdated 4 Nov 2026

Email Account Security: Two-Factor Authentication and Best Practices

How to secure an email account with two-factor authentication, passkeys and security keys, plus the settings attackers abuse after a takeover and a checklist for individuals and administrators.

HM
Written by Hannah Mitchell
Product Manager, Onboarding
Reviewed by Omar Haddad
  • Published1 Dec 2023
  • Read time7 min
  • Length1,353 words
Share this guide

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.

BestPasskey or FIDO2 security key: resistant to phishing
GoodAuthenticator app with time-based codes
WeakestSMS or voice codes: better than nothing, vulnerable to SIM swapping and phishing
Also checkRecovery email and phone, forwarding rules, app passwords, connected apps

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

MethodHow it worksStrengthsWeaknesses
PasskeyA cryptographic credential stored on your device or in a credential manager, unlocked with biometrics or a PINPhishing resistant, no shared secret, fastNeeds a supported device and provider; plan recovery
Security key (FIDO2/WebAuthn)Physical key you touch or tapPhishing resistant; works without battery or signalCost; carry a spare; not every client supports it
Authenticator app (TOTP)App generates a six digit code every 30 secondsWorks offline; widely supportedCodes can be phished in real time; backup needed if the phone is lost
Push approval promptApprove a sign-in on a trusted deviceConvenientPrompt fatigue attacks; use number matching where offered
SMS or voice codeCode sent to a phone numberEasy to set upSIM swap, interception and phishing risk
Backup codesOne-time codes printed or savedRecovery if the device is lostMust 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

  1. Update your password first. Use a unique passphrase from a password manager, not a variation of an old one.
  2. Add the strongest method you can: register a passkey or security key. Register two keys if you can, and store the second safely.
  3. Add an authenticator app as a fallback. Save the setup secret or enable encrypted backup in the app.
  4. Generate backup codes and store them offline or in your password manager.
  5. Review recovery options: the recovery email and phone number must be accounts you control and also protect with 2FA.
  6. Sign out of devices you do not recognise.
  7. 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.

SettingWhat attackers doWhat to check
ForwardingSilently forward copies of all mail to an outside addressForwarding and POP/IMAP settings
Filters and rulesDelete or hide security alerts and repliesAll rules, especially ones that move or delete mail
Recovery optionsReplace recovery email or phoneRecovery email and phone, and account recovery methods
Connected apps and OAuth grantsGrant a malicious app access that survives a password changeThird-party access list; remove anything unknown
App passwordsCreate passwords that bypass 2FA for old clientsRevoke any you do not use
Signature and Reply-ToRedirect replies or add payment instructionsSignature and Reply-To settings
Delegation and shared accessAdd another person with access to the mailboxDelegates 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

  1. Require MFA for all users and block legacy authentication protocols that cannot do it, following your platform's current guidance.
  2. Prefer phishing resistant methods for administrators and finance staff first.
  3. Monitor sign-in locations, impossible travel, new forwarding rules and mass deletion. Alert on them.
  4. Limit admin roles and use separate admin accounts.
  5. Authenticate your domain with SPF, DKIM and DMARC so attackers cannot forge it. See spoofing and phishing prevention.
  6. Encrypt in transit and review mail security settings. See TLS in transit.
  7. Offboard promptly: disable accounts, revoke tokens and remove delegates when people leave.
  8. 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

ProblemCauseFix
Locked out after changing phoneAuthenticator app not transferredUse backup codes or another registered method, then re-enroll
Code always rejectedDevice clock out of syncTurn on automatic time. See clock sync
Mail app asks for password repeatedlyApp does not support 2FAUse OAuth sign-in or an app password
Did not request a sign-in promptSomeone has your passwordDeny the prompt, change the password at once, review activity
SMS code not arrivingCarrier delay or number changedSwitch to an app or key
Recovery impossibleRecovery details outdatedUpdate 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.

Explore the email API

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.

Topics#2fa#mfa#account security#passkeys#email
Was this guide helpful?Your answer helps us improve our documentation.

Start sending in minutes.

Create an account, add your domain and send your first email.

Get started Talk to sales