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 Envio de email block at the top of the Domínios 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 Cada domínio envia à sua maneira: diretamente deste servidor, por meio de um serviço de entrega com a conta própria do domínio ou por meio do servidor próprio do domínio (VPS).
Choose a way
Until a way is connected, the list Como o email do domínio é enviado offers three: Diretamente deste servidor, Por meio de um serviço de entrega and Por meio do seu próprio servidor (VPS). After you connect one, the list gives place to the state of the connected way.
Straight from this server
The block says O email sai do próprio endereço deste servidor. Os servidores receptores só confiam nele quando a porta 25 está aberta para fora, o endereço tem um registro reverso com o nome do servidor de email e o endereço não consta em nenhuma lista de bloqueio.
Press Verificar o endereço deste servidor. The answer lists:
| Check | What it tells |
|---|---|
| Porta 25 de saída | Whether port 25 is open outwards |
| … aponta para o endereço | Whether the name's A record leads to the address; the ellipsis stands for the name of the server |
| Registro reverso de … | Whether the reverse record of the address names the mail server; the ellipsis stands for the address |
| Lista de bloqueio … | 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 — em ordem, aberta, fechada, não existe, aponta para outro lugar, não está na lista, está na lista, falhou or não foi possível verificar — and a dot: green for a good answer, red for a bad one, grey for não foi possível verificar. When the reverse record is missing or names something else, the check adds the request Envie isto ao provedor de hospedagem do endereço: with a ready text and a copy button. The text reads Olá! Por favor, configurem o registro DNS reverso (PTR) de … como …. É um servidor de email, e o email sai dele com este nome. Agradeço desde já. (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 Não foi possível descobrir o endereço público deste servidor, por isso o registro reverso dele não foi verificado. 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 não foi possível verificar.
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 Serviço de entrega. The list names Mailjet and Brevo, marked recomendado; above it stands the line Cadastre-se por conta própria no serviço e depois insira aqui as chaves dele: nós cadastramos … nele e ativamos o envio assim que o serviço confirmar o domínio. Os registros que ele solicita são publicados a partir daqui quando esta instalação grava a zona do domínio (Cloudflare, Namecheap); nos demais casos, insira-os conforme a tabela abaixo. (the ellipsis stands for the domain). Under the list Qubix shows how many messages a day or a month the service gives free — … mensagens por dia grátis and … mensagens por mês grátis, the number stands in place of the ellipsis — and a link to register.
- Register with the service yourself — the link Cadastre-se em … (the name of the service stands in place of the ellipsis) is under the list — and take its keys.
- Enter them: for Mailjet the Chave de API and the Chave secreta, for Brevo the Nome de login SMTP, the Chave SMTP and the Chave de API (Configurações → SMTP & API → Chaves de API).
- Press Conectar. Under the fields stands the line Cada domínio precisa de uma conta própria: uma conta não pode atender dois domínios.
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 O email do domínio sai do endereço do seu próprio VPS, com o nome dele. Você receberá um comando para o VPS: ele instala o relay de email e verifica se o email consegue sair do VPS.
- Enter the Endereço do VPS (IPv4) and the Nome do servidor (by default
mail.followed by the domain; the name must lie inside the domain). - Press Obter o comando. The command appears with a copy button.
- Run the command on the VPS as root; above the command stands Execute isto no VPS como root: The command installs the mail relay and checks that mail can leave the VPS. Under it stands the line O comando funciona uma única vez e por 24 horas. Depois, clique em “Verificar”. When the command is no longer on the screen, the block says O comando é exibido uma única vez. Se precisar dele, obtenha um novo., and once the VPS has taken its settings, O VPS já obteve a sua configuração. Se não terminou, obtenha um novo comando.
- Press Verificar.
Under the fields stands the line O VPS precisa de Debian ou Ubuntu, da porta 25 aberta para fora no provedor de hospedagem e de um registro reverso do endereço dele com o nome do servidor — a verificação abaixo fornece uma solicitação pronta para o provedor de hospedagem. After the command has run, the block says what the VPS reported about port 25 out of it: Porta 25 de saída do VPS: … (the status stands in place of the ellipsis). Once the checks have run, the block lists them: port 25 out (Porta 25 de saída), the sign-in of this server to the VPS (Login no VPS), where the VPS name leads (… aponta para o endereço), and the reverse record (Registro reverso de …). 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 |
|---|---|
| O envio está sendo configurado por meio de … | The domain waits for the service or the VPS to confirm |
| O email do domínio sai por meio de … | The way works |
| O email do domínio está em espera: o novo comando ainda não foi executado em … | You asked for a new command, and until it is run on the VPS the domain's mail waits |
| … parou de aceitar o email do domínio | Messages wait in the hold queue |
| A desconexão de … está em andamento | The route is being taken off the domain; under the line stands Esta instalação continua tentando por conta própria; você também pode clicar em “Desconectar” novamente. |
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 Até lá, o email do domínio sai diretamente deste servidor. A way that is switched on but that the mail server does not use adds the line O servidor de email não roteia o email do domínio por este caminho. Clique em “Verificar” para conectá-lo novamente.
Under the line, a note says what the way is still waiting for. For a delivery service:
| Note | Comment |
|---|---|
| O serviço ainda não confirmou que o domínio é seu. | The service has not yet confirmed that the domain is yours |
| O serviço ainda não encontrou a assinatura DKIM do domínio. | The DKIM signature is not found yet |
| O serviço ainda não encontrou o próprio nome no registro SPF do domínio. | The SPF record does not name the service yet |
| O domínio está cadastrado no serviço; os registros dele estão se propagando pelo DNS. | The domain is registered; its records are spreading through DNS |
| O serviço não aceita a chave. Verifique-a no painel do serviço e conecte novamente. | Check the key in the service's panel and connect again |
For a VPS:
| Note | Comment |
|---|---|
| Execute o comando no VPS. | The command is yet to run on the VPS |
| O email não pode sair do VPS: o provedor de hospedagem mantém a porta 25 fechada. Peça ao provedor que a abra. | The hoster keeps port 25 closed |
| O VPS não conseguiu verificar a porta 25 de saída. Obtenha um novo comando e execute-o novamente no VPS. | Get a new command and run it again |
| O VPS não responde na porta … ou não permite que este servidor faça login. | The ellipsis stands for the port number |
| … ainda não aponta para …. | The ellipses stand for the name and the address of the VPS |
| O registro reverso de … ainda não indica …. | The ellipses stand for the address and the name |
| O registro SPF do domínio ainda não inclui o VPS. | The SPF record of the domain lacks the VPS |
| O domínio tem vários registros SPF, e os servidores receptores não confiam em nenhum. Mantenha apenas um. | Receivers trust none of several SPF records; keep one |
| O servidor de email desta instalação ainda não conhece a impressão digital do VPS: atualize o stack de email. | The other checks have passed; the way waits until the mail part of this installation is updated |
| O nome … já aponta para outro lugar, então o registro A do caminho não pode ficar nele. Remova esse registro do DNS do domínio ou dê outro nome ao 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: Nome de login: … and a chave termina em … (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: … mensagens aguardam: o caminho as recusa desde …. A cada hora, uma delas é tentada novamente. The ellipses stand for the number of messages and the time since which the way turns them back.
The buttons of the connected way:
- Verificar asks the service or the VPS again.
- Novo comando (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: Um novo comando dá ao VPS uma nova senha e um novo certificado. Até você executá-lo no VPS, o email do domínio fica em espera. While the way is still being set up, the question reads Um novo comando dá ao VPS uma nova senha e um novo certificado; o comando emitido antes deixará de funcionar.
- Desconectar returns the domain to sending straight from this server, after the question Desconectar o caminho de envio de …? O email do domínio passará a sair diretamente deste servidor. The ellipsis stands for the domain.
When taking the route off falls short at once, the block names the step that fell short:
- O email do domínio ainda segue por este caminho: não foi possível remover o caminho do domínio.
- A entrada de relay do caminho ainda está no servidor de email.
- Os registros do caminho ainda não foram removidos do DNS do domínio: followed by the record and the reason
- Não foi possível remover o registro do caminho do armazenamento desta instalação.
When the records of a connected way could not be written, the line reads Os registros do caminho não foram gravados no DNS do domínio: followed by the record and the reason.