Skip to main content

Email One-Time-Passwords

MailFlow Relay uses email-based login, we do not manage passwords for users.

Configuring the OTP Emails

You can customize the email send for login requests using templating. You may customize the email from name (default: norepy@), the subject line and the body. You can also configure the priority for these signup emails using config.auth.otp.email.priority. It is recommended to have these emails at high priority over all forward jobs to prevent expiry before delivery.

Templaing variables reference

You can use the values in the table below in your email by using mustace templaing syntax.

ValueDescription
appNameApp name as configured in config.ui.app.name.
linkGGenerated one-click signin link derived from config.server.domain.web, the otp-code and user-provided email.
codeThe raw 6-digit OTP-code.
expiresIn.enHumanized string version of config.auth.otp.expiry.inSeconds in the english language.
expiresIn.deHumanized string version of config.auth.otp.expiry.inSeconds in the german language.