Mail server monitoring that completes the SMTP conversation.
Most monitors check that port 25 is open and stop there. We read the banner, send EHLO, upgrade with STARTTLS and verify the TLS handshake, then watch the certificate and the MX, SPF and DKIM records your mail depends on.
We run mail servers for a living. The monitoring we used ignored them.
We are the team behind CloudMailin, and we have run email infrastructure for more than a decade. A mail server that stops accepting connections, or stops offering TLS, is an outage for us and for every customer whose mail we handle.
The monitoring we relied on was built for websites. To it, a mail server was a port that was open or closed. It could not tell us that the wrong server was answering, that STARTTLS had stopped working, or that a certificate was a week from expiry.
So we built the monitor we needed. Uptime Champion started as the thing that watches our own mail servers, and it still does, around the clock.
An open port is not a working mail server.
A server can accept connections and still be unable to take mail. Every check goes through the same steps a sending server does, and when one fails the error names it, with the server's reply where there was one.
The banner the right server is answering
Set the greeting you expect and the check fails when the banner starts with anything else. That catches a load balancer sending traffic to the wrong pool, or a default install answering after a rebuild. The banner we received is stored with the result.
expected 220 mail.example.com 220 localhost ESMTP Postfix, banner mismatch
EHLO the server is taking commands
A greeting is not a conversation. We send EHLO and expect it to be accepted. A server that is up and refusing work, because it is overloaded or its queue is full, fails here.
EHLO mail.example.com EHLO failed: 421 4.3.2 Service not available
STARTTLS encryption is on offer
Senders that require TLS will defer or bounce mail to a server that stops offering it. We issue STARTTLS on every check, and a server that does not accept it fails.
STARTTLS STARTTLS failed: 454 4.7.0 TLS not available
The TLS handshake verified against the hostname
We complete the handshake and verify the certificate against the hostname, as a strict sender would. An expired or mismatched certificate fails the check straight away, and its expiry and issuer are recorded on every pass.
TLS handshake failed after
STARTTLS: x509: certificate
has expired
The check ends when the handshake completes. It does not send a message.
Mail server certificate expiry, with warnings from 30 days out.
A mail server presents its certificate only after STARTTLS, so nothing that watches your website will ever see it. When it expires, mail from strict senders stops arriving and no web dashboard shows why.
Because we complete the handshake, we read that certificate on every check. You get a warning at 30, 14, 7, 3 and 1 days before it runs out.
There is more on the SSL certificate monitoring page.
[CERT] Inbound mail certificate expires within 14 days
Certificate warning for Inbound mail. Check: Inbound mail Warning: cert_14 Days until expiry: 14 Issuer: Example CA View: a link to the check
MX, SPF and DKIM records, watched next to the server.
Mail breaks when DNS changes, even when the server is healthy. A missing MX record means nothing arrives. A lost SPF entry or DKIM key means what you send starts failing authentication.
MX record monitoring matches by hostname, or by exact priority when a swapped primary and backup matters. SPF and DKIM are TXT records, matched by a string that must appear. Long DKIM keys published as split records are joined before matching.
These checks confirm the records are published and contain what you expect. See DNS monitoring for the detail.
# the records your mail depends on - name: "MX records" url: dns://example.com?type=MX expected: "10 mx1.example.com, 20 mx2.example.com" - name: "SPF record" url: dns://example.com?type=TXT expected: "include:spf.example.net" - name: "DKIM key" url: dns://selector1._domainkey.example.com?type=TXT expected: "v=DKIM1"
When it fails, you know which step and where.
Mail server checks get the same failure detail as everything else. Each result records how long the DNS lookup, the connection and the TLS handshake took, the address we connected to and the regions that saw it.
You can tell a name that stopped resolving from a refused connection from a broken handshake without opening a terminal. Response time for an SMTP check is the time until the banner arrives.
Failure diagnostics covers everything that is recorded.
An email for a confirmed outage, and nothing for a blip.
Mail servers get busy, and a single refused connection from one location is not an outage. A failure in one region is rechecked from another within seconds.
If the recheck gets through, we record a blip and nobody is emailed. If it fails too, the check is Down. You get one email when the outage is confirmed, and a recovery email that says how long it lasted.
[DOWN] Inbound mail is failing
[UP] Inbound mail has recovered after 6m 4s
-
London failed San Francisco passed
UpA blip. We record it and count it, and nobody is emailed.
-
London keeps failing San Francisco keeps passing
DegradedOne region cannot reach your server and another can. You see it in the dashboard.
-
London failed San Francisco failed
DownConfirmed from another region. Senders cannot reach you either.
It watches our own mail servers around the clock.
Every mail cluster we run at CloudMailin has its own SMTP check, and each one expects our own greeting in the banner. Our production depends on those checks being right.
- The SMTP conversation on every cluster
- The certificate each one presents
- The MX records for our receiving domain
- The SPF and DKIM records we send with
If it misses an outage or raises a false alarm on a mail server, we are the ones who pay for it.
Questions about mail server monitoring.
What does mail server monitoring check?
That the hostname resolves, the port accepts a connection, the server sends a greeting banner, EHLO is accepted, STARTTLS is accepted and the TLS handshake completes with a certificate that is valid for the hostname.
You can also require the banner to start with text you choose. Alongside it, DNS checks watch your MX, SPF and DKIM records.
Does it send a test email or test delivery end to end?
No. The check ends when the TLS handshake completes. It does not send a message, so there is no send-and-receive or round-trip delivery test, no inbox placement test and no deliverability scoring.
It tells you whether a sending server could reach yours, be greeted and negotiate TLS.
Can I monitor STARTTLS certificate expiry?
Yes. Every mail server check reads the certificate presented after STARTTLS and records the days until expiry and the issuer. Warnings are sent at 30, 14, 7, 3 and 1 days.
Which ports and mail servers can I monitor?
Any port you put in the address, with 25 as the default. The server has to offer STARTTLS, and one that does not will fail the check.
Ports that start TLS as soon as you connect, known as implicit TLS, are not supported.
What does response time mean for an SMTP check?
The time until the greeting banner arrives. The phase timing covers the DNS lookup, the connection and the TLS handshake.
Can I monitor MX, SPF and DKIM records?
Yes, with DNS checks next to the SMTP check. MX records match by hostname or by exact priority. SPF and DKIM are TXT records, matched by a string that must appear in them.
The rest of what it does.
Monitor your mail servers the way senders see them.
Join the waitlist for early access, and tell us about the mail servers you run.