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 Sending mail block at the top of the Domains 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 Each domain sends 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).
Choose a way
Until a way is connected, the list How the domain's mail leaves offers three: Straight from this server, Through a delivery service and Through your own server (VPS). After you connect one, the list gives place to the state of the connected way.
Straight from this server
The block says Mail leaves from this server's own address. Receivers trust it only when port 25 is open outwards, the address has a reverse record naming the mail server, and the address is on no blocklist.
Press Check this server's address. The answer lists:
| Check | What it tells |
|---|---|
| Port 25 out | Whether port 25 is open outwards |
| … leads to the address | Whether the name's A record leads to the address; the ellipsis stands for the name of the server |
| Reverse record of … | Whether the reverse record of the address names the mail server; the ellipsis stands for the address |
| … blocklist | 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 — in order, open, closed, not there, leads elsewhere, not listed, listed, failed or could not check — and a dot: green for a good answer, red for a bad one, grey for could not check. When the reverse record is missing or names something else, the check adds the request Send this to the hoster of the address: with a ready text and a copy button. The text reads Hello! Please set the reverse DNS (PTR) record of … to …. It is a mail server, and mail leaves it under this name. Thank you. (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 The public address of this server could not be learnt, so its reverse record was not checked. 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 could not check.
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 Delivery service. The list names Mailjet and Brevo, marked recommended; above it stands the line Register with the service yourself, then enter its keys here: we register … with it and switch sending on once it confirms the domain. The records it asks for are published from here where this installation writes the domain's zone (Cloudflare, Namecheap); elsewhere enter them from the table below. (the ellipsis stands for the domain). Under the list Qubix shows how many messages a day or a month the service gives free — … messages a day free and … messages a month free, the number stands in place of the ellipsis — and a link to register.
- Register with the service yourself — the link Register with … (the name of the service stands in place of the ellipsis) is under the list — and take its keys.
- Enter them: for Mailjet the API key and the Secret key, for Brevo the SMTP login, the SMTP key and the API key (Settings → SMTP & API → API keys).
- Press Connect. Under the fields stands the line Every domain needs an account of its own: one account cannot serve two domains.
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 Mail of the domain leaves from the address of your own VPS, under its name. You get a command for the VPS: it installs the mail relay and checks that mail can leave the VPS.
- Enter the VPS address (IPv4) and the Server name (by default
mail.followed by the domain; the name must lie inside the domain). - Press Get the command. The command appears with a copy button.
- Run the command on the VPS as root; above the command stands Run this on the VPS as root: The command installs the mail relay and checks that mail can leave the VPS. Under it stands the line The command works once and for 24 hours. Then press «Check». When the command is no longer on the screen, the block says The command is shown only once. Get a new one if you need it., and once the VPS has taken its settings, The VPS has taken its configuration. If it did not finish, get a new command.
- Press Check.
Under the fields stands the line The VPS needs Debian or Ubuntu, port 25 open outwards at the hoster, and a reverse record of its address naming the server — the check below gives a ready request for the hoster. After the command has run, the block says what the VPS reported about port 25 out of it: Port 25 out of the VPS: … (the status stands in place of the ellipsis). Once the checks have run, the block lists them: port 25 out (Port 25 out), the sign-in of this server to the VPS (Sign-in to the VPS), where the VPS name leads (… leads to the address), and the reverse record (Reverse record of …). 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 |
|---|---|
| Sending is being set up through … | The domain waits for the service or the VPS to confirm |
| Mail of the domain leaves through … | The way works |
| The domain's mail waits: the new command has not been run on … yet | You asked for a new command, and until it is run on the VPS the domain's mail waits |
| … stopped taking the domain's mail | Messages wait in the hold queue |
| … is being disconnected | The route is being taken off the domain; under the line stands This installation keeps trying by itself; you can also press Disconnect again. |
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 Until then the domain's mail leaves straight from this server. A way that is switched on but that the mail server does not use adds the line The mail server does not route the domain's mail through this path. Press «Check» to attach it again.
Under the line, a note says what the way is still waiting for. For a delivery service:
| Note | Comment |
|---|---|
| The service has not confirmed yet that the domain is yours. | The service has not yet confirmed that the domain is yours |
| The service has not found the domain's DKIM signature yet. | The DKIM signature is not found yet |
| The service has not found itself in the domain's SPF record yet. | The SPF record does not name the service yet |
| The domain is registered with the service; its records are spreading through DNS. | The domain is registered; its records are spreading through DNS |
| The service does not accept the key. Check it in the service's panel and connect again. | Check the key in the service's panel and connect again |
For a VPS:
| Note | Comment |
|---|---|
| Run the command on the VPS. | The command is yet to run on the VPS |
| Mail cannot leave the VPS: the hoster keeps port 25 closed. Ask the hoster to open it. | The hoster keeps port 25 closed |
| The VPS could not check port 25 out. Get a new command and run it on the VPS again. | Get a new command and run it again |
| The VPS does not answer on port … or does not let this server sign in. | The ellipsis stands for the port number |
| … does not lead to … yet. | The ellipses stand for the name and the address of the VPS |
| The reverse record of … does not name … yet. | The ellipses stand for the address and the name |
| The domain's SPF record does not name the VPS yet. | The SPF record of the domain lacks the VPS |
| The domain has several SPF records, and receivers trust none of them. Keep one. | Receivers trust none of several SPF records; keep one |
| The mail part of this installation has to be updated before the VPS can be used. | The other checks have passed; the way waits until the mail part of this installation is updated |
| The name … already leads elsewhere, so the route's A record cannot go there. Remove that record from the domain's DNS or give the VPS another name. | 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: Login: … and key ends with … (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 wait: the path has been turning them back since …. One is tried again every hour. The ellipses stand for the number of messages and the time since which the way turns them back.
The buttons of the connected way:
- Check asks the service or the VPS again.
- New command (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: A new command gives the VPS a new password and certificate. Until you run it on the VPS, the domain's mail waits. While the way is still being set up, the question reads A new command gives the VPS a new password and certificate; the one issued before stops working.
- Disconnect returns the domain to sending straight from this server, after the question Disconnect the sending path of …? The domain's mail will leave straight from this server. The ellipsis stands for the domain.
When taking the route off falls short at once, the block names the step that fell short:
- The domain's mail still goes this way: the route could not be taken off the domain.
- The route's relay entry is still on the mail server.
- The route's records are not out of the domain's DNS yet: followed by the record and the reason
- The route's record could not be removed from this installation's store.
When the records of a connected way could not be written, the line reads The path's records were not written to the domain's DNS: followed by the record and the reason.