Verifica se i tuoi server di posta supportano STARTTLS e crittografano le e-mail durante il trasferimento. Inserisci un dominio per controllare ogni server MX: supporto STARTTLS, versione TLS, validità del certificato e l'intera conversazione SMTP, oltre alla configurazione di MTA-STS, TLS-RPT e DANE.
Come funziona il test STARTTLS
Il test comunica con i tuoi server di posta allo stesso modo in cui lo fanno Gmail, Outlook e altri mittenti quando ti inviano messaggi, e allo stesso modo in cui lo fanno le app di posta quando inviano o leggono i messaggi.
1
Trova i tuoi server di posta
Per un dominio sulla porta 25, cerchiamo i relativi record MX e testiamo tutti i server contemporaneamente, in ordine di preferenza. Un nome host viene testato singolarmente, sulle porte 25, 587, 143 o 110.
2
Eseguire la procedura di handshake
Ci colleghiamo, aspettiamo il saluto, inviamo EHLO, verificare che STARTTLS viene offerta, allora aggiorna la connessione a TLS e chiedi nuovamente cosa offre il server. Non viene inviato alcun messaggio e non viene registrato nulla.
3
Verifica la crittografia
Registriamo la versione e l'algoritmo di cifratura TLS, proviamo con TLS 1.0 e 1.1, verifichiamo la validità del certificato, confermiamo il DNS inverso di ciascun server e controlliamo la tua politica MTA-STS, il record TLS-RPT e i record DANE rispetto a quanto presentato da ciascun server.
Cosa verifica il test STARTTLS
La crittografia tra i server di posta dipende da più di un'impostazione. Questi sono i controlli che determinano se la posta destinata al tuo dominio viene crittografata e se i mittenti possono richiederne l'applicazione.
Richiesta e risposta STARTTLS
A prescindere dal fatto che il server elenchi STARTTLS dopo EHLO e risponde al comando con 220, con la trascrizione integrale della conversazione. Un firewall che nasconde l'offerta (XXXXXXXA) viene indicato.
Versione TLS e algoritmo di crittografia
Il protocollo e l'algoritmo di cifratura scelti dal server, nonché l'eventuale accettazione delle versioni obsolete TLS 1.0 e 1.1, sono stati verificati ciascuno con una procedura di handshake specifica.
Certificato
Date, nome host, catena di certificati fino a una radice attendibile, chiave e firma. Sulla porta 25, un certificato non valido genera un avviso, a meno che l'applicazione MTA-STS non imponga ai mittenti di verificarlo. Sulle porte 587, 143 e 110, le app di posta elettronica lo verificano, quindi la verifica fallisce.
MTA-STS e TLS-RPT
Il tuo _mta-sts record, il file delle politiche recuperato proprio come lo recuperano i mittenti, se tutti i server MX sono coperti e superano il controllo, e dove si trova il tuo _smtp._tls Il record invia rapporti TLS.
DANE
I documenti TLSA sono disponibili all'indirizzo _25._tcp di ciascun server MX, convalidati con DNSSEC e confrontati con il certificato da esso presentato, insieme ai record da pubblicare per quel certificato.
Accedi prima della crittografia
Se un server di invio, IMAP o POP3 consenta a un'applicazione di posta elettronica di effettuare l'accesso prima di STARTTLS, il che comporterebbe l'invio della password in chiaro, e quali funzionalità offra una volta che la password è stata crittografata.
Che cos’è STARTTLS?
STARTTLS è un comando che trasforma una connessione e-mail in chiaro in una connessione TLS crittografata. Definito per il protocollo SMTP nella RFC 3207, consente ai server di posta sulla porta 25 e ai client di posta elettronica sulla porta 587 di avviare la connessione in chiaro e di passare alla crittografia prima che venga inviato qualsiasi contenuto del messaggio. I protocolli IMAP e POP3 utilizzano lo stesso meccanismo di aggiornamento sulle porte 143 e 110.
Crittografia durante il trasferimento
Una volta effettuato l'aggiornamento, il messaggio, le sue intestazioni e gli allegati viaggiano in forma crittografata tra i due server, in modo che non possano essere letti sulla rete.
Opportunistico per impostazione predefinita
Lo STARTTLS da server a server è facoltativo. Se manca o non va a buon fine, la maggior parte dei mittenti invia il messaggio in testo semplice anziché rifiutarlo.
Vulnerabile agli attacchi di downgrade
Un malintenzionato presente sulla rete può eliminare l'offerta STARTTLS, facendo sì che la posta venga inviata in chiaro. MTA-STS e DANE colmano questa lacuna.
STARTTLS vs SSL/TLS: quale porta utilizza quale protocollo
STARTTLS potenzia una connessione che inizia in testo in chiaro. Il TLS implicito, spesso indicato come SSL/TLS nei client di posta elettronica, crittografa i dati fin dal primo byte. Entrambi utilizzano lo stesso protocollo TLS una volta avviata la crittografia. Questo test copre le porte STARTTLS; lo strumento di verifica dei certificati SSL copre quelle del TLS implicito.
Porte e-mail e relativa crittografia
Porto
Protocollo
Crittografia
Utilizzato per
25
SMTP
STARTTLS (facoltativo)
Consegna da server a server ai vostri server MX
587
Invio tramite SMTP
STARTTLS (obbligatorio)
Client di posta elettronica e app per l'invio di e-mail
465
SMTPS
TLS implicito
Client di posta elettronica che inviano messaggi (come raccomandato dalla RFC 8314)
143 / 993
IMAP / IMAPS
STARTTLS / TLS implicito
Leggere la posta
110 / 995
POP3 / POP3S
STARTTLS / TLS implicito
Scaricare la posta
Come testare STARTTLS con OpenSSL
È possibile eseguire lo stesso controllo da un terminale. Molti provider Internet bloccano la porta 25 in uscita sulle connessioni domestiche, quindi, se si verifica un timeout, eseguilo da un server.
# Trova i tuoi server MXdig +short MX example.com
# Verifica STARTTLS sulla porta 25 e visualizza il certificatoopenssl s_client -starttls smtp -connect mx1.example.com:25 \
-servername mx1.example.com -crlf
# La porta di invio, IMAP e 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
# Verifica se è disponibile STARTTLS (cerca 250-STARTTLS)nc mx1.example.com 25
EHLO test.example.org
Ecco come si presenta un server in funzione250-STARTTLS → 220 Pronto
Dopo EHLO, il server elenca le sue estensioni. 250-STARTTLS significa che supporta la crittografia. Quando il client invia STARTTLS, un 220 La risposta indica che è possibile avviare l'handshake TLS. A 454 Una risposta o l'assenza della riga STARTTLS comporta che i mittenti invino i messaggi a quel server in chiaro.
Problemi comuni relativi a STARTTLS e come risolverli
Questi sono i problemi che il test rileva più spesso sui server di posta e le soluzioni da adottare per ciascuno di essi.
STARTTLS non disponibile
Il server non annuncia STARTTLS
Ogni messaggio inviato a questo server viene trasmesso in testo semplice. Ciò accade spesso dopo la scadenza di un certificato, quando un amministratore disabilita il protocollo TLS, oppure su dispositivi obsoleti.
Installa un certificato e abilita il protocollo TLS sul tuo server di posta (per Postfix, smtpd_tls_security_level = may).
Errore durante la stretta di mano
È disponibile STARTTLS, ma TLS non funziona
Il server accetta il comando, ma l'handshake fallisce: manca un file di certificato, la chiave non corrisponde oppure non vi sono versioni TLS o algoritmi di cifratura in comune.
Controllare i log TLS del server di posta, verificare i percorsi dei certificati e delle chiavi e abilitare TLS 1.2 e 1.3.
Nascosto da un firewall
EHLO mostra XXXXXXXA invece di STARTTLS
Un firewall dotato di ispezione SMTP ignora l'offerta, quindi i mittenti non la vedono mai e inviano i messaggi in testo semplice, anche quando il server a monte supporta il protocollo TLS.
Disattivare l'ispezione ESMTP (Cisco ASA: no inspect esmtp) oppure consentire il passaggio di STARTTLS.
Certificato non attendibile
Certificato autofirmato, scaduto o non corrispondente
I mittenti opportunisti continuano a effettuare le consegne, ma MTA-STS e DANE richiedono un certificato valido. Con MTA-STS in modalità "enforce", la consegna non va a buon fine.
Utilizzare un certificato emesso da un'autorità di certificazione pubblica (CA) i cui SAN includano il nome host MX e automatizzare il rinnovo.
Vecchie versioni di TLS
TLS 1.0 o 1.1 sono ancora accettati
Entrambe sono obsolete (RFC 8996). Gli attuali mittenti negoziano TLS 1.2 o 1.3, ma mantenere attive le vecchie versioni compromette la sicurezza del server.
Disattivare TLSv1 e TLSv1.1 nelle impostazioni del protocollo TLS del server.
Accedi prima della crittografia
Un'app di posta elettronica può effettuare l'accesso prima di STARTTLS
Sulle porte 587, 143 e 110, un server che richiede l'autenticazione prima della crittografia consente a un'applicazione configurata in modo errato di inviare la password in chiaro.
Consenti l'accesso solo dopo STARTTLS (Postfix: smtpd_tls_auth_only = yes; Dovecot: disable_plaintext_auth = yes).
Nessun MTA-STS
I mittenti non possono imporre la crittografia
Senza una policy MTA-STS, un server mittente non ha modo di sapere se il tuo dominio richiede l'uso di TLS, quindi un attacco di downgrade passa inosservato.
Pubblica una politica MTA-STS, avvia la modalità di prova, quindi passa alla modalità di applicazione. Il servizio MTA-STS in hosting gestisce il file della politica per conto tuo.
Nessun TLS-RPT
Non si sente mai parlare di errori TLS
Quando i mittenti non riescono a stabilire una connessione TLS con i tuoi server, non hanno a chi segnalarlo, quindi i problemi rimangono nascosti.
Pubblica un record TLS-RPT (_smtp._tls.example.com) per ricevere i resoconti giornalieri. Scopri di più su TLS-RPT.
Domande frequenti
Che cos’è STARTTLS?
STARTTLS è un comando che trasforma una connessione in chiaro in una connessione TLS crittografata. Un server di posta lo include nella propria risposta a EHLO, il client invia STARTTLS ed entrambe le parti eseguono un handshake TLS prima che vengano inviati i dati dei messaggi. È definito per SMTP nella RFC 3207 e per IMAP e POP3 nella RFC 2595.
STARTTLS è sicuro?
Una volta completato l'handshake TLS, la connessione è sicura quanto qualsiasi altra connessione TLS. Il punto debole è proprio il passaggio a un protocollo più sicuro: lo STARTTLS da server a server è facoltativo, quindi un malintenzionato in grado di manomettere la connessione può rimuovere l'offerta STARTTLS e forzare la trasmissione in chiaro. MTA-STS e DANE impediscono questo downgrade.
Qual è la differenza tra STARTTLS e SSL/TLS?
Entrambe utilizzano la stessa crittografia TLS. STARTTLS avvia la connessione in chiaro e la crittografa sulle porte 25, 587, 143 e 110. Il TLS implicito, spesso indicato come SSL/TLS nei client di posta elettronica, crittografa i dati fin dal primo byte sulle porte 465, 993 e 995. Per verificare tali porte, utilizzare lo strumento SSL Certificate Checker.
Quale porta utilizza STARTTLS?
Per la posta elettronica, STARTTLS viene utilizzato sulla porta 25 per la trasmissione da server a server e sulla porta 587 per i client di posta che inviano messaggi. Anche IMAP (porta 143) e POP3 (porta 110) possono utilizzare STARTTLS. Le porte 465, 993 e 995 utilizzano invece TLS implicito.
Cosa significa "È necessario inviare prima un comando STARTTLS"?
Si tratta di un errore SMTP, solitamente 530 5.7.0, da un server che richiede la crittografia prima di accettare un accesso o un messaggio. Il tuo client di posta elettronica o la tua app si sta connettendo senza TLS. Attiva STARTTLS (o TLS) nelle impostazioni del server in uscita del client e utilizza la porta 587, oppure passa a SSL/TLS sulla porta 465.
STARTTLS crittografa le e-mail da un capo all’altro?
No. STARTTLS crittografa ogni hop tra i server, quindi il messaggio è protetto durante il transito ma viene memorizzato in chiaro sui server attraverso i quali transita. Per la crittografia end-to-end, utilizzare S/MIME o PGP.
Perché il test STARTTLS va in timeout sulla porta 25?
O il server di posta non è raggiungibile sulla porta 25 (a causa di un firewall, di un record MX errato o di un server fuori servizio), oppure la rete da cui si esegue il test blocca la porta 25 in uscita. Molti provider Internet domestici e piattaforme cloud la bloccano per impedire lo spam. Questo test viene eseguito da un server in cui la porta 25 è aperta e, oltre al messaggio "connessione rifiutata", restituisce anche il messaggio "nessuna risposta".
Perché il mio server di posta funziona con un certificato autofirmato?
Sulla porta 25, i server di invio effettuano la crittografia senza verificare il certificato, a meno che il dominio non pubblichi una politica MTA-STS in modalità "enforce" o record DANE. Pertanto, il test segnala i problemi relativi al certificato su un server MX come avvisi e come errori quando la politica MTA-STS in modalità "enforce" copre quel server. Sulle porte 587, 143 e 110, le applicazioni di posta verificano il certificato, quindi gli stessi problemi vengono segnalati come errori.
Cosa significa XXXXXXXA in una risposta EHLO?
Un firewall dotato di ispezione SMTP, in genere un Cisco ASA o PIX, ha sostituito la parola chiave STARTTLS con degli "X". I server di invio non vedono più la richiesta, quindi inviano i messaggi in testo normale. Disattivare l'ispezione ESMTP sul firewall (no inspect esmtp) oppure consentire il passaggio di STARTTLS attraverso di esso.
Come posso testare STARTTLS con OpenSSL?
Esegui openssl s_client -starttls smtp -connect mx.example.com:25 -servername mx.example.com -crlf. OpenSSL invia EHLO e STARTTLS automaticamente, quindi visualizza la catena di certificati, il protocollo e l'algoritmo di cifratura. Utilizza -starttls imap sulla porta 143 e -starttls pop3 sulla porta 110.
Cos'è MTA-STS?
MTA-STS (RFC 8461) consente al proprio dominio di comunicare ai server mittenti che la posta deve essere consegnata tramite TLS ai server MX elencati, utilizzando un certificato valido. I mittenti che supportano questo protocollo rifiutano la consegna in assenza di STARTTLS o in caso di certificato non valido, bloccando così gli attacchi di downgrade e di intercettazione.
Cos'è TLS-RPT?
TLS-RPT (RFC 8460) è un record DNS che richiede ai server mittenti di inviarti rapporti giornalieri, tramite e-mail o HTTPS, relativi alle connessioni TLS non riuscite al tuo dominio. Ti mostra quando problemi relativi a STARTTLS, ai certificati o a MTA-STS impediscono la consegna crittografata.
Altri strumenti gratuiti per la sicurezza della posta elettronica
Rendere la crittografia obbligatoria, non facoltativa
STARTTLS, da solo, può essere aggirato da un malintenzionato. I servizi MTA-STS e TLS-RPT in hosting di PowerDMARC garantiscono la consegna crittografata al tuo dominio e ti avvisano in caso di errore TLS, senza che tu debba ospitare autonomamente un file di policy.
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}