How a domain's mail leaves
Each mail domain sends its mail its own way: straight from this server, through a delivery service with the domain's own account, or through the domain's own server (VPS). The choice is made in the Envoi du courrier block at the top of the Domaines pane — see Mail domains — and is for an administrator. Until a way other than the direct one is switched on, the domain's mail leaves straight from this server. Under the title of the block stands the line Chaque domaine envoie à sa façon : directement depuis ce serveur, via un service de livraison avec le compte propre au domaine, ou via le serveur propre au domaine (VPS).
Choose a way
Until a way is connected, the list Comment le courrier du domaine est envoyé offers three: Directement depuis ce serveur, Via un service de livraison and Via votre propre serveur (VPS). After you connect one, the list gives place to the state of the connected way.
Straight from this server
The block says Le courrier part de l'adresse propre de ce serveur. Les destinataires ne lui font confiance que si le port 25 est ouvert vers l'extérieur, si l'adresse possède un enregistrement inverse nommant le serveur de courrier et si elle ne figure sur aucune liste de blocage.
Press Vérifier l'adresse de ce serveur. The answer lists:
| Check | What it tells |
|---|---|
| Port 25 sortant | Whether port 25 is open outwards |
| … pointe vers l'adresse | Whether the name's A record leads to the address; the ellipsis stands for the name of the server |
| Enregistrement inverse de … | Whether the reverse record of the address names the mail server; the ellipsis stands for the address |
| Liste de blocage … | Whether the address is listed; one line each for Spamhaus, SpamCop and Barracuda, the name of the list stands in place of the ellipsis |
Each line ends with a word — correct, ouvert, fermé, absent, pointe ailleurs, pas dans la liste, dans la liste, échec or vérification impossible — and a dot: green for a good answer, red for a bad one, grey for vérification impossible. When the reverse record is missing or names something else, the check adds the request Envoyez ceci à l'hébergeur de l'adresse : with a ready text and a copy button. The text reads Bonjour ! Merci de définir l'enregistrement DNS inverse (PTR) de … sur …. Il s'agit d'un serveur de courrier, et le courrier en part sous ce nom. Merci. (the ellipses stand for the address and the name of the server); if copying fails, the text can be selected and copied by hand. When the public address of the server stays unknown, a line says L'adresse publique de ce serveur n'a pas pu être déterminée ; son enregistrement inverse n'a donc pas été vérifié. SpamCop and Barracuda are asked without a key. Spamhaus answers reliably with the blocklist lookup key; without it the query goes to the public Spamhaus mirror, which refuses a query made through a public DNS server — then the Spamhaus line reads vérification impossible.
Through a delivery service
Mail leaves through a delivery service, with an account of the domain's own: one account serves one domain.
- Choose the Service de livraison. The list names Mailjet and Brevo, marked recommandé; above it stands the line Créez vous-même un compte auprès du service, puis saisissez ici ses clés : nous y enregistrons … et activons l'envoi dès qu'il confirme le domaine. Les enregistrements qu'il demande sont publiés depuis ici là où cette installation écrit dans la zone du domaine (Cloudflare, Namecheap) ; ailleurs, saisissez-les à partir du tableau ci-dessous. (the ellipsis stands for the domain). Under the list Qubix shows how many messages a day or a month the service gives free — … messages par jour gratuits and … messages par mois gratuits, the number stands in place of the ellipsis — and a link to register.
- Register with the service yourself — the link S'inscrire chez … (the name of the service stands in place of the ellipsis) is under the list — and take its keys.
- Enter them: for Mailjet the Clé API and the Clé secrète, for Brevo the Identifiant SMTP, the Clé SMTP and the Clé API (Paramètres → SMTP & API → Clés API).
- Press Connecter. Under the fields stands the line Chaque domaine a besoin de son propre compte : un même compte ne peut pas desservir deux domaines.
Qubix registers the domain with the service and switches sending on once the service confirms the domain. Where Qubix writes the domain's zone (Cloudflare, Namecheap), the records the service asks for are published from here; elsewhere you enter them from the records table in Mail domains.
Through your own server (VPS)
The block says Le courrier du domaine part de l'adresse de votre propre VPS, sous son nom. Vous obtenez une commande pour le VPS : elle installe le relais de messagerie et vérifie que le courrier peut quitter le VPS.
- Enter the Adresse du VPS (IPv4) and the Nom du serveur (by default
mail.followed by the domain; the name must lie inside the domain). - Press Obtenir la commande. The command appears with a copy button.
- Run the command on the VPS as root; above the command stands Exécutez ceci sur le VPS en tant que root : The command installs the mail relay and checks that mail can leave the VPS. Under it stands the line La commande fonctionne une seule fois et reste valable 24 heures. Cliquez ensuite sur « Vérifier ». When the command is no longer on the screen, the block says La commande n'est affichée qu'une seule fois. Obtenez-en une nouvelle si besoin., and once the VPS has taken its settings, Le VPS a récupéré sa configuration. Si l'installation n'est pas terminée, obtenez une nouvelle commande.
- Press Vérifier.
Under the fields stands the line Le VPS nécessite Debian ou Ubuntu, le port 25 ouvert vers l'extérieur chez l'hébergeur et un enregistrement inverse de son adresse nommant le serveur — la vérification ci-dessous fournit une demande prête à envoyer à l'hébergeur. After the command has run, the block says what the VPS reported about port 25 out of it: Port 25 sortant sur le VPS : … (the status stands in place of the ellipsis). Once the checks have run, the block lists them: port 25 out (Port 25 sortant), the sign-in of this server to the VPS (Authentification sur le VPS), where the VPS name leads (… pointe vers l'adresse), and the reverse record (Enregistrement inverse de …). While it is still being prepared, a line names what is yet to be done — see the table of notes below.
Connected: the states
The block says which state the connected way is in:
| Line | Meaning |
|---|---|
| L'envoi via … est en cours de configuration | The domain waits for the service or the VPS to confirm |
| Le courrier du domaine part via … | The way works |
| Le courrier du domaine est en attente : la nouvelle commande n'a pas encore été exécutée sur … | You asked for a new command, and until it is run on the VPS the domain's mail waits |
| … a cessé d'accepter le courrier du domaine | Messages wait in the hold queue |
| … est en cours de déconnexion | The route is being taken off the domain; under the line stands Cette installation continue d'essayer d'elle-même ; vous pouvez aussi cliquer de nouveau sur « Déconnecter ». |
In these lines the ellipsis stands for the name of the service, or for the name and the address of the VPS. While the way is being set up or has stopped taking the mail, under the line stands D'ici là, le courrier du domaine part directement de ce serveur. A way that is switched on but that the mail server does not use adds the line Le serveur de courrier n'achemine pas le courrier du domaine par cette voie. Cliquez sur « Vérifier » pour la reconnecter.
Under the line, a note says what the way is still waiting for. For a delivery service:
| Note | Comment |
|---|---|
| Le service n'a pas encore confirmé que le domaine vous appartient. | The service has not yet confirmed that the domain is yours |
| Le service n'a pas encore trouvé la signature DKIM du domaine. | The DKIM signature is not found yet |
| Le service n'a pas encore trouvé de mention de lui-même dans l'enregistrement SPF du domaine. | The SPF record does not name the service yet |
| Le domaine est enregistré auprès du service ; ses enregistrements se propagent dans le DNS. | The domain is registered; its records are spreading through DNS |
| Le service n'accepte pas la clé. Vérifiez-la dans le panneau du service, puis connectez-le de nouveau. | Check the key in the service's panel and connect again |
For a VPS:
| Note | Comment |
|---|---|
| Exécutez la commande sur le VPS. | The command is yet to run on the VPS |
| Le courrier ne peut pas quitter le VPS : l'hébergeur garde le port 25 fermé. Demandez à l'hébergeur de l'ouvrir. | The hoster keeps port 25 closed |
| Le VPS n'a pas pu vérifier le port 25 sortant. Obtenez une nouvelle commande et exécutez-la de nouveau sur le VPS. | Get a new command and run it again |
| Le VPS ne répond pas sur le port … ou n'autorise pas ce serveur à s'y connecter. | The ellipsis stands for the port number |
| … ne pointe pas encore vers …. | The ellipses stand for the name and the address of the VPS |
| L'enregistrement inverse de … ne nomme pas encore …. | The ellipses stand for the address and the name |
| L'enregistrement SPF du domaine ne nomme pas encore le VPS. | The SPF record of the domain lacks the VPS |
| Le domaine a plusieurs enregistrements SPF et les destinataires ne font confiance à aucun. Conservez-en un seul. | Receivers trust none of several SPF records; keep one |
| Le serveur de courrier de cette installation ne connaît pas encore l'empreinte du VPS : mettez à jour la pile de messagerie. | The other checks have passed; the way waits until the mail part of this installation is updated |
| Le nom … pointe déjà ailleurs ; l'enregistrement A de la voie d'envoi ne peut donc pas y figurer. Retirez cet enregistrement du DNS du domaine ou donnez un autre nom au VPS. | The ellipsis stands for the name; remove the other record or give the VPS another name |
For a service the block also shows the login and the end of the key: Identifiant de connexion : … and la clé se termine par … (the ellipsis stands for the login and for the last characters of the key).
If the chosen way turns the domain's mail back, the messages wait, and one of them is tried again every hour; the block says how many are waiting and since when: … messages sont en attente : la voie d'envoi les refuse depuis …. Une nouvelle tentative a lieu toutes les heures pour l'un d'eux. The ellipses stand for the number of messages and the time since which the way turns them back.
The buttons of the connected way:
- Vérifier asks the service or the VPS again.
- Nouvelle commande (VPS only) gives the VPS a new password and certificate; once the VPS has taken its settings, the button asks a question first, because until you run the new command on the VPS the domain's mail waits: Une nouvelle commande donne au VPS un nouveau mot de passe et un nouveau certificat. Tant que vous ne l'avez pas exécutée sur le VPS, le courrier du domaine reste en attente. While the way is still being set up, the question reads Une nouvelle commande donne au VPS un nouveau mot de passe et un nouveau certificat ; la commande délivrée auparavant cesse de fonctionner.
- Déconnecter returns the domain to sending straight from this server, after the question Déconnecter la voie d'envoi de … ? Le courrier du domaine partira directement de ce serveur. The ellipsis stands for the domain.
When taking the route off falls short at once, the block names the step that fell short:
- Le courrier du domaine passe toujours par cette voie : elle n'a pas pu être retirée du domaine.
- L'entrée de relais de la voie d'envoi figure toujours sur le serveur de courrier.
- Les enregistrements de la voie d'envoi n'ont pas encore été retirés du DNS du domaine : followed by the record and the reason
- L'enregistrement de la voie d'envoi n'a pas pu être supprimé du stockage de cette installation.
When the records of a connected way could not be written, the line reads Les enregistrements de la voie d'envoi n'ont pas été publiés dans le DNS du domaine : followed by the record and the reason.