{% extends "base.html" %} {% block title %}SMTP Relay Settings{% endblock %} {% block content %}

SMTP Relay Settings

Configure an outbound SMTP relay for email verification and password resets. Disabled by default.

Configuration
Send Test Email
Sends a test message to {{ current_user.email }} using the current settings.
Setup Guide

Gmail (App Password)

  • Host: smtp.gmail.com, Port: 587, STARTTLS on
  • Enable 2FA on your Google account
  • Generate an App Password at myaccount.google.com → Security → App passwords
  • Username: your full Gmail address
    Password: the 16-char app password

Own SMTP Server

  • Use your server's hostname, port 25/465/587
  • STARTTLS for port 587, SSL for port 465, neither for plain port 25

Email Verification Flow

When Require email verification is on, newly registered users get a verification email. Their account is inactive until they click the link. The link expires in 24 hours.

Password reset emails are sent automatically when SMTP is enabled (no separate toggle).

{% if cfg.enabled %}
SMTP relay is enabled.
{% if cfg.email_verify_enabled %} Email verification on registration is on. {% else %} Email verification on registration is off. {% endif %}
{% else %}
SMTP relay is disabled. Password reset links are logged to the server journal only.
{% endif %}
{% endblock %}