Saltar al contenido principal

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 Envío de correo block at the top of the Dominios 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 dominio envía a su manera: directamente desde este servidor, a través de un servicio de entrega con la cuenta propia del dominio o a través del servidor propio del dominio (VPS).

Choose a way​

Until a way is connected, the list Cómo sale el correo del dominio offers three: Directamente desde este servidor, A través de un servicio de entrega and A través de su propio servidor (VPS). After you connect one, the list gives place to the state of the connected way.

Straight from this server​

The block says El correo sale desde la propia dirección de este servidor. Los servidores receptores confían en él solo cuando el puerto 25 está abierto hacia el exterior, la dirección tiene un registro inverso con el nombre del servidor de correo y la dirección no figura en ninguna lista de bloqueo.

Press Comprobar la dirección de este servidor. The answer lists:

CheckWhat it tells
Puerto 25 de salidaWhether port 25 is open outwards
… apunta a la direcciónWhether the name's A record leads to the address; the ellipsis stands for the name of the server
Registro inverso de …Whether the reverse record of the address names the mail server; the ellipsis stands for the address
Lista de bloqueo …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 — en orden, abierto, cerrado, no existe, apunta a otro lugar, no está en la lista, está en la lista, falló or no se pudo comprobar — and a dot: green for a good answer, red for a bad one, grey for no se pudo comprobar. When the reverse record is missing or names something else, the check adds the request Envíe esto al proveedor de hosting de la dirección: with a ready text and a copy button. The text reads ¡Hola! Por favor, configuren el registro DNS inverso (PTR) de … como …. Es un servidor de correo y el correo sale de él con este nombre. Gracias. (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 No se pudo averiguar la dirección pública de este servidor, así que no se comprobó su registro inverso. 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 no se pudo comprobar.

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 Servicio de entrega. The list names Mailjet and Brevo, marked recomendado; above it stands the line Regístrese por su cuenta en el servicio y después introduzca aquí sus claves: damos de alta … en él y activamos el envío en cuanto el servicio confirme el dominio. Los registros que solicita se publican desde aquí cuando esta instalación escribe la zona del dominio (Cloudflare, Namecheap); en los demás casos, introdúzcalos según la tabla de abajo. (the ellipsis stands for the domain). Under the list Qubix shows how many messages a day or a month the service gives free — … mensajes al día gratis and … mensajes al mes gratis, the number stands in place of the ellipsis — and a link to register.
  2. Register with the service yourself — the link Regístrese en … (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 Clave API and the Clave secreta, for Brevo the Nombre de inicio de sesión SMTP, the Clave SMTP and the Clave API (Configuración → SMTP y API → Claves API).
  4. Press Conectar. Under the fields stands the line Cada dominio necesita una cuenta propia: una misma cuenta no puede dar servicio a dos dominios.

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 El correo del dominio sale desde la dirección de su propio VPS y con el nombre de este. Recibirá un comando para el VPS: instala el relay de correo y comprueba que el correo puede salir del VPS.

  1. Enter the Dirección del VPS (IPv4) and the Nombre del servidor (by default mail. followed by the domain; the name must lie inside the domain).
  2. Press Obtener el comando. The command appears with a copy button.
  3. Run the command on the VPS as root; above the command stands Ejecute esto en el VPS como root: The command installs the mail relay and checks that mail can leave the VPS. Under it stands the line El comando funciona una sola vez y durante 24 horas. Después, pulse «Comprobar». When the command is no longer on the screen, the block says El comando se muestra una sola vez. Si lo necesita, obtenga uno nuevo., and once the VPS has taken its settings, El VPS ya ha recibido su configuración. Si no terminó, obtenga un comando nuevo.
  4. Press Comprobar.

Under the fields stands the line El VPS necesita Debian o Ubuntu, el puerto 25 abierto hacia el exterior en el proveedor de hosting y un registro inverso de su dirección con el nombre del servidor — la comprobación de abajo ofrece una solicitud ya preparada para el proveedor de hosting. After the command has run, the block says what the VPS reported about port 25 out of it: Puerto 25 de salida del VPS: … (the status stands in place of the ellipsis). Once the checks have run, the block lists them: port 25 out (Puerto 25 de salida), the sign-in of this server to the VPS (Inicio de sesión en el VPS), where the VPS name leads (… apunta a la dirección), and the reverse record (Registro inverso 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:

LineMeaning
Se está configurando el envío a través de …The domain waits for the service or the VPS to confirm
El correo del dominio sale a través de …The way works
El correo del dominio queda en espera: el comando nuevo aún no se ha ejecutado en …You asked for a new command, and until it is run on the VPS the domain's mail waits
… ha dejado de aceptar el correo del dominioMessages wait in the hold queue
Se está desconectando …The route is being taken off the domain; under the line stands Esta instalación sigue intentándolo por sí sola; también puede pulsar «Desconectar» de nuevo.

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 Hasta entonces, el correo del dominio sale directamente desde este servidor. A way that is switched on but that the mail server does not use adds the line El servidor de correo no dirige el correo del dominio por esta vía. Pulse «Comprobar» para conectarla de nuevo.

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

NoteComment
El servicio aún no ha confirmado que el dominio es suyo.The service has not yet confirmed that the domain is yours
El servicio aún no ha encontrado la firma DKIM del dominio.The DKIM signature is not found yet
El servicio aún no ha encontrado su propio nombre en el registro SPF del dominio.The SPF record does not name the service yet
El dominio está dado de alta en el servicio; sus registros se están propagando por el DNS.The domain is registered; its records are spreading through DNS
El servicio no acepta la clave. Compruébela en el panel del servicio y vuelva a conectar.Check the key in the service's panel and connect again

For a VPS:

NoteComment
Ejecute el comando en el VPS.The command is yet to run on the VPS
El correo no puede salir del VPS: el proveedor de hosting mantiene cerrado el puerto 25. Pida al proveedor que lo abra.The hoster keeps port 25 closed
El VPS no pudo comprobar el puerto 25 de salida. Obtenga un comando nuevo y ejecútelo de nuevo en el VPS.Get a new command and run it again
El VPS no responde en el puerto … o no permite que este servidor inicie sesión.The ellipsis stands for the port number
… aún no apunta a ….The ellipses stand for the name and the address of the VPS
El registro inverso de … aún no indica ….The ellipses stand for the address and the name
El registro SPF del dominio aún no incluye el VPS.The SPF record of the domain lacks the VPS
El dominio tiene varios registros SPF y los servidores receptores no confían en ninguno. Deje solo uno.Receivers trust none of several SPF records; keep one
El servidor de correo de esta instalación aún no conoce la huella digital del VPS: actualice el stack de correo.The other checks have passed; the way waits until the mail part of this installation is updated
El nombre … ya apunta a otro lugar, así que el registro A de la vía no puede ir allí. Quite ese registro del DNS del dominio o dé otro nombre al 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: Nombre de inicio de sesión: … and la clave termina en … (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: … mensajes esperan: la vía los rechaza desde …. Cada hora se vuelve a intentar con uno. The ellipses stand for the number of messages and the time since which the way turns them back.

The buttons of the connected way:

  • Comprobar asks the service or the VPS again.
  • Nuevo 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: Un comando nuevo asigna al VPS una contraseña y un certificado nuevos. Hasta que lo ejecute en el VPS, el correo del dominio queda en espera. While the way is still being set up, the question reads Un comando nuevo asigna al VPS una contraseña y un certificado nuevos; el comando emitido antes dejará de funcionar.
  • Desconectar returns the domain to sending straight from this server, after the question ¿Desconectar la vía de envío de …? El correo del dominio saldrá directamente desde este servidor. The ellipsis stands for the domain.

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

  • El correo del dominio sigue saliendo por esta vía: no se pudo quitar la vía del dominio.
  • La entrada de relay de la vía sigue en el servidor de correo.
  • Los registros de la vía aún no se han quitado del DNS del dominio: followed by the record and the reason
  • No se pudo quitar el registro de la vía del almacenamiento de esta instalación.

When the records of a connected way could not be written, the line reads Los registros de la vía no se escribieron en el DNS del dominio: followed by the record and the reason.

What's next​