git clone https://github.com/Anton-Babaskin/miab-radar.git
cd miab-radar
chmod +x miab-radar.sh
sudo ./miab-radar.shInspect a wider 48-hour log window:
sudo ./miab-radar.sh 48Note
Run directly on the Mail-in-a-Box host. The tool is terminal-first, dependency-light and focused on actionable findings.
miab-radar turns Mail-in-a-Box service state, queues, logs, DNS, TLS and security signals into a prioritized OK / WARN / FAIL view. It is built for operational troubleshooting—not dashboards or long-term metrics storage.
| Area | Signals |
|---|---|
| 📮 Mail flow | active/deferred/stuck queue, bounces, deferrals, senders, recipients and SMTP behavior |
| 🌐 DNS & reputation | MX, SPF, DKIM, DMARC, PTR and common DNSBL checks |
| 🔐 Security | Fail2Ban, brute-force signals, SSH posture and open-relay protection |
| 🔒 TLS | SMTP, IMAPS and HTTPS certificates, expiry and STARTTLS |
| 🖥️ Host health | Postfix/Dovecot/Nginx services, disk, inodes, mailboxes and backup freshness |
sudo ./install.sh
sudo miab-radarThe installer copies the executable to /usr/local/bin/miab-radar.
Example cron entry for a 30-minute health snapshot:
*/30 * * * * /usr/local/bin/miab-radar > /var/log/miab-radar.logFor automation, consume the exit code and preserve the full report for diagnosis.
| Code | Meaning |
|---|---|
0 |
All checks passed |
1 |
Warnings are present |
2 |
Critical findings detected |
- Mail-in-a-Box on Ubuntu/Debian
- Bash 4+
- Root privileges for full logs and service visibility
- Standard system and DNS utilities used by Mail-in-a-Box
- Bash: deterministic, inspectable checks
- Logs: the source of truth for mail flow
- Output: concise findings with next actions
- Overhead: no agents, database or heavy runtime
- mail-sec-audit — broad security posture across different Linux mail stacks.
- smtp-egress-audit — focused attribution of abnormal outbound SMTP connections.
- mail_analyzer.sh — deeper Postfix log statistics.
MIT — see LICENSE.
Anton Babaskin