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 发送邮件 block at the top of the 域名 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 每个域名各有自己的发送方式:直接从此服务器发出、通过使用该域名专属账户的投递服务发出,或通过该域名自己的服务器(VPS)发出。
Choose a way
Until a way is connected, the list 该域名邮件的发送方式 offers three: 直接从此服务器发送, 通过投递服务 and 通过您自己的服务器(VPS). After you connect one, the list gives place to the state of the connected way.
Straight from this server
The block says 邮件从此服务器自己的地址发出。只有在 25 端口对外开放、该地址有指向邮件服务器名称的反向解析记录、且该地址不在任何黑名单中时,收件方才会信任这些邮件。
Press 检查此服务器的地址. The answer lists:
| Check | What it tells |
|---|---|
| 出站 25 端口 | Whether port 25 is open outwards |
| … 指向该地址 | Whether the name's A record leads to the address; the ellipsis stands for the name of the server |
| … 的反向解析记录 | Whether the reverse record of the address names the mail server; the ellipsis stands for the address |
| … 黑名单 | 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 — 正常, 开放, 关闭, 未设置, 指向其他位置, 未列入, 已列入, 失败 or 无法检查 — and a dot: green for a good answer, red for a bad one, grey for 无法检查. When the reverse record is missing or names something else, the check adds the request 请将以下内容发送给该地址的托管服务商: with a ready text and a copy button. The text reads 您好!请将 … 的反向 DNS(PTR)记录设置为 …。这是一台邮件服务器,邮件将以此名称发出。谢谢。 (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 无法获知此服务器的公网地址,因此未检查其反向解析记录。 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 无法检查.
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 投递服务. The list names Mailjet and Brevo, marked 推荐; above it stands the line 请先自行在该服务中注册,然后在这里填入它的密钥:我们会在它那里注册 …,并在它确认该域名后开启发送。它要求的记录,在此安装可写入该域名区域的位置(Cloudflare、Namecheap)会从这里设置;在其他位置,请按下表填写。 (the ellipsis stands for the domain). Under the list Qubix shows how many messages a day or a month the service gives free — 每天免费 … 封 and 每月免费 … 封, the number stands in place of the ellipsis — and a link to register.
- Register with the service yourself — the link 注册 … (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 密钥 and the 秘密密钥, for Brevo the SMTP 登录名, the SMTP 密钥 and the API 密钥(设置 → SMTP & API → API 密钥).
- Press 连接. Under the fields stands the line 每个域名都需要有自己的账户:一个账户不能同时服务于两个域名。
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 该域名的邮件将从您自己 VPS 的地址、以其名称发出。您会获得一条用于 VPS 的命令:它会安装邮件中继,并检查邮件能否从该 VPS 发出。
- Enter the VPS 地址(IPv4) and the 服务器名称 (by default
mail.followed by the domain; the name must lie inside the domain). - Press 获取命令. The command appears with a copy button.
- Run the command on the VPS as root; above the command stands 请以 root 身份在 VPS 上运行: The command installs the mail relay and checks that mail can leave the VPS. Under it stands the line 该命令只能使用一次,有效期为 24 小时。然后点击「检查」。 When the command is no longer on the screen, the block says 该命令只显示一次。如果还需要,请重新获取。, and once the VPS has taken its settings, VPS 已取走其配置。如果安装没有完成,请重新获取命令。
- Press 检查.
Under the fields stands the line VPS 需要运行 Debian 或 Ubuntu,托管服务商处已对外开放 25 端口,并且其地址有指向该服务器名称的反向解析记录——下方的检查会给出可直接发给托管服务商的请求。 After the command has run, the block says what the VPS reported about port 25 out of it: VPS 出站 25 端口:… (the status stands in place of the ellipsis). Once the checks have run, the block lists them: port 25 out (出站 25 端口), the sign-in of this server to the VPS (登录 VPS), where the VPS name leads (… 指向该地址), and the reverse record (… 的反向解析记录). 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 |
|---|---|
| 正在设置通过 … 发送 | The domain waits for the service or the VPS to confirm |
| 该域名的邮件通过 … 发出 | The way works |
| 该域名的邮件在等待:新命令尚未在 … 上运行 | You asked for a new command, and until it is run on the VPS the domain's mail waits |
| … 已停止接收该域名的邮件 | Messages wait in the hold queue |
| 正在断开 … | The route is being taken off the domain; under the line stands 此安装会自行重试;您也可以再次点击「断开连接」。 |
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 在此之前,该域名的邮件直接从此服务器发出。 A way that is switched on but that the mail server does not use adds the line 邮件服务器没有让该域名的邮件走此途径。请点击「检查」以重新接入。
Under the line, a note says what the way is still waiting for. For a delivery service:
| Note | Comment |
|---|---|
| 该服务尚未确认该域名归您所有。 | The service has not yet confirmed that the domain is yours |
| 该服务尚未找到该域名的 DKIM 签名。 | The DKIM signature is not found yet |
| 该服务尚未在该域名的 SPF 记录中找到自己。 | The SPF record does not name the service yet |
| 该域名已在该服务中注册;其记录正在 DNS 中传播。 | The domain is registered; its records are spreading through DNS |
| 该服务不接受此密钥。请在该服务的控制面板中核对密钥,然后重新连接。 | Check the key in the service's panel and connect again |
For a VPS:
| Note | Comment |
|---|---|
| 请在 VPS 上运行该命令。 | The command is yet to run on the VPS |
| 邮件无法从 VPS 发出:托管服务商关闭了 25 端口。请联系托管服务商将其开放。 | The hoster keeps port 25 closed |
| VPS 无法检查出站 25 端口。请重新获取命令,并在 VPS 上再次运行。 | Get a new command and run it again |
| VPS 在 … 端口上没有响应,或不允许此服务器登录。 | The ellipsis stands for the port number |
| … 尚未指向 …。 | The ellipses stand for the name and the address of the VPS |
| … 的反向解析记录尚未指向 …。 | The ellipses stand for the address and the name |
| 该域名的 SPF 记录中尚未包含该 VPS。 | The SPF record of the domain lacks the VPS |
| 该域名有多条 SPF 记录,收件方不会信任其中任何一条。请只保留一条。 | Receivers trust none of several SPF records; keep one |
| 此安装的邮件服务器尚不知道该 VPS 的指纹:请更新邮件功能。 | The other checks have passed; the way waits until the mail part of this installation is updated |
| 名称 … 已指向其他位置,因此该途径的 A 记录无法放在那里。请从该域名的 DNS 中删除那条记录,或为 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: 登录名:… and 密钥以 … 结尾 (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: 有 … 封邮件在等待:自 … 起,该途径一直拒收这些邮件。每小时会重试其中一封。 The ellipses stand for the number of messages and the time since which the way turns them back.
The buttons of the connected way:
- 检查 asks the service or the VPS again.
- 新命令 (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: 新命令会为 VPS 生成新的密码和证书。在您于 VPS 上运行它之前,该域名的邮件会一直等待。 While the way is still being set up, the question reads 新命令会为 VPS 生成新的密码和证书;先前发放的那一份将失效。
- 断开连接 returns the domain to sending straight from this server, after the question 要断开 … 的发送途径吗?该域名的邮件将直接从此服务器发出。 The ellipsis stands for the domain.
When taking the route off falls short at once, the block names the step that fell short:
- 该域名的邮件仍走此途径:未能将该途径从该域名上移除。
- 该途径的中继条目仍保留在邮件服务器上。
- 该途径的记录尚未从该域名的 DNS 中删除: followed by the record and the reason
- 未能从此安装的存储中删除该途径的记录。
When the records of a connected way could not be written, the line reads 该途径的记录未能写入该域名的 DNS: followed by the record and the reason.