メインコンテンツまでスキップ

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
アウトバウンドポート25Whether 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 — 1日…件まで無料 and 1か月…件まで無料, 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 ドメインごとに専用のアカウントが必要です:1つのアカウントで2つのドメインを扱うことはできません。

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 このコマンドは1回のみ、24時間有効です。実行後に「確認」を押してください。 When the command is no longer on the screen, the block says コマンドは1回しか表示されません。必要な場合は、新しいコマンドを取得してください。, 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: 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:

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
ドメインはサービスに登録済みです。そのレコードは、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:

NoteComment
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レコードが複数あり、受信側はどれも信頼しません。1つだけ残してください。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: …件のメッセージが待機中です:この経路は、… からメッセージを受け付けていません。1時間ごとに、そのうち1件の再送を試みます。 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​