Self-Heal Recovery

Automated service recovery that restarts crashed mail services and alerts you only when automatic recovery fails.

Self-Heal automatically detects and restarts crashed mail services without manual intervention. If a service cannot be recovered, an email alert is sent to the admin so they can investigate.

Business feature

Self-Heal Recovery is available on the Business plan and above. The Pro plan includes service watchdog with email alerts (without automatic recovery).

How it works

The health watchdog runs every 30 seconds. On Business and above, when a monitored service is detected as down:

  1. Automatic restart -- the watchdog attempts to restart the service immediately
  2. Verification -- waits a few seconds and checks if the service is running again
  3. Success -- if the service recovers, no alert is sent. The dashboard banner clears automatically
  4. Failure -- if the service cannot be restarted, an email alert is sent to the admin

This means most transient crashes (memory pressure, assertion failures, brief lock conflicts) are resolved automatically within minutes, without the admin ever needing to intervene.

Covered services

Self-heal monitors and recovers all mail server services:

ServiceRole
PostfixMail transfer agent (SMTP)
DovecotMailbox access (IMAP/POP3)
OpenDKIMDKIM email signing
MariaDBDatabase for domains, users, aliases
SpamAssassinSpam filtering
SpamAssassin MilterMilter bridge connecting SpamAssassin to Postfix
Nginx / ApacheWeb server (reverse proxy for dashboard and webmail)
UnboundLocal DNS resolver
RsyslogSystem logging
Fail2banBrute-force protection
CeyMail AI FilterAI-powered email screening (if enabled)

When self-heal cannot recover

Some failures require manual investigation:

  • Configuration errors -- a corrupted config file will cause the service to crash again immediately after restart
  • Disk full -- services cannot start if the disk is full
  • Port conflicts -- another process may be using the required port
  • Corrupted database -- MariaDB may need manual recovery if tables are corrupted

In these cases, the self-heal attempt fails, the email alert is sent, and the dashboard banner remains visible with a Restart button for manual intervention.

Comparison with Pro watchdog

FeatureProBusiness
Dashboard banner for all servicesYesYes
Email alerts for mail-critical servicesYesYes
Automatic restart on failureNoYes
Alert only if restart failsNoYes