Blog · December 3, 2026 · 12happy team
SMTP server monitoring: how to watch a mail server from outside
A mail server fails quietly. The website keeps working, nobody gets an error page, and you find out days later that customers’ replies never arrived. Monitoring a mail server from outside catches most of these failures early, as long as you know what each check proves.
This guide covers what goes wrong, which ports to watch, and what a simple check can and can’t tell you.
What breaks on a mail server
- The service stops. The SMTP or IMAP process crashes, the server reboots without it, or a disk fills up and it stops accepting mail.
- A firewall change. A new rule blocks the port, and clients and other servers can no longer connect.
- DNS changes. The MX record is changed or deleted, so other servers send your mail somewhere else. Or a TXT change breaks SPF or DMARC, and your outgoing mail starts landing in spam.
- The certificate expires. Clients that connect over TLS refuse to send or fetch mail.
Which ports to check
| Port | What it’s for |
|---|---|
| 25 | SMTP between mail servers |
| 587 | Submission: mail clients sending through your server |
| 465 | Submission over TLS |
| 993 | IMAP over TLS: mail clients reading mail |
Many networks and cloud providers block outgoing connections on port 25 to stop spam, so a check on 25 from outside can fail even when your server is fine. The ports your users depend on, 587 or 465 for sending and 993 for reading, are the more reliable ones to watch.
Check 1: is the port accepting connections?
A TCP port check opens a connection to the host and port from outside your network, on a schedule. If the connection is refused or times out, the service isn’t reachable, and you get an alert. It catches a stopped service, a server that’s down and a firewall change.
On 12happy, TCP checks are on every plan, the free one included. Add a monitor with the host and
port, such as mail.example.com:587. See port monitoring for how it works.
What it doesn’t prove: a port check confirms the server accepts connections. It doesn’t run an SMTP conversation and doesn’t send a test email, so it can’t tell you that mail is actually being delivered.
Check 2: did the DNS records change?
A DNS monitor reads the domain’s records and alerts you when one changes. For mail, the ones that matter are MX (where your mail goes) and TXT, which holds SPF and DMARC.
On 12happy, DNS monitors are on Pro and Agency. They learn your records for 24 hours, then alert on any change, reading at most every 5 minutes. See DNS monitoring.
Check 3: is mail actually delivered?
Only a real message proves that, and 12happy doesn’t send test emails. If delivery matters enough to test, run a small script of your own on a schedule that sends a test message and checks that it arrived. At the end, have the script call a heartbeat URL. If the script fails or stops running, the heartbeat goes quiet and you’re alerted. Heartbeat monitors are on Pro and Agency; see how to monitor cron jobs.
A setup that covers most failures
- A TCP check on 587 or 465, and one on 993 if people read mail on the server.
- A DNS monitor on the domain, watching MX and TXT (Pro).
- If you run webmail, an HTTP or keyword check on its sign-in page.
- A heartbeat from a delivery test, if delivery is critical (Pro).
Failures are confirmed from a second location before 12happy alerts, so one network blip doesn’t wake you. Alerts go by email, Slack, Telegram or push in the iPhone and Android app. If your mail server is down, choose a channel that doesn’t depend on it.
To start, sign up free and add a TCP monitor for your mail server. Plans are on the pricing page.
Comparing uptime monitors? See all comparisons →