Comprueba si tus servidores de correo admiten STARTTLS y cifran los mensajes de correo electrónico durante la transmisión. Introduce un dominio para comprobar en cada servidor MX: la compatibilidad con STARTTLS, la versión de TLS, la validez del certificado y la conversación SMTP completa, además de tu configuración de MTA-STS, TLS-RPT y DANE.
Cómo funciona la prueba de STARTTLS
La prueba se comunica con tus servidores de correo electrónico del mismo modo que lo hacen Gmail, Outlook y otros remitentes cuando te envían mensajes, y del mismo modo que lo hacen las aplicaciones de correo electrónico cuando envían o leen mensajes.
1
Busca tus servidores de correo
En el caso de un dominio en el puerto 25, consultamos sus registros MX y comprobamos todos los servidores a la vez, por orden de preferencia. Cada nombre de host se comprueba por separado, en los puertos 25, 587, 143 o 110.
2
Ejecuta el protocolo de establecimiento de conexión
Nos conectamos, esperamos a que nos saluden y enviamos EHLO, comprueba que STARTTLS Si se ofrece, actualiza la conexión a TLS y vuelve a preguntar qué ofrece el servidor. No se envía ningún mensaje y no se registra nada.
3
Comprueba el cifrado
Registramos la versión y el algoritmo de cifrado de TLS, probamos TLS 1.0 y 1.1, validamos el certificado, confirmamos el DNS inverso de cada servidor y comparamos tu política MTA-STS, el registro TLS-RPT y los registros DANE con lo que ha presentado cada servidor.
Qué comprueba la prueba STARTTLS
El cifrado entre servidores de correo depende de más de un parámetro. Estos son los criterios que determinan si el correo dirigido a tu dominio se cifra y si los remitentes pueden exigir que así sea.
Oferta y respuesta de STARTTLS
Independientemente de si el servidor muestra STARTTLS después de EHLO y responde al comando con 220, con la transcripción completa de la conversación. Un cortafuegos que oculta la oferta (XXXXXXXA) se denomina.
Versión de TLS y algoritmo de cifrado
El protocolo y el cifrado que elige el servidor, así como si sigue aceptando las versiones obsoletas TLS 1.0 y 1.1, cada una de las cuales se prueba con su propio proceso de establecimiento de conexión.
Certificado
Fechas, nombre del servidor, cadena de confianza hasta una raíz de confianza, clave y firma. En el puerto 25, un certificado no válido supone una advertencia, a menos que la aplicación de MTA-STS obligue a los remitentes a verificarlo. En los puertos 587, 143 y 110, las aplicaciones de correo lo verifican, por lo que da error.
MTA-STS y TLS-RPT
Tu _mta-sts registro, el archivo de políticas obtenido tal y como lo obtienen los remitentes, si todos los servidores MX están incluidos y superan la comprobación, y dónde se encuentra tu _smtp._tls El registro envía informes TLS.
DANE
Los registros de la TLSA se encuentran en _25._tcp de cada servidor MX, validados con DNSSEC y cotejados con el certificado que presentaba, junto con los registros que deben publicarse para dicho certificado.
Inicia sesión antes del cifrado
Si un servidor de envío, IMAP o POP3 permite que una aplicación de correo electrónico inicie sesión antes de STARTTLS —lo que implicaría enviar la contraseña en texto sin cifrar— y qué ofrece una vez cifrada.
¿Qué es STARTTLS?
STARTTLS es un comando que convierte una conexión de correo electrónico en texto plano en una conexión TLS cifrada. Definido para SMTP en el RFC 3207, permite que los servidores de correo del puerto 25 y los clientes de correo electrónico del puerto 587 inicien la conexión sin cifrar y pasen al cifrado antes de que se envíe el contenido de cualquier mensaje. IMAP y POP3 utilizan la misma conversión en los puertos 143 y 110.
Cifrado en tránsito
Una vez actualizado, el mensaje, sus encabezados y sus archivos adjuntos se transmiten cifrados entre los dos servidores, por lo que no se pueden leer en la red.
Oportunista por defecto
El protocolo STARTTLS entre servidores es opcional. Si no se utiliza o falla, la mayoría de los remitentes envían el mensaje en texto sin formato en lugar de rechazarlo.
Vulnerable a ataques de rebaja de nivel
Un atacante en la red puede eliminar la oferta STARTTLS para que el correo se envíe sin cifrar. MTA-STS y DANE subsanan esta vulnerabilidad.
STARTTLS frente a SSL/TLS: qué puerto utiliza cada uno
STARTTLS actualiza una conexión que comienza en texto sin cifrar. El TLS implícito, que a menudo se denomina SSL/TLS en los clientes de correo electrónico, cifra la conexión desde el primer byte. Ambos utilizan el mismo protocolo TLS una vez que comienza el cifrado. Esta prueba abarca los puertos de STARTTLS; el verificador de certificados SSL se encarga de los de TLS implícito.
Puertos de correo electrónico y su cifrado
Puerto
Protocolo
Codificación
Se utiliza para
25
SMTP
STARTTLS (opcional)
Entrega de servidor a servidor a tus servidores MX
587
Envío por SMTP
STARTTLS (obligatorio)
Clientes de correo electrónico y aplicaciones que envían mensajes
465
SMTPS
TLS implícito
Clientes de correo electrónico que envían mensajes (según recomienda la RFC 8314)
143 / 993
IMAP / IMAPS
STARTTLS / TLS implícito
Leer el correo
110 / 995
POP3 / POP3S
STARTTLS / TLS implícito
Descarga de correo electrónico
Cómo probar STARTTLS con OpenSSL
Puedes realizar la misma comprobación desde un terminal. Muchos proveedores de Internet bloquean el puerto 25 de salida en las conexiones domésticas, así que, si se agota el tiempo de espera, ejecútala desde un servidor.
# Busca tus servidores MXdig +short MX example.com # Prueba STARTTLS en el puerto 25 y muestra el certificadoopenssl s_client -starttls smtp -connect mx1.example.com:25 \ -servername mx1.example.com -crlf # El puerto de envío, IMAP y POP3openssl s_client -starttls smtp -connect smtp.example.com:587 -crlf openssl s_client -starttls imap -connect imap.example.com:143 openssl s_client -starttls pop3 -connect pop.example.com:110 # Comprueba si se ofrece STARTTLS (busca 250-STARTTLS)nc mx1.example.com 25 EHLO test.example.org
Así es un servidor en funcionamiento250-STARTTLS → 220 Listo Después de EHLO, el servidor muestra una lista de sus extensiones. 250-STARTTLS significa que admite el cifrado. Cuando el cliente envía STARTTLS, un 220 La respuesta indica que puede comenzar el protocolo de enlace TLS. A 454 Si se recibe una respuesta o falta la línea STARTTLS, los remitentes envían los mensajes a ese servidor sin cifrar.
Problemas habituales con STARTTLS y cómo solucionarlos
Estos son los problemas que la prueba detecta con mayor frecuencia en los servidores de correo, y qué hacer en cada caso.
No se ofrece STARTTLS
El servidor no anuncia STARTTLS
Todos los mensajes enviados a este servidor se transmiten en texto sin formato. Esto suele ocurrir cuando caduca un certificado y un administrador desactiva el protocolo TLS, o en dispositivos antiguos.
Instala un certificado y activa TLS en tu servidor de correo (para Postfix, smtpd_tls_security_level = may).
El protocolo de enlace falla
Se ofrece STARTTLS, pero TLS falla
El servidor acepta el comando, pero el establecimiento de la conexión falla: falta un archivo de certificado, la clave no coincide o no hay ninguna versión de TLS ni cifrado en común.
Comprueba los registros TLS del servidor de correo, verifica las rutas de los certificados y las claves, y activa TLS 1.2 y 1.3.
Oculto tras un cortafuegos
EHLO muestra XXXXXXXA en lugar de STARTTLS
Un cortafuegos con inspección SMTP ignora la oferta, por lo que los remitentes nunca la ven y envían el mensaje en texto sin formato, incluso cuando el servidor que hay detrás es compatible con TLS.
Desactivar la inspección ESMTP (Cisco ASA: no inspect esmtp) o permitir el paso de STARTTLS.
Certificado no fiable
Certificado autofirmado, caducado o no coincidente
Los remitentes oportunistas siguen enviando mensajes, pero MTA-STS y DANE requieren un certificado válido. Cuando MTA-STS está en modo de aplicación, el envío falla.
Utiliza un certificado de una autoridad de certificación pública cuyos nombres alternativos (SAN) incluyan el nombre de host MX y automatiza su renovación.
Versiones antiguas de TLS
Todavía se aceptan TLS 1.0 o 1.1
Ambas están obsoletas (RFC 8996). Los remitentes actuales negocian TLS 1.2 o 1.3, pero mantener las versiones antiguas debilita el servidor.
Desactiva TLSv1 y TLSv1.1 en la configuración del protocolo TLS del servidor.
Inicia sesión antes del cifrado
Una aplicación de correo electrónico puede iniciar sesión antes de STARTTLS
En los puertos 587, 143 y 110, un servidor que exige iniciar sesión antes del cifrado permite que una aplicación mal configurada envíe la contraseña en texto sin cifrar.
Permitir el inicio de sesión solo tras STARTTLS (Postfix: smtpd_tls_auth_only = yes; Dovecot: disable_plaintext_auth = yes).
Sin MTA-STS
Los remitentes no pueden exigir el cifrado
Sin una política MTA-STS, un servidor emisor no tiene forma de saber si tu dominio espera TLS, por lo que un ataque de rebaja de seguridad pasa desapercibido.
Publica una política MTA-STS, empieza en modo de prueba y, a continuación, cambia al modo de aplicación. El servicio MTA-STS alojado se encarga de proporcionar el archivo de la política por ti.
Sin TLS-RPT
No se oye hablar de fallos de TLS
Cuando los remitentes no pueden establecer una conexión TLS con tus servidores, no tienen dónde notificarlo, por lo que los problemas pasan desapercibidos.
STARTTLS es un comando que convierte una conexión de texto sin cifrar en una conexión TLS cifrada. El servidor de correo lo incluye en su respuesta al comando EHLO, el cliente envía STARTTLS y ambas partes realizan un protocolo de enlace TLS antes de que se envíe ningún dato del mensaje. Está definido para SMTP en el RFC 3207 y para IMAP y POP3 en el RFC 2595.
¿Es seguro STARTTLS?
Una vez completado el protocolo de enlace TLS, la conexión es tan segura como cualquier otra conexión TLS. El punto débil es la propia actualización: el protocolo STARTTLS de servidor a servidor es opcional, por lo que un atacante capaz de manipular la conexión puede eliminar la oferta STARTTLS y forzar la transmisión en texto plano. MTA-STS y DANE evitan esta degradación.
¿Cuál es la diferencia entre STARTTLS y SSL/TLS?
Ambos utilizan el mismo cifrado TLS. STARTTLS comienza sin cifrar y actualiza la conexión en los puertos 25, 587, 143 y 110. El TLS implícito, que a menudo se denomina SSL/TLS en los clientes de correo electrónico, cifra desde el primer byte en los puertos 465, 993 y 995. Para comprobar esos puertos, utiliza el verificador de certificados SSL.
¿Qué puerto utiliza STARTTLS?
En el caso del correo electrónico, STARTTLS se utiliza en el puerto 25 para la entrega de servidor a servidor y en el puerto 587 para los clientes de correo electrónico que envían mensajes. IMAP (puerto 143) y POP3 (puerto 110) también pueden utilizar STARTTLS. Los puertos 465, 993 y 995 utilizan, en cambio, TLS implícito.
¿Qué significa «Debe ejecutarse primero un comando STARTTLS»?
Se trata de un error de SMTP, normalmente 530 5.7.0, desde un servidor que exige cifrado antes de aceptar un inicio de sesión o un mensaje. Tu cliente de correo electrónico o tu aplicación se está conectando sin TLS. Activa STARTTLS (o TLS) en la configuración del servidor de salida del cliente y utiliza el puerto 587, o cambia a SSL/TLS en el puerto 465.
¿STARTTLS cifra el correo electrónico de extremo a extremo?
No. STARTTLS cifra cada tramo entre servidores, por lo que el mensaje está protegido durante el tránsito, pero se almacena sin cifrar en los servidores por los que pasa. Para un cifrado de extremo a extremo, utiliza S/MIME o PGP.
¿Por qué se agota el tiempo de espera de una prueba de STARTTLS en el puerto 25?
O bien no se puede acceder al servidor de correo en el puerto 25 (por un cortafuegos, un registro MX incorrecto o un servidor fuera de servicio), o bien la red desde la que realizas la prueba bloquea el puerto 25 de salida. Muchos proveedores de Internet domésticos y plataformas en la nube lo bloquean para evitar el spam. Esta prueba se ejecuta desde un servidor en el que el puerto 25 está abierto, y muestra el mensaje «sin respuesta» en lugar de «conexión rechazada».
¿Por qué mi servidor de correo funciona con un certificado autofirmado?
En el puerto 25, los servidores de envío cifran sin comprobar el certificado, a menos que tu dominio publique una política MTA-STS en modo «enforce» o registros DANE. Por lo tanto, la prueba muestra los problemas con el certificado en un servidor MX como advertencias y como fallos cuando la política MTA-STS en modo «enforce» cubre ese servidor. En los puertos 587, 143 y 110, las aplicaciones de correo comprueban el certificado, por lo que los mismos problemas se traducen en fallos en esos puertos.
¿Qué significa «XXXXXXXA» en una respuesta EHLO?
Un cortafuegos con inspección SMTP, normalmente un Cisco ASA o PIX, sustituyó la palabra clave STARTTLS por «X». Los servidores de envío ya no ven la oferta, por lo que envían el mensaje en texto sin cifrar. Desactiva la inspección ESMTP en el cortafuegos (no inspect esmtp) o permitir el uso de STARTTLS a través de él.
¿Cómo puedo probar STARTTLS con OpenSSL?
Correr openssl s_client -starttls smtp -connect mx.example.com:25 -servername mx.example.com -crlf. OpenSSL envía los mensajes EHLO y STARTTLS por ti y, a continuación, muestra la cadena de certificados, el protocolo y el cifrado. Utiliza -starttls imap en el puerto 143 y -starttls pop3 en el puerto 110.
¿Qué es el MTA-STS?
MTA-STS (RFC 8461) permite que tu dominio indique a los servidores remitentes que el correo debe entregarse a través de TLS a los servidores MX indicados, con un certificado válido. Los remitentes que lo admiten rechazan la entrega cuando falta STARTTLS o el certificado no es válido, lo que bloquea los ataques de degradación y de interceptación.
¿Qué es TLS-RPT?
TLS-RPT (RFC 8460) es un registro DNS que solicita a los servidores remitentes que te envíen informes diarios, por correo electrónico o HTTPS, sobre las conexiones TLS fallidas a tu dominio. Te indica cuándo hay problemas con STARTTLS, los certificados o MTA-STS que impiden la entrega cifrada.
Más herramientas gratuitas de seguridad para el correo electrónico
Un atacante puede eludir el STARTTLS por sí solo. Los servicios MTA-STS y TLS-RPT alojados de PowerDMARC garantizan el envío cifrado a tu dominio y te avisan cuando falla el TLS, sin que tengas que alojar tú mismo un archivo de políticas.
Enter a domain or mail server, for example example.com.Please enter a valid domain or host name (e.g. example.com).This test connects over IPv4. Enter a domain, a host name or an IPv4 address.Only ports 25, 587, 143 and 110 can be tested here. For ports 465, 993 and 995, use the SSL Certificate Checker.Enter a real host name, not a wildcard.Network error. Could not reach the STARTTLS test. Please try again.The test failed. Please try again.Please enter a valid domain or host name (e.g. example.com).This test connects over IPv4. Enter a domain, a host name or an IPv4 address.This address is private or reserved, so the test can't reach it.Too many tests from your network. Please wait a minute and try again.The test is busy right now. Please try again in a moment.A test from your network is already running. Please wait for it to finish.The test is not available right now. Please try again later.Open the SSL Certificate CheckerWe couldn't find {host} in DNS. Check the spelling.The DNS lookup for {host} failed. Please run the test again.{host} has no MX record and no IPv4 address, so it can't receive email.The test failed. Please try again.e.g. example.come.g. smtp.gmail.come.g. outlook.office365.come.g. outlook.office365.comSTARTTLS test for Port 25 · incoming mailPort 587 · submissionPort 143 · IMAPPort 110 · POP31 MX server{n} MX servers{n} testedDNSSEC-signed MXSTARTTLS works on every mail serverEvery MX server offers STARTTLS, completes the TLS handshake and presents a valid certificate.STARTTLS works on every mail server that answered{n} of {m} MX servers took the test and passed. The others didn't answer this time: see below.STARTTLS works on {host}The server offers STARTTLS, completes the TLS handshake and presents a valid certificate.STARTTLS works, with 1 warningSTARTTLS works, with {n} warningsMail is encrypted, but fix the items below to keep it that way.STARTTLS problem found (1)STARTTLS problems found ({n})Some mail may travel unencrypted or not be delivered at all. Start with the items marked Fix first.The mail servers couldn't be testedNo server took a complete test session this time. Each server below says why.{host} accepts no emailIts MX record is a null MX (RFC 7505): the domain says it receives no mail, so there is nothing to test.Some checks couldn't finish this time. Run the test again for a complete result.Mail for {domain} is hosted by {provider}. Mail apps connect to {host} on port {port}.Mail for {domain} is hosted by {provider}, which takes no STARTTLS connections on port {port}. Its mail apps use implicit TLS on port 465, 993 or 995.Mail for {domain} is received by {mx}.Your mail provider's setup guide names the host that mail apps connect to.Test {host}STARTTLSLowest TLS versionTLS versionMTA-STSTLS-RPTDANECertificateTest time{n} of {m}OfferedNot offeredNot tested{n} days leftExpired{n} sEnforceTestingOffBrokenUnknownNot setMissingEnabledInvalidValidNot usedFailingPartlyUnknownCheckResultStatusPassWarningFailInfo{n} passed{n} failed1 warning{n} warnings{n} infoTotal: {list}Domain checksTransport security policies for {domain}MTA-STS record and policyTLS-RPT recordMail serversMail serverMX {n}ChecksMX recordsMTA-STSTLS-RPTDANE (TLSA)DNS addressTest sessionConnectionGreetingSTARTTLSBefore the handshakeTLS handshakeTLS versionCipherCertificate expiryCertificate hostnameCertificate chainKey strengthSignature algorithmLogin before encryptionAfter encryptionDANE key rolloverReverse DNS (PTR)1 MX record{n} MX records{n} MX records, the first {m} testedNo MX record: mail goes to {host} itselfSome MX records are IP addresses or invalid names, which senders skipNo usable MX record: each one is an IP address or an invalid nameNull MX: the domain accepts no emailEnforce mode: senders deliver only over TLS with a valid certificateEnforce mode, but some servers fail it: senders won't deliver to themTesting mode: senders report failures but still deliverTesting mode, and some servers would fail in enforce modeThe policy is switched off (mode: none)No MTA-STS: senders can't require TLS, so a downgrade attack goes unnoticedNo MTA-STS, but DANE protects every serverA policy file exists, but no _mta-sts TXT record announces it, so senders never fetch itThe _mta-sts TXT record is invalid, so senders ignore the policyThe record is there, but senders can't use the policy: {why}The MTA-STS lookup failedThe record is there, but the policy couldn't be read from here: {why}. Run the test again.The record is there, but the policy host has only IPv6 addresses and this test connects over IPv4, so the policy wasn't checkedReports go to {rua}The record is invalid, so senders may send no reportsMore than one TLS-RPT record: senders send no reportsNo TLS-RPT record: you won't hear about failed TLS connectionsThe TLS-RPT lookup failedNo TLS-RPT record, although MTA-STS is in place: you won't hear about failed TLS connections, and in testing mode senders report only to a domain with TLS-RPTNo TLS-RPT record, although DANE is in place: you won't hear when senders can't verify your serversEvery tested server matches its TLSA recordsA server's certificate doesn't match its TLSA records: DANE senders won't deliver to itTLSA records fail DNSSEC validation: DANE senders hold the mailTLSA lookups fail: DANE senders hold the mailThe TLSA records use types mail servers ignoreThe MX records aren't DNSSEC-signed, so senders don't use DANE for this domainSome servers use DANE, others don'tNot used. DANE is optional: it pins your mail servers' certificates in DNS and needs DNSSEC. MTA-STS is the more widely supported option.Not used, although the MX records are DNSSEC-signedTLSA records exist, but no server could be testedThe TLSA lookups didn't answerTLSA records exist, but senders ignore them: the records or the servers' addresses aren't DNSSEC-validated{host} doesn't exist in DNS{host} has no IPv4 address{host} has only IPv6 addresses, and this test connects over IPv4{host} points to a private address ({ip}), which senders can't reachThe DNS lookup for {host} failedNot tested: this server was tested many times in the last minuteNot finished: the test ran out of timeThe server sent far more data than a mail server sendsThe test session failedConnection refused on port {port}: no mail server listens thereNo answer on port {port}: a firewall may block it, or the server is down{ip} can't be reachedThe connection to {ip} failedThe server refused our connection: {reply}The server took the connection but never greetedThe server closed the connection before greetingPort {port} doesn't answer like a mail server: {banner}The IMAP server logged us in without a password (PREAUTH), where STARTTLS isn't allowedOffered and accepted: {reply}A firewall hides the offer (XXXXXXXA), so senders deliver in plain text. The server itself accepts STARTTLSA firewall hides the offer (XXXXXXXA) and blocks the command: {reply}Not offered: the server's answer to {cmd} doesn't list {stls}Offered, but the command was refused: {reply}Offered, but the server didn't answer the commandOffered, but the server closed the connection at the commandThe server only speaks old SMTP (HELO), which has no STARTTLSThe server's answer to {cmd} isn't validThe server refused our {cmd}: {reply}The server didn't answer our {cmd}The server closed the connection at our {cmd}The server sent data in plain text after agreeing to STARTTLS. The test ignored it.Completed in {ms} msThe handshake failed: {detail}No TLS version or cipher in common with a current client: {detail}The server closed the connection during the handshakeThe handshake didn't finish in timeThe server agreed to STARTTLS, then didn't speak TLS{proto}, TLS 1.0 and 1.1 refused{proto}{proto}, but {old} still accepted{proto} negotiated (deprecated)TLS 1.0 and 1.1 tested on the first 6 servers onlyTLS 1.0 and 1.1 not tested and {cipher}{cipher} (an older CBC cipher){cipher}: no forward secrecy{cipher}: a broken cipherUnknownNot valid until {date}Expired {date} (1 day ago)Expired {date} ({n} days ago)Expires {date} (today)Expires {date} (1 day left)Expires {date} ({n} days left)Valid until {date} ({n} days left){host} = {name}{host} != {names}{host} != no DNS names on the certificate{cn}+{n} moreComplete and trusted (1 certificate sent)Complete and trusted ({n} certificates sent)The chain is complete, but trust can't be confirmed while the certificate is outside its validity datesIncomplete chain: the server doesn't send the intermediate certificateSelf-signed certificateThe chain ends at an untrusted rootA certificate in the chain doesn't match the one that should sign itAn intermediate certificate in the chain has expiredThe certificate isn't issued for TLS serversNot trusted: the chain failed verificationThe chain couldn't be verified this timeThe server didn't send a certificate{type} {bits}-bitA TLSA record matches the certificateNo TLSA record matches the certificate: DANE senders won't deliver hereThe TLSA records use types mail servers ignore (PKIX)The TLSA records fail DNSSEC validation: DANE senders hold the mailThe TLSA lookup fails: DANE senders hold the mailThe TLSA lookup didn't answerNo TLSA recordsTLSA records exist, but they aren't DNSSEC-signed, so senders ignore themThe MX records aren't DNSSEC-signed, so senders don't use DANE for this domainThe server's address isn't DNSSEC-signed, so senders don't use DANE for itTLSA records exist, but the server couldn't be testedA second key is pinned too (the next key, or your CA's), so a key change won't break DANEOnly the current key is pinned: publish the next key's record before you change keysThe record pins the whole certificate (3 0 x), so it has to change at every renewal{name}, which points back to {ip}{name} points back to {ip}, but the greeting names {banner}{name} doesn't point back to {ip}No PTR record for {ip}The reverse DNS lookup for {ip} failsThe reverse DNS lookup for {ip} didn't answer in timeNot checked: the test ran out of timeCovered by {pattern}, and the certificate is validNot listed in the MTA-STS policyCovered by {pattern}, but the certificate fails MTA-STS validationOffered before encryption: {methods}Only after encryptionNo login offeredDisabled until encryption (LOGINDISABLED)No login before encryptionNo login before encryptionUnknown: the server doesn't support the CAPA command{stls} is offered again after encryption (RFC 3207 forbids it)The server hung up right after the handshakeThe server didn't answer after the handshakeThe server refused {cmd} after the handshakeHow to fixFix firstFix soonOptional{hosts}: All {n} servers: Make sure a mail server listens on port {port}, or fix the record that points to this host.Port {port} on this host doesn't run a mail server. Point the record at your mail server.Turn on STARTTLS: install a certificate and enable TLS in the mail server (Postfix: smtpd_tls_security_level = may; Exchange: assign a certificate to the receive connector).Turn on STARTTLS in the mail server with a valid certificate (Dovecot: ssl = yes).The server offers STARTTLS but can't start TLS. Check its certificate and key files and its TLS logs.Turn off ESMTP inspection on the firewall (Cisco ASA: no inspect esmtp) or let STARTTLS through, so senders see the offer.Configure the server to answer EHLO (ESMTP). STARTTLS needs it.Check what answers on this port: no mail server sends that much before STARTTLS. A misconfigured service or a proxy may sit in front of it.Check the mail server's logs: it stops answering at STARTTLS.Nothing may follow the server's yes to STARTTLS before the TLS handshake (RFC 3207, RFC 2595). Data there is a server bug or was injected on the network path: check both.Check the TLS logs, the certificate and key paths, and enable TLS 1.2 and 1.3.Enable TLS 1.2 and 1.3 with current ciphers (ECDHE with AES-GCM or ChaCha20).Enable TLS 1.2 and 1.3, and disable TLS 1.0 and 1.1.Disable {old}. Both are deprecated (RFC 8996), and current senders use TLS 1.2 or 1.3.Prefer ECDHE key exchange, so recorded mail can't be decrypted later with the server's key.Disable RC4, 3DES, NULL and export ciphers.The certificate isn't valid yet. Check the server clock, or install the certificate that is currently valid.Renew the certificate now and reload the mail server. Then check why automatic renewal didn't run.Renew the certificate before it expires, and automate renewal so this doesn't become an outage.Use a certificate whose Subject Alternative Names include the server's host name.Reissue the certificate with every host name listed as a Subject Alternative Name.Install the full chain (the certificate plus the intermediates). Your CA provides it as fullchain.pem or a CA bundle.Replace the self-signed certificate with one from a public certificate authority. Let's Encrypt issues free certificates.Use a certificate from a publicly trusted certificate authority.Reinstall the certificate with the intermediate certificates your CA issued for it.Replace the expired intermediate with the current one from your CA's bundle.Request a certificate issued for TLS server authentication.Make sure the server sends the full chain from a publicly trusted certificate authority.Configure a certificate in the mail server's TLS settings.Generate a new key of at least RSA 2048-bit or ECDSA P-256 and reissue the certificate.SHA-1 and MD5 signatures are no longer trusted. Reissue the certificate with SHA-256.Publish TLSA records that match the current certificate (suggested below) or remove the stale ones. Add the new record before every key change.Use DANE-EE (3 1 1) or DANE-TA (2 1 1) records: mail servers ignore types 0 and 1.Fix the DNSSEC signatures of the TLSA records. Until they validate, DANE senders hold the mail.Fix the name servers so TLSA questions get an answer, even "no records". Until then, DANE senders hold the mail.Add an mx: line for this server to the MTA-STS policy, or remove it from the MX records.Fix this server's certificate. Under MTA-STS, senders refuse a server whose certificate doesn't validate.Offer AUTH only after STARTTLS (Postfix: smtpd_tls_auth_only = yes).Refuse plain-text logins before STARTTLS (Dovecot: disable_plaintext_auth = yes).Stop listing STARTTLS after TLS has started (RFC 3207).Point the MX records at host names (never IP addresses) of your mail servers.Remove or fix the MX records that are IP addresses or invalid names.Publish an MTA-STS policy. Start in testing mode, read the TLS reports, then switch to enforce.Your MTA-STS policy is switched off. Set it to mode: testing, then enforce.When the TLS reports show no failures, switch the policy to mode: enforce.Fix the servers that fail MTA-STS before switching the policy to enforce.Senders refuse the failing servers right now. Fix their certificates or the policy's mx lines.Publish the TXT record _mta-sts.{host} with v=STSv1; id= and a new id, so senders fetch your policy.Keep exactly one _mta-sts TXT record of the form v=STSv1; id=20260101 (up to 32 letters and digits).Fix the policy file at {url}. Until senders can read it, they act as if there were none.Run the test again. If the policy still can't be read, check that {url} answers quickly over IPv4 and IPv6.Publish a TLS-RPT record at _smtp._tls.{host}, for example v=TLSRPTv1; rua=mailto:tls-reports@{host}Fix the TLS-RPT record: v=TLSRPTv1 first, then rua= with mailto: or https: addresses.Keep one TLS-RPT record at _smtp._tls.{host}: with several, senders send none.Ask whoever runs the server's IP address (your hosting or mail provider) for a PTR record that names the server, and give that name an A record that points back.Give the server's PTR name an A record that points back to its IP address, so the reverse DNS is forward-confirmed.Publish a TLSA record for the next key (or a 2 1 1 record for your CA) well before you change keys or certificates, and remove the old one only after the change.Pin the public key instead of the whole certificate (3 1 1, and keep the key when you renew), or publish the next certificate's record before each renewal.CertificateConnectionCommon name (CN)Issued byValid fromValid untilKeySignatureSHA-256 fingerprintServer IPNot tested1 more IPv4 address{n} more IPv4 addresses1 IPv6 address{n} IPv6 addresses(the test connects to one IPv4 address per server)Alias ofGreetingProtocolCipher suiteTimingconnect {a} ms · greeting {b} ms · TLS {c} msOffered before encryptionOffered after encryptionNothing listedHost names covered (SANs)No SANs listed+{n} moreCertificate chainTrustedNot trustedServer certificateIntermediateRootTrusted rootMissingNot sentExpiredIssued by {name}In the trust storeExpires {date}Intermediate certificateThe server didn't send the certificate that links this chain to a trusted root.Fetched from the CA to finish the checksDANE: TLSA records at {name}RecordMatches the server's certificateMatches a certificate authority in the chainMatches nothing on the server's certificate chainNot used by mail serversWrong length for its typeMatches, but the chain to it doesn't verifyMatches, but the certificate doesn't name the serverMatches, but a certificate is outside its datesTLSA records for this certificatePublish one of these (3 1 1 pins the server's key, 2 1 1 its issuer's), in a DNSSEC-signed zone.Conversation ({n} lines)TLS handshake: {proto}, {cipher}Test stopped here ({code}){n} more lines not keptencryptedMTA-STSTXT recordPolicy fileModeMax ageMX patternsMX coverageProblemsReports go toNone{n} seconds ({d} days){host}: covered by {pattern}{host}: not coveredFetched ({type})Redirects to {location}: senders don't follow redirectsNot found (HTTP 404)HTTP {status} instead of the policyLarger than 64 KBIts HTTPS certificate has expiredIts HTTPS certificate doesn't cover the mta-sts hostIts HTTPS certificate is self-signedIts HTTPS certificate isn't trustedThe HTTPS handshake failedNothing answers on port 443No answer in timeNot fetched: the test ran out of timeThe server closed the connection without an answerCouldn't be fetchedThe mta-sts host doesn't existThe mta-sts host points to a private addressNot fetchedThe DNS lookup for the mta-sts host failedThe mta-sts host has only IPv6 addresses, and this test connects over IPv4A line isn't in the "key: value" formAn mx line isn't a host name or a *.zone patternA field appears twice (the first one counts)version: STSv1 is missingmode must be enforce, testing or nonemax_age must be 0 to 31557600 secondsmax_age is under a day, so senders keep the policy only brieflyThere is no mx lineField names and values are case-sensitive (write mode: enforce, not Mode: Enforce)The file starts with a byte-order mark, so the first line isn't readIt isn't served as text/plainThe id must be 1 to 32 letters and digitsThe record must start with v=STSv1There is more than one v=STSv1 recordThe record must start with v=TLSRPTv1rua= with a report address is missingA report address isn't a valid mailto: or https: addressTested {time} UTC from our server, which introduces itself as {helo}. Servers behind load balancers may answer differently on another connection.Make encryption mandatory, not optionalSTARTTLS alone can be stripped. Hosted MTA-STS and TLS-RPT enforce encrypted delivery to your domain and alert you when TLS fails.Get hosted MTA-STSCheck MTA-STSTesting, this can take up to 20 seconds.Test finished. {verdict}