Przejdź do głównej zawartości

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 Wysyłanie poczty block at the top of the Domeny 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 Każda domena wysyła pocztę własną ścieżką: bezpośrednio z tego serwera, przez usługę dostarczania poczty z własnym kontem domeny albo przez własny serwer domeny (VPS).

Choose a way​

Until a way is connected, the list Jak wychodzi poczta domeny offers three: Bezpośrednio z tego serwera, Przez usługę dostarczania poczty and Przez Twój własny serwer (VPS). After you connect one, the list gives place to the state of the connected way.

Straight from this server​

The block says Poczta wychodzi z adresu samego serwera. Odbiorcy jej ufają tylko wtedy, gdy port 25 jest otwarty dla ruchu wychodzącego, adres ma rekord odwrotny z nazwą serwera poczty, a sam adres nie znajduje się na żadnej liście blokad.

Press Sprawdź adres tego serwera. The answer lists:

CheckWhat it tells
Wychodzący port 25Whether port 25 is open outwards
… wskazuje na adresWhether the name's A record leads to the address; the ellipsis stands for the name of the server
Rekord odwrotny adresu …Whether the reverse record of the address names the mail server; the ellipsis stands for the address
Lista blokad …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 — w porządku, otwarty, zamknięty, brak, wskazuje gdzie indziej, brak na liście, na liście, nie udało się or nie udało się sprawdzić — and a dot: green for a good answer, red for a bad one, grey for nie udało się sprawdzić. When the reverse record is missing or names something else, the check adds the request Wyślij to dostawcy hostingu tego adresu: with a ready text and a copy button. The text reads Dzień dobry! Proszę o ustawienie dla adresu … rekordu odwrotnego DNS (PTR) na …. Jest to serwer poczty, a poczta wychodzi z niego pod tą nazwą. Dziękuję. (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 Nie udało się ustalić publicznego adresu tego serwera, więc jego rekord odwrotny nie został sprawdzony. 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 nie udało się sprawdzić.

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 Usługa dostarczania poczty. The list names Mailjet and Brevo, marked zalecana; above it stands the line Zarejestruj się w usłudze samodzielnie, a następnie wprowadź tutaj jej klucze: zarejestrujemy w niej domenę … i włączymy wysyłanie, gdy usługa potwierdzi domenę. Rekordy, o które prosi, są publikowane stąd tam, gdzie ta instalacja zapisuje strefę domeny (Cloudflare, Namecheap); w pozostałych przypadkach wprowadź je według tabeli poniżej. (the ellipsis stands for the domain). Under the list Qubix shows how many messages a day or a month the service gives free — … wiadomości dziennie bezpłatnie and … wiadomości miesięcznie bezpłatnie, the number stands in place of the ellipsis — and a link to register.
  2. Register with the service yourself — the link Zarejestruj się w … (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 Klucz API and the Klucz tajny, for Brevo the Login SMTP, the Klucz SMTP and the Klucz API (Ustawienia → SMTP i API → Klucze API).
  4. Press Podłącz. Under the fields stands the line Każda domena potrzebuje własnego konta: jedno konto nie może obsługiwać dwóch domen.

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 Poczta domeny wychodzi z adresu Twojego VPS, pod jego nazwą. Otrzymasz polecenie dla VPS: zainstaluje ono przekaźnik pocztowy i sprawdzi, czy poczta może wychodzić z VPS.

  1. Enter the Adres VPS (IPv4) and the Nazwa serwera (by default mail. followed by the domain; the name must lie inside the domain).
  2. Press Uzyskaj polecenie. The command appears with a copy button.
  3. Run the command on the VPS as root; above the command stands Wykonaj to na VPS jako root: The command installs the mail relay and checks that mail can leave the VPS. Under it stands the line Polecenie działa jednorazowo i przez 24 godziny. Następnie kliknij „Sprawdź”. When the command is no longer on the screen, the block says Polecenie jest pokazywane tylko raz. Jeśli jest potrzebne ponownie, uzyskaj nowe., and once the VPS has taken its settings, VPS pobrał już swoją konfigurację. Jeśli instalacja się nie zakończyła, uzyskaj nowe polecenie.
  4. Press Sprawdź.

Under the fields stands the line Na VPS potrzebny jest system Debian lub Ubuntu, otwarty u dostawcy hostingu port 25 dla ruchu wychodzącego oraz rekord odwrotny adresu z nazwą serwera — sprawdzenie poniżej poda gotowe zgłoszenie dla dostawcy hostingu. After the command has run, the block says what the VPS reported about port 25 out of it: Wychodzący port 25 na VPS: … (the status stands in place of the ellipsis). Once the checks have run, the block lists them: port 25 out (Wychodzący port 25), the sign-in of this server to the VPS (Logowanie do VPS), where the VPS name leads (… wskazuje na adres), and the reverse record (Rekord odwrotny adresu …). 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
Trwa konfigurowanie wysyłania przez …The domain waits for the service or the VPS to confirm
Poczta domeny wychodzi przez …The way works
Poczta domeny czeka: nowe polecenie nie zostało jeszcze wykonane na …You asked for a new command, and until it is run on the VPS the domain's mail waits
Poczta domeny przestała być przyjmowana przez …Messages wait in the hold queue
Trwa odłączanie …The route is being taken off the domain; under the line stands Ta instalacja ponawia próby samodzielnie; możesz też ponownie kliknąć „Odłącz”.

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 Do tego czasu poczta domeny wychodzi bezpośrednio z tego serwera. A way that is switched on but that the mail server does not use adds the line Serwer poczty nie kieruje poczty domeny tą ścieżką. Kliknij „Sprawdź”, aby podłączyć ją ponownie.

Under the line, a note says what the way is still waiting for. For a delivery service:

NoteComment
Usługa nie potwierdziła jeszcze, że domena należy do Ciebie.The service has not yet confirmed that the domain is yours
Usługa nie znalazła jeszcze podpisu DKIM domeny.The DKIM signature is not found yet
Usługa nie znalazła jeszcze siebie w rekordzie SPF domeny.The SPF record does not name the service yet
Domena została zarejestrowana w usłudze; jej rekordy rozchodzą się po DNS.The domain is registered; its records are spreading through DNS
Usługa nie akceptuje klucza. Sprawdź go w panelu usługi i podłącz ponownie.Check the key in the service's panel and connect again

For a VPS:

NoteComment
Wykonaj polecenie na VPS.The command is yet to run on the VPS
Poczta nie może wychodzić z VPS: dostawca hostingu trzyma port 25 zamknięty. Poproś go o jego otwarcie.The hoster keeps port 25 closed
VPS nie mógł sprawdzić wychodzącego portu 25. Uzyskaj nowe polecenie i wykonaj je na VPS ponownie.Get a new command and run it again
VPS nie odpowiada na porcie … lub nie pozwala temu serwerowi się zalogować.The ellipsis stands for the port number
… nie wskazuje jeszcze na ….The ellipses stand for the name and the address of the VPS
Rekord odwrotny adresu … nie wskazuje jeszcze nazwy ….The ellipses stand for the address and the name
Rekord SPF domeny nie wymienia jeszcze VPS.The SPF record of the domain lacks the VPS
Domena ma kilka rekordów SPF, a odbiorcy nie ufają żadnemu z nich. Pozostaw jeden.Receivers trust none of several SPF records; keep one
Serwer poczty tej instalacji nie zna jeszcze odcisku VPS: zaktualizuj komponent poczty.The other checks have passed; the way waits until the mail part of this installation is updated
Nazwa … już wskazuje gdzie indziej, więc rekord A ścieżki nie może tam trafić. Usuń ten rekord z DNS domeny lub nadaj VPS inną nazwę.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 klucz kończy się na … (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: … wiadomości czeka: ścieżka odrzuca je od …. Co godzinę podejmowana jest kolejna próba wysłania jednej z nich. The ellipses stand for the number of messages and the time since which the way turns them back.

The buttons of the connected way:

  • Sprawdź asks the service or the VPS again.
  • Nowe polecenie (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: Nowe polecenie nadaje VPS nowe hasło i certyfikat. Dopóki nie wykonasz go na VPS, poczta domeny czeka. While the way is still being set up, the question reads Nowe polecenie nadaje VPS nowe hasło i certyfikat; wydane wcześniej przestaje działać.
  • Odłącz returns the domain to sending straight from this server, after the question Odłączyć ścieżkę wysyłki domeny …? Poczta domeny będzie wychodzić bezpośrednio z tego serwera. The ellipsis stands for the domain.

When taking the route off falls short at once, the block names the step that fell short:

  • Poczta domeny nadal wychodzi tą ścieżką: nie udało się odłączyć jej od domeny.
  • Wpis przekazywania tej ścieżki nadal znajduje się na serwerze poczty.
  • Rekordy ścieżki nie zostały jeszcze usunięte z DNS domeny: followed by the record and the reason
  • Nie udało się usunąć wpisu o ścieżce z magazynu tej instalacji.

When the records of a connected way could not be written, the line reads Rekordy ścieżki nie zostały zapisane w DNS domeny: followed by the record and the reason.

What's next​