mailcow Logs Viewer¶
A self-hosted dashboard for mailcow mail servers. It collects mailcow's logs and reports into one place, so you can see what happened to every message, who is attacking the server and whether your domains are set up right. With a read-write API key it can also act: ban addresses, release mail, manage the queue and edit Rspamd maps.
Features¶
- Follow every message from arrival to delivery, with its spam score and full log, and export the list to CSV.
- See the mail queue and the quarantine, and act on them. Rules can release or delete quarantined mail for you.
- See failed logins, ban and unban addresses, and use protection rules to block attackers based on trap-account hits, repeat bans, network or country.
- Turn off sending for a mailbox that sends more mail than you allow.
- Read DMARC and TLS reports, and find out what to fix before you move to a stricter DMARC policy.
- Check SPF, DKIM, DMARC, MTA-STS, DNSSEC and DANE for every domain, and get an alert when a record changes.
- Watch containers, storage, background jobs and blocklist listings of your sending addresses.
- Per-mailbox mail counts, quota and rate limits, ActiveSync devices, and live logs of mailcow's services.
- Alerts by email, Slack, Discord, Telegram, ntfy, Gotify or your own webhook.
- Sign-in with a password or OAuth2/OIDC, light and dark themes, and a phone layout.
Screenshots¶
Quick start¶
You need Docker with Docker Compose, and a mailcow server with a read-only API key, created in the mailcow admin interface under System > Configuration > Access > Administrators > API.
- In mailcow, add
always_add_missing_headers = yestodata/conf/postfix/extra.cfand restart Postfix. Without a Message-ID on every message, much of the app cannot link the logs of a message; see Getting started. - Download
docker-compose.ymland create.envwith the commands in Getting started. They make.envreadable only by you and give it a random database password. - In
.env, set at leastMAILCOW_URLandMAILCOW_API_KEY. Turn on sign-in (BASIC_AUTH_ENABLED=truewithAUTH_USERNAMEandAUTH_PASSWORD), since anyone who can open the app can read all mail logs. - Start it with
docker compose up -dand openhttp://<your-server>:8080.
The full steps are in Getting started. To serve the app over HTTPS, see Reverse proxy.
Documentation¶
The documentation is published at shlomiporush.github.io/mailcow-logs-viewer. In the app, the help button next to a page title opens that page's help.
- Getting started
- Using the app
- Settings
- Environment variables
- Sign-in: Basic authentication and OAuth2/OIDC
- Reverse proxy
- Notifications
- API
- Changelog
Help and issues¶
- The app's own log:
docker compose logs app, or View Container Logs at the bottom of the sidebar. - Health check:
http://<your-server>:8080/api/health. - Bugs and feature requests: open an issue.
License¶
MIT License.
Credits¶
- Flag icons from Flagpedia.net.
- This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.



















