Skip to main content

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:

CheckWhat 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.

  1. 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.
  2. 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.
  3. Enter them: for Mailjet the คีย์ API and the คีย์ลับ, for Brevo the ชื่อผู้ใช้ SMTP, the คีย์ SMTP and the คีย์ API (การตั้งค่า → SMTP และ API → คีย์ API).
  4. 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: คำสั่งนี้จะติดตั้งรีเลย์อีเมลและตรวจสอบว่าอีเมลส่งออกจาก VPS ได้

  1. Enter the ที่อยู่ของ VPS (IPv4) and the ชื่อเซิร์ฟเวอร์ (by default mail. followed by the domain; the name must lie inside the domain).
  2. Press รับคำสั่ง. The command appears with a copy button.
  3. Run the command on the VPS as root; above the command stands รันคำสั่งนี้บน VPS ในฐานะ root: 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 รับการตั้งค่าไปแล้ว หากยังติดตั้งไม่เสร็จ ให้รับคำสั่งใหม่
  4. 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: พอร์ต 25 ขาออกของ VPS: … (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:

LineMeaning
กำลังตั้งค่าการส่งผ่าน …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:

NoteComment
บริการยังไม่ได้ยืนยันว่าโดเมนเป็นของคุณ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
โดเมนถูกเพิ่มในบริการแล้ว; ระเบียนของโดเมนกำลังแพร่กระจายทั่ว DNSThe domain is registered; its records are spreading through DNS
บริการไม่ยอมรับคีย์ ตรวจสอบคีย์ในแผงควบคุมของบริการแล้วเชื่อมต่อใหม่Check the key in the service's panel and connect again

For a VPS:

NoteComment
รันคำสั่งบน VPSThe 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 ของโดเมนยังไม่ระบุ VPSThe 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 ของโดเมน หรือตั้งชื่ออื่นให้ VPSThe 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.

What's next​