Ir al contenido

E-mail

With Email OTP the user receives an e-mail for every sign-in. It carries a 6-digit code and two links, Approve and Deny. Whichever is used first answers the sign-in; using one spends the other. Mail goes through your own SMTP server.

  • SMTP configured and enabled under Settings ▸ Integrations ▸ Email.
  • For the Approve / Deny links: the server’s public base URL (the e-mail settings’ Public base URL, or the general base URL). Without it, the e-mail carries the code only.
  • An e-mail address on every user who enrolls.

Open Settings ▸ System ▸ MFA Settings, switch on Email OTP and click it (Configure Email OTP):

SettingDefaultNotes
Code lifetime (seconds)30060 to 3600. How long an e-mailed code — and its links — stays valid.

The message itself (MFA code template) can be adjusted with your other e-mail templates.

The user chooses Email OTP in My account or from a setup link. A confirmation e-mail arrives with a code and links; typing the code or clicking Approve activates the method. Five wrong codes spend the confirmation; the user can then ask for a new e-mail.

  • Console and single sign-on page — the page asks for the code and at the same time waits for the link. The user can type the code, or click Approve in the e-mail.
  • RADIUS devices that show a prompt — the device asks for the code in a second step; clicking Approve in the e-mail also completes the sign-in.
  • RADIUS devices that cannot show a prompt (for example RD Gateway, MikroTik) — the e-mail carries only the Approve / Deny links, and the sign-in waits for the click, like a push. This needs the public base URL.
  • Windows logon agent — the logon screen asks for the code; recent agent versions also accept the link.

A newer sign-in replaces an older pending e-mail. If the user does not answer within the code lifetime, the sign-in times out.

Many mail systems open every link in an incoming message to check it — Outlook Safe Links, security gateways, sandboxes that even run JavaScript. If opening an Approve link approved the sign-in, those scanners would approve attackers’ sign-ins on the user’s behalf.

OkYouIn’s links therefore never decide just by being opened:

  1. The link opens a page in OkYouIn that only shows the request: user, application, time, address and browser.

  2. If the link is opened in the same browser that started this sign-in, the page carries out the link’s choice at once — one click for the user, as they expect.

  3. Anywhere else — another device, or a mail scanner, which never typed the password and so lacks that browser’s private marker — the page waits for the user to click Approve or Deny on it.

Each link is random, bound to one sign-in, usable once, and expires with the code. Using an unknown link counts towards blocking the address.

  • E-mail is only as strong as the mailbox. If users read mail on the same device they sign in from, a stolen laptop carries both factors. Prefer the web app push or TOTP for administrators.
  • The approving browser’s country is checked against the Country condition of the rule that allowed the sign-in, as for web app push — see The approving device. A typed code is not, because it is entered on the sign-in device.
  • Approve links count as pushes for push flood protection. When the limit is reached, the e-mail still goes out with its code but without the links.
  • If the mail server fails, sign-ins with Email OTP fail too. A provider health alert warns you when SMTP is not configured, and an alert fires when e-mail delivery fails.