Privacy and security

Two-factor authentication explained, and how to turn it on in Ayamail

Updated 30 October 2026 · 7 min read

Passwords leak. Sometimes it is your fault, often it is not: a website you used years ago is breached, and your old password ends up on a list. Two-factor authentication, which the NCSC calls 2-step verification, adds a second check when you sign in. Even if someone has your password, they still need something only you have. This guide explains the different kinds, which to prefer, and exactly how it works in Ayamail.

Short answer

Two-factor authentication asks for a second proof after your password, usually a six-digit code from an app on your phone. A stolen password is then not enough. Turn it on for your email first. In Ayamail, open the security settings, enable two-factor, scan the QR code and save your recovery codes.

How it works

Security people talk about factors: something you know (a password), something you have (your phone or a security key) and something you are (a fingerprint or your face). Two-factor sign-in combines two of these. Your password is the first. The second is usually your phone.

The NCSC lists several ways a service can do the second check: a code sent by text message or email, a code from an authenticator app, a fingerprint or face scan, or a separate device. Not all of these are equally strong, but any of them is far better than a password alone.

Which method to choose

  • Authenticator app codes (also called TOTP): the app on your phone creates a new six-digit code every 30 seconds. The code is made on the phone itself, so it cannot be intercepted on the way. This is a good default for most people.
  • Passkeys and security keys: the strongest option where a site offers them, because they only work on the real website and cannot be typed into a fake page.
  • Text message codes: much better than nothing, but a code can be redirected if someone takes over your phone number, and you can be tricked into reading it out.
  • Email codes: fine for many accounts, but not for your email account itself, for obvious reasons.

Turn on two-factor in Ayamail

Ayamail uses codes from an authenticator app, such as the ones made by Google, Microsoft or many others. You need your phone and about three minutes.

  1. Open the security settings

    Sign in to Ayamail on the web, open Settings and choose Security. Find the section “Two-factor (TOTP)”.

  2. Choose “Enable two-factor”

    A QR code appears. Open your authenticator app and scan it. If you cannot scan, choose to enter the key manually and type it into the app.

  3. Enter the six-digit code

    Type the code your app shows and choose Verify. The section now says Active.

  4. Save your recovery codes

    Ayamail shows a set of recovery codes. Each one works once and lets you in if your phone is lost. Copy them into a safe place, for example Ayamail Pass or a printed sheet at home, and confirm that you have saved them.

  5. Sign in as normal

    Next time you sign in, Ayamail asks for a code after your password. You can tick “Remember this device for 30 days” on your own computer. If you do not have your phone, choose “Use a recovery code”.

What two-factor does not cover in Ayamail

We want to be clear about this. Two-factor protects the sign-in to your Ayamail account on the web. Mail apps such as Outlook, Thunderbird or the iPhone Mail app connect over IMAP and SMTP with the password for the mailbox, and they do not ask for the code. That is normal for mail apps, but it means the mailbox password still needs to be long and used nowhere else.

There is also no passkey sign-in to Ayamail today. Two-factor uses an authenticator app. Ayamail Pass can, however, store passkeys for other websites that support them.

Other settings worth two minutes

  • Recovery email: an address we can use if you lose access to your account. Keep it current.
  • Login alerts: a push message and an email when your account is used from a new device.
  • Active devices: a list of where you are signed in, with a sign-out button for each. A device you sign out is logged out the next time it contacts Ayamail.

Never hand over a code

Two-factor stops someone who only has your password. That is why fraudsters try to get the second part from you as well. A typical trick is a phone call or message from someone who claims to be your bank, a delivery firm or a support team, asking you to read out the code you just received "to confirm your identity". Another is a fake sign-in page that asks for your password and then your code, and passes both on straight away.

The rule is simple: a sign-in code is only ever typed by you, on a site you opened yourself. Nobody from Ayamail will ever ask you for a code, a recovery code or your password, by phone, chat or email. If you get a code you did not ask for, someone may know your password. Do not share the code, and change your password straight away.

Before you lock the door

Make the password part strong too

Two-factor works best with a long, unique password. Here is how to build one you can remember.

Questions and answers

What if I lose my phone?
Use one of your recovery codes to sign in, then turn two-factor off and on again with your new phone. Each recovery code works once, and you can generate a new set in the security settings.
Is a text message code good enough?
It is much better than a password alone. Authenticator apps and passkeys are stronger, because the code cannot be redirected to someone else's phone.
Will I have to type a code every time?
No. On your own computer you can tick “Remember this device for 30 days”. You will be asked again on a new device or after the 30 days.
Does two-factor protect my mail app on my phone?
Not in Ayamail. Mail apps sign in with the mailbox password over IMAP and SMTP. Two-factor protects the web account, so keep the mailbox password strong as well.
  • Strong passwords

    Why length beats symbols, how three random words work, when to use a password manager and how to generate a passphrase with Ayamail Pass.

  • Email hacked

    Signs your email account has been taken over, the order to fix things in, how to warn contacts and how to stop it happening again. Calm, practical steps.

  • Spot a phishing email

    Check the sender, links, urgency and attachments before you click. Real examples, a ten-point checklist and what to do if you already clicked.

  • Can my provider read my email?

    The honest answer: technically yes for ordinary mail on a provider's servers. What Ayamail does with it, and how to write for the recipient's eyes only.