Tauri sends outgoing mail through a small SMTP client, mail, used by the self-service pages (password, domain and deletion links) and by the maintenance report rapport. All of them use the SMTP settings stored in @:/Elysee/config. There is no incoming mail server.
Tauri envoie le courrier sortant par un petit client SMTP, mail, qu'emploient les pages de libre-service (liens de mot de passe, de domaine et de suppression) et le rapport de maintenance rapport. Tous utilisent les réglages SMTP stockés dans @:/Elysee/config. Il n'y a pas de serveur de courrier entrant.
Without a working relay, no hosting customer receives a link. Test it after every installation: mail you@example.com test test.
Sans relais en état de marche, aucun client hébergé ne reçoit de lien. Testez-le après chaque installation : mail vous@exemple.fr essai essai.
1. Configuring SMTPConfigurer le SMTP
The relay settings are in the @:/Elysee/config table, section smtp. Set them with sql; the lines exist by default with example values:
Les réglages du relais sont dans la table @:/Elysee/config, section smtp. Définissez-les avec sql ; les lignes existent par défaut avec des valeurs d'exemple :
sql "UPDATE @:/Elysee/config/ SET valeur='smtp.example.net:587' WHERE section='smtp' AND clef='server'"
sql "UPDATE @:/Elysee/config/ SET valeur='admin@example.net' WHERE section='smtp' AND clef='from'"
sql "UPDATE @:/Elysee/config/ SET valeur='ops@example.net' WHERE section='smtp' AND clef='to'"
sql "UPDATE @:/Elysee/config/ SET valeur='admin@example.net' WHERE section='smtp' AND clef='user'"
sql "UPDATE @:/Elysee/config/ SET valeur='…' WHERE section='smtp' AND clef='password'"
| KeyClé | MeaningSignification |
|---|---|
server | SMTP relay, host or host:port (25 by default; :587 for a submission relay).Relais SMTP, hôte ou hôte:port (25 par défaut ; :587 pour un relais de soumission). |
from | Sender address. It must be accepted by the relay (many require the authenticated account or a verified sender).Adresse d'expédition. Elle doit être acceptée par le relais (beaucoup exigent le compte authentifié ou un expéditeur vérifié). |
to | Default recipient — of the reports, for instance.Destinataire par défaut — des rapports, par exemple. |
user, password | SMTP AUTH credentials (AUTH PLAIN). Leave empty to disable authentication.Identifiants SMTP AUTH (AUTH PLAIN). Laisser vides pour désactiver l'authentification. |
Never display the password value on a shared screen or in a log: to check the settings, list the keys only. N'affichez jamais la valeur du mot de passe sur un écran partagé ou dans un journal : pour contrôler les réglages, ne listez que les clés.
2. Sending a messageEnvoyer un courriel
mail "Subject" "Body" # to the configured recipient (smtp.to)# au destinataire configuré (smtp.to)
mail user@example.com "Subject" "Body" # to a given address# à une adresse donnée
mail user@example.com "Report" @:/tmp/rapport.txt # body read from a file# corps lu dans un fichier
Full form, with an explicit relay and sender (the configuration is ignored): Forme complète, avec relais et expéditeur explicites (la configuration est ignorée) :
mail smtp.example.net:587 from@example.net user@example.com "Subject" "Body"
A leading @ on the message argument reads the body from that file. The client retries up to 4 times, one second apart, before giving up.
Un @ en tête de l'argument message lit le corps dans ce fichier. Le client réessaie jusqu'à 4 fois, à une seconde d'intervalle, avant d'abandonner.
3. Maintenance reportRapport de maintenance
rapport gathers the system state in @:/tmp/rapport.txt and mails it: uptime, CPU, memory and kernel heap trend, disks and file-system checks, network, response times, recent errors, PHP bytecode cache — with explicit alerts when something needs attention.
rapport rassemble l'état du système dans @:/tmp/rapport.txt et l'envoie : uptime, CPU, mémoire et tendance du tas noyau, disques et contrôles du système de fichiers, réseau, temps de réponse, erreurs récentes, cache de bytecode PHP — avec des alertes explicites quand quelque chose demande attention.
rapport # to the configured recipient (smtp.to)# au destinataire configuré (smtp.to)
rapport ops@example.com # to a given address# à une adresse donnée
A cerbere task (rapport_2h) runs it every 2 hours, at minute 0.
Une tâche cerbere (rapport_2h) le lance toutes les 2 heures, à la minute 0.
4. SecuritySécurité
- When the relay offers STARTTLS, the session switches to TLS 1.3 and the relay's certificate is validated (chain up to a trusted root, and host name). An invalid certificate stops the sending: better no mail than credentials handed to an impostor.Quand le relais propose STARTTLS, la session passe en TLS 1.3 et le certificat du relais est validé (chaîne jusqu'à une racine de confiance, et nom d'hôte). Un certificat invalide arrête l'envoi : mieux vaut pas de courriel que des identifiants livrés à un imposteur.
- STARTTLS remains opportunistic: if the relay does not announce it, the session — AUTH credentials included — goes in clear. Use a relay that requires STARTTLS, typically on port 587.STARTTLS reste opportuniste : si le relais ne l'annonce pas, la session — identifiants AUTH compris — part en clair. Utilisez un relais qui impose STARTTLS, en général sur le port 587.