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 Gửi thư block at the top of the Tên miền 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 Mỗi tên miền gửi thư theo cách riêng: trực tiếp từ máy chủ này, qua dịch vụ gửi thư bằng tài khoản riêng của tên miền, hoặc qua máy chủ riêng của tên miền (VPS).
Choose a way
Until a way is connected, the list Cách thư của tên miền được gửi đi offers three: Trực tiếp từ máy chủ này, Qua dịch vụ gửi thư and Qua máy chủ riêng của bạn (VPS). After you connect one, the list gives place to the state of the connected way.
Straight from this server
The block says Thư được gửi đi từ chính địa chỉ của máy chủ này. Bên nhận thư chỉ tin tưởng khi cổng 25 mở ra bên ngoài, địa chỉ có bản ghi ngược mang tên máy chủ thư, và địa chỉ không nằm trong danh sách chặn nào.
Press Kiểm tra địa chỉ của máy chủ này. The answer lists:
| Check | What it tells |
|---|---|
| Cổng 25 chiều đi ra | Whether port 25 is open outwards |
| … trỏ tới địa chỉ | Whether the name's A record leads to the address; the ellipsis stands for the name of the server |
| Bản ghi ngược của … | Whether the reverse record of the address names the mail server; the ellipsis stands for the address |
| Danh sách chặn … | 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 — ổn, mở, đóng, không có, trỏ sang nơi khác, không bị liệt kê, bị liệt kê, không thành công or không kiểm tra được — and a dot: green for a good answer, red for a bad one, grey for không kiểm tra được. When the reverse record is missing or names something else, the check adds the request Hãy gửi nội dung này cho nhà cung cấp hosting của địa chỉ: with a ready text and a copy button. The text reads Xin chào! Vui lòng đặt bản ghi DNS ngược (PTR) của địa chỉ … thành …. Đây là một máy chủ thư và thư được gửi đi từ máy chủ này dưới tên đó. Xin cảm ơn. (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 Không xác định được địa chỉ công khai của máy chủ này, nên chưa kiểm tra bản ghi ngược của địa chỉ đó. 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 không kiểm tra được.
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 Dịch vụ gửi thư. The list names Mailjet and Brevo, marked khuyên dùng; above it stands the line Hãy tự đăng ký với dịch vụ, sau đó nhập khóa của dịch vụ vào đây: chúng tôi sẽ đăng ký … với dịch vụ và bật gửi thư khi dịch vụ xác nhận tên miền. Các bản ghi mà dịch vụ yêu cầu sẽ được thiết lập từ đây ở những nơi bản cài đặt này ghi được vùng của tên miền (Cloudflare, Namecheap); ở nơi khác, hãy nhập chúng theo bảng bên dưới. (the ellipsis stands for the domain). Under the list Qubix shows how many messages a day or a month the service gives free — Miễn phí … thư mỗi ngày and Miễn phí … thư mỗi tháng, the number stands in place of the ellipsis — and a link to register.
- Register with the service yourself — the link Đăng ký tại … (the name of the service stands in place of the ellipsis) is under the list — and take its keys.
- Enter them: for Mailjet the Khóa API and the Khóa bí mật, for Brevo the Tên đăng nhập SMTP, the Khóa SMTP and the Khóa API (Cài đặt → SMTP & API → Khóa API).
- Press Kết nối. Under the fields stands the line Mỗi tên miền cần có tài khoản riêng: một tài khoản không thể phục vụ hai tên miền.
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 Thư của tên miền được gửi đi từ địa chỉ của chính VPS của bạn, dưới tên của VPS đó. Bạn sẽ nhận được một lệnh để chạy trên VPS: lệnh này cài đặt bộ chuyển tiếp thư và kiểm tra xem thư có thể rời khỏi VPS hay không.
- Enter the Địa chỉ VPS (IPv4) and the Tên máy chủ (by default
mail.followed by the domain; the name must lie inside the domain). - Press Lấy lệnh. The command appears with a copy button.
- Run the command on the VPS as root; above the command stands Chạy lệnh này trên VPS với quyền root: The command installs the mail relay and checks that mail can leave the VPS. Under it stands the line Lệnh chỉ dùng được một lần và có hiệu lực trong 24 giờ. Sau đó hãy nhấn «Kiểm tra». When the command is no longer on the screen, the block says Lệnh chỉ được hiển thị một lần. Nếu cần, hãy lấy lệnh mới., and once the VPS has taken its settings, VPS đã nhận cấu hình của mình. Nếu quá trình chưa hoàn tất, hãy lấy lệnh mới.
- Press Kiểm tra.
Under the fields stands the line VPS cần chạy Debian hoặc Ubuntu, cổng 25 được nhà cung cấp hosting mở ra bên ngoài, và bản ghi ngược của địa chỉ VPS mang tên máy chủ — phần kiểm tra bên dưới sẽ đưa ra sẵn yêu cầu để gửi cho nhà cung cấp hosting. After the command has run, the block says what the VPS reported about port 25 out of it: Cổng 25 chiều đi ra của VPS: … (the status stands in place of the ellipsis). Once the checks have run, the block lists them: port 25 out (Cổng 25 chiều đi ra), the sign-in of this server to the VPS (Đăng nhập vào VPS), where the VPS name leads (… trỏ tới địa chỉ), and the reverse record (Bản ghi ngược của …). 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 |
|---|---|
| Đang thiết lập gửi thư qua … | The domain waits for the service or the VPS to confirm |
| Thư của tên miền được gửi đi qua … | The way works |
| Thư của tên miền đang chờ: lệnh mới chưa được chạy trên … | You asked for a new command, and until it is run on the VPS the domain's mail waits |
| … đã ngừng nhận thư của tên miền | Messages wait in the hold queue |
| … đang được ngắt kết nối | The route is being taken off the domain; under the line stands Bản cài đặt này tự động thử lại; bạn cũng có thể nhấn Ngắt kết nối lần nữa. |
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 Cho đến lúc đó, thư của tên miền được gửi trực tiếp từ máy chủ này. A way that is switched on but that the mail server does not use adds the line Máy chủ thư không chuyển thư của tên miền qua đường gửi này. Hãy nhấn «Kiểm tra» để gắn lại đường gửi.
Under the line, a note says what the way is still waiting for. For a delivery service:
| Note | Comment |
|---|---|
| Dịch vụ chưa xác nhận tên miền là của bạn. | The service has not yet confirmed that the domain is yours |
| Dịch vụ chưa tìm thấy chữ ký DKIM của tên miền. | The DKIM signature is not found yet |
| Dịch vụ chưa thấy mình có trong bản ghi SPF của tên miền. | The SPF record does not name the service yet |
| Tên miền đã được đăng ký với dịch vụ; các bản ghi của tên miền đang lan truyền khắp DNS. | The domain is registered; its records are spreading through DNS |
| Dịch vụ không chấp nhận khóa. Hãy kiểm tra khóa trong bảng điều khiển của dịch vụ rồi kết nối lại. | Check the key in the service's panel and connect again |
For a VPS:
| Note | Comment |
|---|---|
| Hãy chạy lệnh trên VPS. | The command is yet to run on the VPS |
| Thư không thể rời khỏi VPS: nhà cung cấp hosting đang đóng cổng 25. Hãy nhờ nhà cung cấp hosting mở cổng này. | The hoster keeps port 25 closed |
| VPS không kiểm tra được cổng 25 chiều đi ra. Hãy lấy lệnh mới và chạy lại trên VPS. | Get a new command and run it again |
| VPS không phản hồi trên cổng … hoặc không cho máy chủ này đăng nhập. | The ellipsis stands for the port number |
| … chưa trỏ tới …. | The ellipses stand for the name and the address of the VPS |
| Bản ghi ngược của … chưa trỏ về …. | The ellipses stand for the address and the name |
| Bản ghi SPF của tên miền chưa liệt kê VPS. | The SPF record of the domain lacks the VPS |
| Tên miền có nhiều bản ghi SPF và bên nhận thư không tin bản ghi nào. Hãy giữ lại một bản ghi. | Receivers trust none of several SPF records; keep one |
| Máy chủ thư của bản cài đặt này chưa biết dấu vân tay của VPS: hãy cập nhật hệ thống thư. | The other checks have passed; the way waits until the mail part of this installation is updated |
| Tên … đã trỏ tới nơi khác, nên bản ghi A của đường gửi không thể đặt ở đó. Hãy xóa bản ghi đó khỏi DNS của tên miền hoặc đặt cho VPS một tên khác. | 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: Tên đăng nhập: … and khóa kết thúc bằng … (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: … thư đang chờ: đường gửi đã từ chối nhận chúng từ …. Cứ mỗi giờ một thư trong số đó được thử gửi lại. The ellipses stand for the number of messages and the time since which the way turns them back.
The buttons of the connected way:
- Kiểm tra asks the service or the VPS again.
- Lệnh mới (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: Lệnh mới sẽ cấp cho VPS mật khẩu và chứng chỉ mới. Cho đến khi bạn chạy lệnh này trên VPS, thư của tên miền sẽ phải chờ. While the way is still being set up, the question reads Lệnh mới sẽ cấp cho VPS mật khẩu và chứng chỉ mới; mật khẩu và chứng chỉ đã cấp trước đó sẽ ngừng hoạt động.
- Ngắt kết nối returns the domain to sending straight from this server, after the question Ngắt kết nối đường gửi thư của …? Thư của tên miền sẽ được gửi trực tiếp từ máy chủ này. The ellipsis stands for the domain.
When taking the route off falls short at once, the block names the step that fell short:
- Thư của tên miền vẫn đi theo đường này: không gỡ được đường gửi khỏi tên miền.
- Mục chuyển tiếp của đường gửi vẫn còn trên máy chủ thư.
- Các bản ghi của đường gửi chưa được gỡ khỏi DNS của tên miền: followed by the record and the reason
- Không xóa được bản ghi của đường gửi khỏi kho lưu trữ của bản cài đặt này.
When the records of a connected way could not be written, the line reads Các bản ghi của đường gửi chưa được thiết lập trong DNS của tên miền: followed by the record and the reason.