📬 Email: Links and Messages
The messages LibreFolio sends once email works, flow by flow:
- the links for invitations and password resets;
- forgotten passwords;
- the limits on those emails;
- the verification of new addresses;
- the notice of an address change.
Email has to work first: the SMTP variables, the Email tab and the test email are in Email. When a message does not go out: Email: When It Does Not Work.
🌐 Emails with a Link
An invitation or password-reset link sent by email is built only from LIBREFOLIO_PUBLIC_URL.
Never from the address the browser used, nor from anything else in a request.
flowchart TD
REQ["Email with a link to send"] --> CHK{"LIBREFOLIO_PUBLIC_URL<br>set and valid?"}
CHK -->|"no"| REF["Refused:<br>EMAIL_LINKS_UNAVAILABLE"]
CHK -->|"yes"| BUILD["Link = LIBREFOLIO_PUBLIC_URL<br>+ page + secret part"]
BROWSER["Browser address,<br>request data"] -. "never used" .-> BUILD
BUILD --> MAIL["Email sent,<br>link works once"]
classDef no fill:#b71c1c,stroke:#7f0000,color:#ffffff
classDef ok fill:#2e7d32,stroke:#1b5e20,color:#ffffff
class REF no
class MAIL ok
The email names the instance, by the host of LIBREFOLIO_PUBLIC_URL, and says how long the link is valid.
🛡️ Why
Anyone can send LibreFolio a request that names another address. If the link were built from the request, a stranger could have LibreFolio email one of your users a real link to a site of theirs, and catch its secret part when the user opens it.
Where to set it: LibreFolio's .env file. The address your users open LibreFolio at:
| Rule | Value |
|---|---|
| Scheme | http:// or https://, then a host name |
| Forbidden | user name or password, ? or #, spaces |
It is the same variable the command line puts in front of the links it prints: Accounts and Sign-ups.
The «no» branch of the diagram (variable missing, or an address that breaks these rules), besides the EMAIL_LINKS_UNAVAILABLE refusal:
- the test email still works;
- Require Email Verification cannot be turned on (Email Verification);
- the links you copy, from the command line for one, stay as they are.
How long the links are valid, written in the email:
| Link | Valid for |
|---|---|
| New invitation | 7 days |
| Password reset | 30 minutes |
| Verification | 24 hours |
| Setup of the initial administrator | 72 hours |
The secret part of the link comes after #: browsers never send it to the server, so it stays out of server and proxy logs.
To check it:
- With email Ready, Settings › Administration › Email shows a notice when
LIBREFOLIO_PUBLIC_URLis not set or cannot be used, and the start log has a line (What the Log Says). - Once it can be used, the tab shows the address and checks, from your browser, that this instance answers there: The Address in Emailed Links.
- From anywhere,
/api/v1/system/instanceshows"links": truewhen both email and the address are fine.
📨 Links Sent by an Administrator
An invitation or password-reset link created by an administrator can be sent by email, instead of being copied by hand.
Condition: email Ready and a usable LIBREFOLIO_PUBLIC_URL (Emails with a Link).
Then the invitation and password-reset dialogs of Users & Invitations show Send by email under the link.
---
config:
sequence:
actorMargin: 20
width: 120
messageMargin: 20
---
sequenceDiagram
participant A as Administrator
participant F as Dialog
participant L as LibreFolio
A->>F: Invite, or<br>Password-reset link
F-->>A: Link + Send by email
A->>F: Send by email
F->>L: Only the secret part
Note over L: Email: link from<br>LIBREFOLIO_PUBLIC_URL
L-->>F: Outcome
F-->>A: Outcome
The outcome, shown in the dialog:
flowchart TD
S["Send by email"] --> V{"Link valid?"}
V -->|"expired, used<br>or revoked"| NO["Refused:<br>create a new one"]
V -->|"yes"| P{"Email left?"}
P -->|"no"| ERR["The reason<br>(Sending Errors)"]
P -->|"yes"| OK["Sent to …<br>address and language"]
classDef no fill:#b71c1c,stroke:#7f0000,color:#ffffff
classDef ok fill:#2e7d32,stroke:#1b5e20,color:#ffffff
class NO,ERR no
class OK ok
| Invitation | Password-reset link | |
|---|---|---|
| Send to | Starts with the address written in the invitation; you can change it. | No field: it goes to the address of its account. |
| Language of the email | Chosen in the dialog (table below); without a choice, the instance's Default Language. | The language of its account. |
| Content | Names you as the person who invites and says, when it is the case, that the new account will be an administrator. | — |
| Condition | — | Only while the account is active. |
| Language choice | Effect |
|---|---|
| The instance's language | The email is in the instance's Default Language (Global Settings). |
| English, Italiano, Français, Español | For someone who reads another one. |
The language of the email is the email's only: it does not become the language of the account the invitation creates.
To set the Default Language before an administrator has saved it, in the .env file (en, it, fr or es):
- The link in the email starts with
LIBREFOLIO_PUBLIC_URL, whatever Server address the dialog shows: only the secret part of the link travels from the dialog. The dialog says so above the button. - Why an email did not go out: Sending Errors.
- Each email counts against the hourly limit.
🗝️ Forgotten Passwords
Someone who forgot their password can ask for a reset link by email, with their username or email address, without signing in.
Before the answer:
---
config:
layout: elk
---
flowchart TD
REQ["Forgot Password?<br>username or email address"] --> READY{"Email Ready and<br>LIBREFOLIO_PUBLIC_URL usable?"}
READY -->|"no"| NOPE["Refused: short message,<br>the same for everyone"]
READY -->|"yes"| ADDR{"Per-address<br>counter full?"}
ADDR -->|"no"| NAME{"3 an hour for this<br>name or address?"}
NAME -->|"no"| INST{"Hourly limit of<br>the instance spent?"}
ADDR -->|"yes"| WAIT["Refused: the answer<br>says how long to wait"]
NAME -->|"past"| WAIT
INST -->|"yes"| WAIT
INST -->|"no"| RESP["The same answer<br>for everyone"]
classDef no fill:#b71c1c,stroke:#7f0000,color:#ffffff
class NOPE,WAIT no
After the answer, silently:
---
config:
layout: elk
---
flowchart TD
RESP["Answer already given"] --> FIND{"An active account<br>matches?"}
FIND -->|"no"| STOP1["Nothing"]
FIND -->|"yes"| ADMIN{"An administrator's link<br>still valid?"}
ADMIN -->|"yes"| STOP1
ADMIN -->|"no"| ACC{"Per account: 1 every 5 minutes<br>and 3 an hour past?"}
ACC -->|"yes"| STOP2["Nothing"]
ACC -->|"no"| BOX{"Per mailbox:<br>3 an hour past?"}
BOX -->|"yes"| STOP2
BOX -->|"no"| SEND["Email with the link:<br>30 minutes, once"]
classDef ok fill:#2e7d32,stroke:#1b5e20,color:#ffffff
class SEND ok
The email with the link is in the account's language.
The same answer for everyone, whether an account matches or not:
If an active account matches, its owner gets an email with a link to choose a new password
The search for the account and the sending come after the answer: nobody can use it to find out which accounts exist.
- The account is found as the login finds it: username or email address. The email goes to its address.
- The link replaces the reset links that earlier requests sent the account. A link created by an administrator, instead, is never cancelled by a request.
It is safe because changing an account's email address asks for the current password (Profile): see Security Notes.
The login page:
| State of the instance | What the page shows |
|---|---|
Email Ready and a usable LIBREFOLIO_PUBLIC_URL |
Forgot Password? opens the form for it, without the server commands (they stay in Command-Line Tools). After a request the form says Email sent: check your spam folder too., the same for everyone, and its button counts down 5 minutes, the interval for one account, before the next request; a reload of the page keeps the countdown. |
| Otherwise | That command, open, under the warning: Email recovery is not available on this instance. Reset your password from the server terminal, or ask your administrator for a password-reset link. |
| The page cannot read the instance's configuration from the server | Only the advice: Ask your administrator for a password-reset link: they can create one for your account. |
An administrator creates that link in Settings › Administration › Users, even without email (Password-Reset Links).
The limits:
| Limit | Past it |
|---|---|
LIBREFOLIO_SIGNUP_EMAILS_PER_ADDRESS requests an hour (20 by default) from the same address. A count shared with the registrations and with Send the link again (Limits on Activation and Password-Reset Emails). An IPv6 address counts by its /64, the block one subscriber usually holds. |
Refused until a place frees in that count, or in the hourly limit of the instance if that one waits longer. The answer says how long. |
| 3 requests an hour for the same username or email address, whether an account matches or not | Refused until the oldest of them is an hour old. |
The hourly limit of the instance, LIBREFOLIO_SMTP_MAX_PER_HOUR |
Refused until an email fits again. |
| 3 emails an hour to the same mailbox, whatever account they are for and however its address is written | Nothing is sent; the answer stays the same. |
| 1 email every 5 minutes, and 3 an hour, for the same account, the links created by an administrator included | Nothing is sent; the answer stays the same. Two requests at the same moment cannot both be sent. |
Where the counts live:
- the limit per account counts the account's reset links in the database;
- the others are kept in the memory of each server process: with several processes, each has its own count, and a restart forgets them;
- a reset email that did not go out still counts, for the account and for the mailbox.
One mailbox, however its address is written. The limit per mailbox counts the aliases of an address as one mailbox:
| Spelling | Mailbox counted |
|---|---|
| Capitals | Do not count. |
name+news@example.com |
name@example.com: a +tag does not count, on any domain. |
first.last@googlemail.com |
firstlast@gmail.com: the dots of a Gmail address do not count, and googlemail.com is gmail.com. |
- The limits of the verification emails and of the notices of an email change count the same way.
- Each email still goes to the address exactly as the account has it.
- A mailbox that takes mail under any name, such as a catch-all domain or Fastmail's
anything@user.fastmail.com, counts each name apart: only the hourly limit of the instance holds those back.
Behind a reverse proxy, the address that counts is the visitor's, as LibreFolio reads it (The Visitor's Address):
---
config:
layout: elk
---
flowchart TD
Q1{"LIBREFOLIO_CLIENT_IP_HEADER<br>set?"} -->|"yes"| HDR["Address in the proxy's header<br>(Fly-Client-IP, X-Real-IP)"]
Q1 -->|"no"| Q2{"Proxy listed in<br>FORWARDED_ALLOW_IPS?"}
Q2 -->|"yes"| XFF["uvicorn reads<br>X-Forwarded-For"]
Q2 -->|"no: untrusted proxy"| Q3{"Address<br>of the proxy"}
Q3 -->|"local: Docker, LAN, VPN"| LOC["Per-address limits skipped;<br>the others count"]
Q3 -->|"public: a CDN"| PUB["Everyone shares<br>the proxy's count"]
-
With
LIBREFOLIO_CLIENT_IP_HEADER, in the.envfile, LibreFolio reads the address in the header your proxy sets with the visitor's address (Fly-Client-IPon Fly.io,X-Real-IPfrom Nginx):Set it only if every request crosses that proxy: a visitor who reaches LibreFolio directly could write the header.
-
Otherwise it is the address the server (uvicorn) sees. uvicorn takes the visitor's address from the proxy's
X-Forwarded-Forheader only when the proxy's address is listed inFORWARDED_ALLOW_IPS(127.0.0.1when not set). List your proxy's addresses or networks there, in the.envfile:Never
*: uvicorn would take the first address of the header, which the visitor can write. -
An untrusted proxy on a local address, such as a proxy container in front of the Docker image, the usual setup: a visitor cannot use up the count of Forgot Password?, Send the link again and the registrations for everyone. The limits per username or email address, per account and per mailbox, and the hourly limit of the instance, still count. The log warns once per server process, and the security checks report it as a warning of
platform.client_address(The Visitor's Address). - An untrusted proxy on a public address, such as a CDN: the first
LIBREFOLIO_SIGNUP_EMAILS_PER_ADDRESSrequests of anyone use up the count through the proxy for everyone, for up to an hour. Tell LibreFolio about the proxy.
🚦 Limits on Activation and Password-Reset Emails
The emails that activate an account and the ones that reset a password are held back by two counters, the same for every way to ask for them. Each counts over the last 60 minutes, in the memory of each server process.
| Counter | Variable | Default | What it counts |
|---|---|---|---|
| Per address | LIBREFOLIO_SIGNUP_EMAILS_PER_ADDRESS |
20 an hour | The emails that leave for one client address (an IPv6 address by its /64), in one count: the registrations, every Send the link again with the right password and every Forgot Password? for an account that exists. Tries are not counted (diagram below). |
| Per instance | LIBREFOLIO_SMTP_MAX_PER_HOUR |
50 an hour | Every email the instance sends: activations, resets, invitations, notices. |
The per-address counter counts the emails that leave, not the tries:
flowchart TD
REQ["Registration, Send the link again,<br>Forgot Password?"] --> FULL{"Per-address<br>counter full?"}
FULL -->|"yes, registration"| HELD["Account created,<br>email held"]
FULL -->|"yes, the other two"| REJ["Refused at once,<br>before the password"]
FULL -->|"no"| NEXT["The other checks<br>(diagram below)"]
classDef no fill:#b71c1c,stroke:#7f0000,color:#ffffff
class REJ no
When the counter is not full, the place is spent only if the other checks pass:
flowchart TD
OTHER{"The other checks: password,<br>existing name, account, mailbox, instance"} -->|"refused"| FREE["No place spent"]
OTHER -->|"passes"| SEND["Spends a place, now"]
SEND --> SMTP{"Does the SMTP server<br>accept it?"}
SMTP -->|"no"| CNT["Stays counted:<br>it was tried"]
SMTP -->|"yes"| OK["Sent"]
classDef ok fill:#2e7d32,stroke:#1b5e20,color:#ffffff
class OK ok
These cost it nothing:
- a wrong password: it has its own limit;
- a request for a name no account has (for Forgot Password?, the answer is the same whether an account matches or not);
- a request refused by another limit, such as a Send the link again refused by the limit per account or per mailbox.
Three more limits stay as they are. They are not counters of activation emails, and they rarely matter for an account whose email was held: nothing has reached its mailbox yet.
| Limit | Applies to |
|---|---|
| The sign-in's limit on wrong passwords (Failed Sign-ins) | Send the link again, which shares it with the login page. |
| 3 emails an hour to the same mailbox | LibreFolio cannot be used to flood someone else's address. |
| 1 email every 5 minutes, and 3 an hour, for the same account | Send the link again. |
How long to wait. The answer says how many seconds to wait, and that time is exact: the longest of the waits of the counters that held the request back. The same request made at that moment goes through, unless others from the same network used the place meanwhile: the answer then says the new time.
An example. An office with one internet address and a limit of 20.
| Time | What happens |
|---|---|
| 9:00 – 9:40 | Twenty colleagues register: their twenty emails leave. |
| 9:45 | The twenty-first, Mario, registers. His account is created, but his email is held: the page tells him to try again in about 15 minutes, the time until the 9:00 email leaves the count at 10:00. |
| 9:46 | Mario signs in and asks for the link again: the same counter refuses him, for 14 minutes. |
| 10:00 | He asks again with username and password: the link leaves. |
The per-address counter is shared on purpose, with a consequence to know: when a network has used up its count with registrations, Forgot Password? from that network waits too, until a place frees.
For a network where many people sign up together, such as a school or an office, raise LIBREFOLIO_SIGNUP_EMAILS_PER_ADDRESS in the .env file.
Restart LibreFolio. With Docker Compose, run docker compose up -d.
✅ Email Verification
With Require Email Verification on, a new account cannot sign in until its owner confirms the address with a link that LibreFolio emails to the account.
Where: the switch is in Settings › Administration › Global Settings, Security category (Global Settings). It is off by default.
The registration:
flowchart TD
REG["Registration,<br>with an invitation too"] --> SW{"Require Email<br>Verification on?"}
SW -->|"no"| ACTIVE["Active account"]
SW -->|"yes"| CAN{"Can an email with<br>a link go out?"}
CAN -->|"no"| NOREG["No account created:<br>Sign-up is not possible right now…"]
CAN -->|"yes"| CREATE["Account created,<br>waiting"]
classDef no fill:#b71c1c,stroke:#7f0000,color:#ffffff
classDef ok fill:#2e7d32,stroke:#1b5e20,color:#ffffff
class NOREG no
class ACTIVE ok
Then the verification email:
---
config:
layout: elk
---
flowchart TD
CREATE["Account created, waiting"] --> LIM{"Per-address counter or<br>hourly limit of the instance full?"}
LIM -->|"yes"| HELD["Page: Try again in<br>about N minutes"]
LIM -->|"no"| TEXT["Page: Account created.<br>We are sending you…"]
TEXT --> BOX{"After the answer:<br>mailbox 3 an hour, SMTP error,<br>email broken?"}
BOX -->|"held"| LOG["Only in the log:<br>not sent"]
BOX -->|"restart"| NOLINE["No email,<br>no line"]
BOX -->|"leaves"| MAIL["Email with the link:<br>24 hours, once"]
classDef ok fill:#2e7d32,stroke:#1b5e20,color:#ffffff
class MAIL ok
Finally the click on the link:
flowchart TD
MAIL["Link in the email"] --> OPEN["Page with the button<br>Confirm my email address"]
OPEN -->|"only opened, no click"| NOTHING["Nothing:<br>the link stays valid"]
OPEN -->|"click"| DONE["Active account: login<br>page, with a confirmation"]
classDef ok fill:#2e7d32,stroke:#1b5e20,color:#ffffff
class DONE ok
Who waits: every account created from the registration page while the switch is on, the ones opened with an invitation included.
They never wait:
- the first account of a new instance, its administrator;
- the administrator LibreFolio creates from
LIBREFOLIO_ADMIN_EMAIL, activated by its setup link; - the accounts created with
user createon the command line; - the accounts that already exist.
The texts of the login page right after the registration:
| Case | Text |
|---|---|
| The email can leave | Account created. We are sending you an email with a link to activate it: open it within 24 hours, then sign in. No email after a few minutes? Check the spam folder, then sign in with your username and password: you will be offered a new link. |
The client address already had the emails of LIBREFOLIO_SIGNUP_EMAILS_PER_ADDRESS registrations (20 by default) in the last hour, or the hourly limit of the instance is spent |
Account created, but the activation email could not leave now. Try again in about N minutes: sign in with your username and password, and you will be offered a new link. |
- N is exact: the time until both counters admit a new email (Limits on Activation and Password-Reset Emails).
- Behind a reverse proxy LibreFolio does not trust, on a local address (the usual Docker setup), nothing is counted per address, so the second text never shows (Forgotten Passwords).
- We are sending you an email means that the email is queued, not that it was delivered: it leaves after the answer, and it can still not go (Limits of the Verification Emails).
The email, Confirm your email address, is in the instance's Default Language: a new account has no language of its own yet.
Its link starts with LIBREFOLIO_PUBLIC_URL (Emails with a Link).
🔍 Why a click is needed
The mail filters that scan links, such as Microsoft Defender Safe Links, open the links of a message in a browser that runs scripts: if opening were enough, the filter would activate the account in place of its owner. Such an opening spends nothing; the link stays valid for its owner. Someone who opens a link without having signed up has only to close the page.
Until the address is confirmed, the account cannot sign in, but it can ask for a new link:
flowchart TD
LOGIN["Sign-in with username<br>and password"] --> PW{"Password?"}
PW -->|"wrong"| REF["The usual sign-in refusal:<br>nobody learns more"]
PW -->|"right"| MSG["Address not verified yet:<br>Send the link again offered"]
classDef no fill:#b71c1c,stroke:#7f0000,color:#ffffff
class REF no
Send the link again, the first checks:
---
config:
layout: elk
---
flowchart TD
RS["Send the link again:<br>username and password"] --> L1{"Per-address<br>counter full?"}
L1 -->|"yes"| W["Refused: the page says<br>in how many minutes to retry"]
L1 -->|"no"| L2{"Wrong-password<br>limit reached?"}
L2 -->|"yes"| W
L2 -->|"no"| PW2{"Right password?"}
PW2 -->|"no"| REF["The usual<br>sign-in refusal"]
PW2 -->|"yes"| GO["Checks on the account<br>(diagram below)"]
classDef no fill:#b71c1c,stroke:#7f0000,color:#ffffff
class W,REF no
With the right password, the checks on the account:
---
config:
layout: elk
---
flowchart TD
GO["Right password"] --> L3{"Per account: 1 every 5 minutes<br>and 3 an hour past?"}
L3 -->|"no"| L4{"Mailbox: 3 an hour<br>past?"}
L4 -->|"no"| L5{"Hourly limit of<br>the instance spent?"}
L3 -->|"yes"| W["Refused: the page says<br>in how many minutes to retry"]
L4 -->|"yes"| W
L5 -->|"yes"| W
L5 -->|"no"| L6{"Link expired and<br>no free place?"}
L6 -->|"yes"| ASK["The owner is told<br>to ask you"]
L6 -->|"no"| NEW["New link: the earlier ones<br>stop working"]
classDef no fill:#b71c1c,stroke:#7f0000,color:#ffffff
classDef ok fill:#2e7d32,stroke:#1b5e20,color:#ffffff
class W,ASK no
class NEW ok
What the person sees, step by step: If LibreFolio Asks You to Confirm Your Email in Getting Started.
🔀 Turning It On and Off
---
config:
layout: elk
---
flowchart TD
OFF["Off"] -->|"turn on: only if an email<br>with a link can go out"| ON["On"]
ON -->|"turn off: always works"| OFF
ON -->|"email stops working"| BROKEN["On, no email leaves:<br>nobody can sign up"]
BROKEN -->|"fix email"| ON
BROKEN -->|"turn off"| OFF
«An email with a link can go out» = email Ready (Settings › Administration › Email) and a usable LIBREFOLIO_PUBLIC_URL (Emails with a Link).
| Step | What LibreFolio says |
|---|---|
| Turn on, but no email with a link can go out | The switch is greyed out, with the hint: Needs an email with a link to go out: set up SMTP and LIBREFOLIO_PUBLIC_URL first (Settings › Administration › Email). |
| That changes between opening the tab and saving | The save is refused and nothing of it is stored: Email verification needs an email with a link to go out, and none can go now: check Settings › Administration › Email. |
| On: saving the other settings | Always works, even when email has stopped working since. |
| Turn off | The accounts already waiting keep waiting: their links still work, and so does Send the link again. To let one in at once, activate it (Waiting Accounts). |
| Email stops working while it is on (the server or a variable breaks) | Nobody can sign up any more, not even with an invitation, which stays valid; no account is created. The registration page says: Sign-up is not possible right now: this instance cannot send the verification email. Try again later, or ask its administrator. Only the first account of a new instance is let through. Send the link again fails the same way. Fix email (When It Does Not Work) or turn the switch off. |
⏳ Waiting Accounts
Towards Active:
flowchart TD
W["Waiting, link valid<br>(place taken)"] -->|"click on Confirm"| A["Active"]
W -->|"Reactivate, or user activate"| A
W -->|"24 hours: the link expires"| E["Waiting, link expired<br>(place free)"]
E -->|"Send the link again"| W
E -->|"Reactivate, or user activate"| A
classDef ok fill:#2e7d32,stroke:#1b5e20,color:#ffffff
class A ok
To turn it away:
flowchart TD
W["Waiting, link valid<br>(place taken)"] -->|"Delete"| D["Deleted"]
E["Waiting, link expired<br>(place free)"] -->|"Delete"| D
W -->|"user deactivate, or<br>PATCH is_active false"| X["Deactivated:<br>links off, place free"]
E -->|"user deactivate, or<br>PATCH is_active false"| X
Where: in Settings › Administration › Users, a waiting account shows the badge Waiting for verification, not Deactivated, even once its link has expired. Hover over the badge, or open the row, for the hint: the owner has not opened the link yet, signing in offers a new one, and Reactivate lets the account in at once.
| Step | Facts the diagram does not say |
|---|---|
The place of the user limit (LIBREFOLIO_MAX_USERS) |
Taken as by an open invitation. The place is free again when the last link sent expires, 24 hours later; on a full instance, Send the link again tells the owner to ask you. |
Reactivate (Accounts Waiting for Their Email), or user activate on the command line |
Lets the account in without the email: it can sign in at once, and the links already sent stop working. While the link is valid the place is already counted, so Reactivate works even on a full instance and user activate prints no limit warning. Once the link has expired, a free place is needed, as for any deactivated account. |
| Delete (Delete an Account) | To turn it away. The Users tab itself offers no Deactivate for an account that is not active: there, Delete is the way. |
user deactivate on the command line, or the administrator API with is_active: false |
To turn it away. Deactivated, it stops waiting: its links stop working, its place is free, its row reads Deactivated from then on, and signing in tells the owner that the account is disabled. |
The administrator API endpoint:
📏 Limits of the Verification Emails
The checks of Send the link again are in the diagram of Email Verification; here the numbers, and what whoever passes them sees.
| Limit | Past it |
|---|---|
LIBREFOLIO_SIGNUP_EMAILS_PER_ADDRESS emails an hour (20 by default) from the same address, counting the emails that leave: the registrations, Send the link again with the right password and Forgot Password? for an account that exists. An IPv6 address counts by its /64. |
The next new accounts are still created and wait, but their emails do not leave: the login page says so right after the registration, with how long to wait; the owners ask for the link again from the login page once that time has passed. Send the link again is refused for the same time. |
| The sign-in's own limit on wrong passwords, shared with the login page: 10 every 15 minutes for the same username or email address, 50 from the same address (Failed Sign-ins) | Refused before the password is checked: the page says in how many minutes to try again. The right password clears the failures of what was typed. |
| 1 email every 5 minutes, and 3 an hour, for the same account, the email of the registration included | Refused: the page says in how many minutes to try again. |
| 3 emails an hour to the same mailbox, whatever account they are for and however its address is written (Forgotten Passwords): the email of a registration and the links sent again alike, and only the emails that left | Send the link again is refused: the page says in how many minutes to try again. After a registration, the account is created and waits, but no email leaves, and nothing tells the owner: the page shows its usual text, which already says what to do (check the spam folder, then sign in to get a new link). |
The hourly limit of the instance, LIBREFOLIO_SMTP_MAX_PER_HOUR |
Refused until an email fits again. A registration made while it is spent is held like one past the limit of its address. |
| A free place, once the account's link has expired | Refused: the owner is told to ask you. |
What stays invisible after a registration. None of these reaches the page:
- the mailbox limit of 3 verification emails an hour;
- the hourly limit of the instance;
- an SMTP error;
- email or
LIBREFOLIO_PUBLIC_URLthat stopped working meanwhile; - a restart.
Only the log says it (What the Log Says):
A restart before the email goes out leaves no line at all. The account stays waiting with its email held, and Send the link again recovers it: that is why the text of the page tells the person what to do when nothing arrives.
🔍 Why the mailbox limit is not checked before the answer
It is deliberate. A registration that answered differently when the mailbox had just received emails would tell anyone who signs up with someone else's address whether that mailbox is receiving them.
Besides:
- a link whose email did not go out counts neither for the account nor for the mailbox;
- if the account stops waiting in the meantime (address confirmed, or an administrator activated or deactivated it), no new link is sent;
- the limits per address and per mailbox are kept in the memory of each server process (each has its own count; a restart forgets them), and behind a reverse proxy the address that counts follows the rules of Forgotten Passwords.
🔔 Email Address Changes
When the email address of an account has changed, in Profile, LibreFolio writes two short emails, in the account's language: a notice to the address the account had before, and a confirmation to the new address, which is now the account's.
---
config:
layout: elk
---
flowchart TD
CH["Email address change<br>in Profile"] --> OK["The change goes through:<br>the answer never waits for the email"]
OK --> CASE{"Only the capitals of the<br>letters A to Z changed?"}
CASE -->|"yes: not a change"| SKIP["No notice"]
CASE -->|"no"| LIM{"3 changes an hour<br>for the account past?"}
LIM -->|"yes"| SKIP
LIM -->|"no"| EN{"Email on?"}
EN -->|"no"| LOG["Nothing: an information line<br>in the log, not a warning"]
EN -->|"yes"| SEND["Notice to the old address,<br>in the account's language"]
SEND --> NEW["Confirmation to the new address,<br>in the account's language"]
classDef ok fill:#2e7d32,stroke:#1b5e20,color:#ffffff
class SEND,NEW ok
| The notice and the confirmation | |
|---|---|
| Recipients | The notice to the old address, then the confirmation to the new one. Each goes on its own: if one cannot leave, the other still does, and neither undoes the change. |
| What they do not say | The notice shows nothing of the new address, not even the domain; the confirmation nothing of the old one. Neither has the username: both open with a plain «Hello,» (Security Notes). |
| What the notice says | That the address changed. If the owner did not make the change, someone may be using their account: they must change the password at once if they still can, and tell you. No link. |
| What the confirmation says | That this address is now the account's: it signs in with it and gets its emails there. Whoever has no account on the instance is told that someone typed the address by mistake, and to tell you. No link. |
| Instance name | The host of LIBREFOLIO_PUBLIC_URL, with its port if it has one, or «LibreFolio» when the variable is not set or cannot be used: with no link, the notice does not need it. |
| Hourly limit | Counts like any email. |
| 3 an hour per account and per mailbox | 3 changes with emails an hour per account, and 3 emails an hour per mailbox, however its address is written (Forgotten Passwords). A mailbox past its limit gets nothing, the other address still gets its email. Without these limits, an account could point its email at any address and change it again, to make your instance write there. |
| Capitals | Anna@example.com for anna@example.com is no change of address: no email goes. Accented letters count as different: Émile@example.com for émile@example.com is a change, with its notice. |
🔗 Related
- 📄 Email — Where the Configuration Lives, The Variables, Examples, …
- 📄 Email: When It Does Not Work — When It Does Not Work, Security Notes