github ShlomiPorush/mailcow-logs-viewer v3.0.0
3.0.0

one hour ago

[3.0.0] - 2026-11-30

Version 3.0 was months in the making: an all-new interface, a layout that works just as well on your phone, more features, and better visibility into security events, with protection rules that ban attackers for you.

Every page was redesigned. A new global search in the top bar helps you find anything across the whole app, such as messages, IP addresses or settings.

You can now add users with their own access permissions. To help you troubleshoot, you can also connect AI agents such as Claude Code or Codex, which can look into your logs and, when you allow it, take action for you.

Thanks to everyone who reported issues and suggested ideas along the way.

Warning

The first start of 3.0 updates the database before the app opens. On a large database this can take a few minutes, and the app's log shows each step. Meanwhile the browser shows the step and opens the app when it is done.

Added

  • Users with their own access - Add people under Settings > Users. Each person signs in with a password or through OAuth2 and gets a role: Admin, Operator, Viewer or Custom. People who already sign in through OAuth2 stay Admin until you change them. #544, #573. Thanks to @mumsa5054-source and @rglauco.
  • OAuth2 sign-in test - Turning on OAuth2 in Settings first asks you to sign in with your provider, and shows who signed in and the access they would get.
  • Recovery command - If you lock yourself out, or the app does not start because of its sign-in settings, docker compose run --rm app python -m app.recover sets a new password for the built-in admin. You do not need to edit .env.
  • Trust unverified email addresses - Some OAuth2 providers mark every email address as unverified. A new setting lets people with those addresses sign in with the access set for them in Users.
  • AI agents - Let AI agents such as Claude Code or Codex work with the app. A signed-in person approves each agent and decides whether it can only look or also take action. Off by default.
  • Protection rules - The Security page can ban attackers for you. Rules catch addresses that try trap accounts or unknown accounts, fail from a country you watch, fail many times from one network, or keep coming back, and each rule has its own ban length.
  • Cards for addresses, domains and IPs - Click an IP address, an email address or a domain to see what the app knows about it, with quick actions such as Ban, Allow or Open messages.
  • Search everything - The search in the top bar finds pages, settings, messages, domains, mailboxes, blocked addresses, jobs and attackers, and can act on them, for example ban an IP or run a job. It replaces the Dashboard search box.
  • Needs attention bell - A bell in the header shows what needs a look, such as a changed DNS record, a report email that failed to import, a possibly stolen password or an address that could not be banned.
  • Dashboard period and zoom - Choose the period the Dashboard shows, zoom into its charts, see a week's trend for each key figure, and undo a dismissed alert.
  • What led to a security alert - A sending spike, a burst of failed sign-ins or an outgoing spam block now shows the mail or sign-ins around it, so you can tell a hijacked mailbox from a normal mailing. The alert emails include a chart of the last 24 hours.
  • Devices page - See the phones, tablets and Outlook clients that sync over ActiveSync, with their user, last IP address and country. Thanks to AonH and DocFraggle on the mailcow community forum.
  • Mailbox activity - Mailbox Stats shows a small chart of each mailbox's sent and received mail, and the services it can use.
  • Block details - See why an address is blocked: its delivery failures, deleted queue messages and changes made by hand.
  • About page and credential checks - The About page shows the health of everything the app depends on, its version and its configuration. The read-write API key and the Rspamd password are checked when you save them and every 6 hours.
  • Ignore a stopped container or a blocklist - Mark a container you stopped on purpose, or a blocklist you don't care about, so it no longer causes warnings, alerts or emails.
  • Delete all reports of a domain - With report deletion on, delete every DMARC and TLS report of one domain at once. The report list can also be searched and sorted. Related to #412. Thanks to @eakteam.
  • Several folders for DMARC and TLS reports - Read reports from the IMAP folders you choose, with their subfolders if you want. #564. Thanks to @MrWeez.
  • Notifications - Send alert emails to several addresses, separated by commas, and send Telegram alerts to one topic of a group.
  • Date and time format - Choose how dates and times look on every page and in emails, under Settings > Application.
  • Sign out after inactivity - Sign people out after a set time without activity. It is off by default. A shorter maximum session now also applies to sessions that are already open.
  • mailcow 2026-11 support - Failed sign-ins in mailcow's new log format count again on the Security page and in alerts. Mailbox Stats shows mailboxes with sign-in turned off, shared mailboxes and the last SOGo sign-in.
  • API reference - Open /docs for a working reference of the app's API, including what every call returns.
  • Documentation website - All the documentation is now on one website, shlomiporush.github.io/mailcow-logs-viewer, with search and a page for every part of the app.
  • Help on every page - Every page has a help button that explains the page and links to its part of the documentation website.
  • Updates without downtime - A new version can start next to the running one and take over when the old one stops, so the app stays online during an update. The Deployment guide explains what your server needs.

Changed

  • New interface - The menu is now a sidebar that you can collapse to icons, and you can sort every list by any column. Messages loads more as you scroll, and on a wide screen shows a message's details next to the list.
  • Pages update by themselves - Every page refreshes on its own, so the Refresh button is gone.
  • DMARC & TLS page redesigned - One page instead of tabs: all your domains with a to-do list, and for each domain its mail flow, senders, reports and records, with a ready-to-copy record for the next policy step.
  • Security page rebuilt - Every address that tried to get in appears once, under To review, Banned or History, with what happened to it, next to the countries and networks the attacks come from. Banned has an Unban all button for Fail2ban's own bans.
  • Outbound and Rspamd pages - The queue and the suppression list are now one page, Outbound, and the Rspamd maps have their own page. In DISABLED_FEATURES, spam-filter is now suppressions and rspamd; the old name still turns off both.
  • Outbound settings - Stuck mail can be deleted without blocking its recipients. By default, a failure that is not caused by the address, such as a full mailbox or rejected content, no longer blocks it. #562. Thanks to @mumsa5054-source.
  • Two-way sync with Rspamd - Changes in the suppression list reach Rspamd, and changes made in Rspamd reach the list, so the Sync button is gone. With SUPPRESSION_RSPAMD_SYNC=false the list is kept but does not reach Rspamd, and Needs attention says so.
  • Turning a feature off deletes its data - When a feature is off, in Settings or in DISABLED_FEATURES, the app deletes the data only that feature uses at startup, such as its DMARC reports or quarantine rules. Turn the feature on before upgrading if you want to keep that data. The suppression list is always kept.
  • One time zone - Every page, email and job uses the time zone from TZ or Settings > Application, instead of the browser's. Without one, times show in UTC, so set it to keep local times. #19. Thanks to @seal-82.
  • SMTP abuse protection is now Outgoing spam - The feature is called Outgoing spam in Settings and on the Security page. It and Anomaly detection are no longer marked Beta.
  • Message linking settings - The Correlation tab in Settings is now Message linking, under Settings > Fetch.
  • Emails redesigned - Every email has the new look, works in light and dark mode and on phones, and has a plain-text version. The subjects of the blocklist, weekly summary and report import emails changed, so update any mail filters that match them.
  • Rate Limits history - Kept for 90 days by default (RATE_LIMITS_RETENTION_DAYS), separately from the other logs.
  • mailcow version check - The Dashboard notices a new mailcow version within an hour instead of a day.
  • API changes - /api/auth/logout and /api/blacklist/check now accept only POST, and GET /api/domains/{domain}/dns-check is now POST /api/domains/{domain}/check-dns. Update any scripts that call them.

Security

  • No start with a missing or example secret - The app does not start if POSTGRES_PASSWORD, MAILCOW_API_KEY or the secret of your sign-in method is empty, or if any password, key or secret is still an example value such as changeme. Set a real value before upgrading. ENV settings shows how to change the database password.
  • Protection from other websites - While the app was open in your browser, a page on another website could send requests to it in your name and make changes. The app now accepts requests only from its own pages. Behind a reverse proxy, pass the browser's Host header (see the reverse proxy guide). If a website of your own calls the app's API from the browser, add it to CORS_ALLOWED_ORIGINS; scripts and tools such as curl are not affected.
  • Notifications do not follow redirects - A notification URL that redirects now fails with an error. Use its final URL.
  • Outgoing spam counts only signed-in senders - Only mail sent by a mailbox that signed in counts, so mail from outside that uses one of your addresses as its sender can no longer get a mailbox's sending turned off. Mail sent from an alias now counts for its mailbox, so if you whitelisted an alias that sends in bulk, whitelist its mailbox instead.
  • Changing the password signs out other sessions - Changing the password ends every other open session, and a session can no longer start a new one without the password.
  • Live Logs stops when you sign out - An open Live Logs page used to keep showing logs after its session ended.
  • OAuth2 sign-in - Sign-in uses PKCE and keeps nothing on the server until it completes, so a flood of sign-in attempts can no longer stop everyone from signing in. The OAuth2 guide explains how to limit who can sign in.
  • Sign-in stays on when the database does not answer - If you turned on sign-in in Settings and the database did not answer while the app loaded its settings, the app ran without sign-in, open to anyone. Now it keeps sign-in on, and if it cannot read its settings at startup, it does not start.
  • Failed sign-ins from attackers no longer lock you out - An attacker who failed to sign in from many addresses could stop you from signing in from a new address, even with the right password. Now the right password always works, and IPv6 addresses are counted per /64 network.
  • Warning without sign-in - The log and the Dashboard warn when no sign-in method is set up.
  • Trusting your reverse proxy - The reverse proxy guide explains FORWARDED_ALLOW_IPS. Without it, the app sees every visitor as the proxy, so one attacker's failed sign-ins can slow down everyone.
  • Certificate checks for SMTP and IMAP - New settings SMTP_VERIFY_SSL and DMARC_IMAP_VERIFY_SSL check the mail server's certificate before the app sends it a password. They can be Off, Automatic or On, are Off by default, and Automatic is recommended.
  • Changing a server needs its password again - When you change the SMTP, IMAP, Rspamd, OAuth2 or notification server in Settings, enter its password or token again. Before, the app sent the saved password to the new server.
  • Limits for DMARC and TLS reports - Rarely, a report email is unusually large. An email over 20 MB or with more than 10 reports now stays in the mailbox and is marked as failed, a report may unpack to 10 MB instead of 50 MB, and the unused original report text is no longer stored.
  • A fake report can no longer hide a real one - Rarely, two reports have the same ID but different content. Both are now kept and marked Shared report ID, instead of the second one being dropped.
  • Fake bounces no longer block recipients - A remote server that Postfix rejected could have the rejection counted as a bounce. Now only the result of a real delivery attempt counts.
  • Automatic blocks are exact addresses - A recipient address written like a regular expression, such as /.*/, could make an automatic block cover every address. Automatic blocks are now always the exact address, and the next sync corrects lines already in the map.
  • Senders can no longer link their mail to other messages - The Message-ID was partly read from text the sender controls, so a sender could tie its mail to another message or make an earlier message show as discarded. Now the Message-ID comes only from Postfix, and Sieve results only from Dovecot.
  • Excluded addresses stay out of Messages - Mail of addresses in BLACKLIST_EMAILS is left out of every Messages view and export, including mail stored before you added them.
  • Safer display of values - Values from logs, reports, mailcow and settings are always shown as plain text, on every page, in emails, and in Slack and Discord alerts, so they cannot add links or mention people.
  • Safer requests to mailcow and domains - Domain names and quarantine IDs are encoded in requests to mailcow, and DNS checks limit how long and how much they read from a domain's own servers.
  • Limits for quarantine regex rules - Regex rules look at the first 1,000 characters, refuse nested repetition such as (a+)+, and stop each match after 0.1 seconds.
  • MaxMind license key kept out of the logs - A failed GeoIP download no longer writes the key to the log.
  • Hardened image - The image has no test tools or unused Python packages, the shipped docker-compose.yml runs it read-only, the build actions are pinned to exact versions, and the page's security policy blocks eval.

Fixed

  • When mailcow does not answer - Pages say so right away instead of waiting or showing an internal server error. The app catches up on its own within five minutes once mailcow is back, and keeps the local domain list. #384. Thanks to @kskarlatos.
  • mailcow changes sent twice - A quarantine release or another change is no longer sent again when mailcow answers slowly.
  • Messages that never showed - Messages with an empty or missing Message-ID header now appear on Messages.
  • Messages with many recipients - Message details keep each recipient's result and logs within reach, and the list counts every recipient. #476. Thanks to @mjisoton.
  • Recipients lost or rewritten - Two deliveries with almost the same log line are no longer treated as one, so neither is lost. Recipients show as the sender wrote them, not as the mailbox an alias leads to.
  • Reused queue IDs - A message that Postfix gave a used queue ID no longer shows the earlier message's time, lines or status. Stored messages are corrected on upgrade.
  • Message status - Messages that expired in the queue no longer stay deferred, Sieve discards are kept, and mail that Rspamd marked as spam shows as delivered once it was delivered, with its SPAM tag.
  • One odd line no longer stops an import - A log line, quarantine item or report email with an unusual character or a value over 255 characters is fixed or skipped on its own, without losing the lines fetched with it.
  • Rspamd history - Imports of several pages no longer skip an entry between two pages.
  • Quarantined mail with only an HTML part - Message details show the text of the HTML part instead of a dash. #413. Thanks to @kskarlatos.
  • Bounces in the DMARC mailbox - Bounces and other mail without a report are skipped instead of marked as failed. #417. Thanks to @Cisco30.
  • DMARC & TLS reports - Plain .xml DMARC reports and TLS-RPT ZIP files with any file name now import, report dates keep the right day, an import deletes only its own email, and import errors are always kept and sent to your notification channels.
  • Domains without recent reports - A rate with no messages behind it shows "-" instead of a red 0%, and domains that are no longer on the server are marked. #412. Thanks to @eakteam.
  • DNS failures shown as missing records - The record cards now say that the check failed. #360. Thanks to @piperino721.
  • DNS checks - SPF is checked according to RFC 7208, a DMARC record that starts with sp= shows its p= policy, checking one domain no longer resets the time of the last full check, and change alerts also report a removed SPF, DMARC or DKIM record and a changed DKIM key.
  • Suppressions and the queue - Each delivery failure counts once, blocks you set or turned off by hand stay as you left them, and mail to excluded or hosted domains is never blocked or deleted automatically. With Count then suppress, the upgrade lifts automatic soft bounce blocks and counts their bounces again from zero.
  • Suppression list - No more repeated or skipped rows, and saving no longer moves the expiry date.
  • Rspamd maps - The suppression sync no longer writes the map when it cannot read it, and the map editor refuses to save over a change made in the meantime, keeping your edits.
  • Fail2ban - A single IPv6 address is banned as /128, not /32, and Unban works when Fail2ban bans whole networks. An old /32 entry is marked Whole network; use Repair on Security > Lists if it was meant as one address.
  • Security - IPv6 attackers are listed with their own address, and the Events CSV export follows your filters.
  • Changes mailcow refused - Rate Limits and Outgoing spam say when mailcow refused a change, and why, instead of showing it as done or as an internal server error.
  • Blocklist alerts - Alerts count and list only hosts that need attention, not hosts listed only on blocklists that never alert, such as UCEPROTECT Level 2 and 3.
  • Blocklist check of a host name - A name without an address shows an error instead of clean, and a name with only an IPv6 address is checked.
  • Quarantine rules - Editing a Contains or Regex rule no longer changes its value or its match type, and rules this already changed are repaired on upgrade or marked for Repair. Exact Match on Subject ignores case.
  • Messages and Logs - Time ranges stay after a refresh, and CSV exports follow every filter.
  • Pages that went empty with the Logs page off - The logs other pages need are always collected.
  • Status and jobs - Every job is listed, a manual run no longer stalls the log import or hides its failure, failed imports and weekly summaries show as failed, and a failed update check no longer says Up to date.
  • GeoIP download failures - Status, Setup and Repair now show a failed MaxMind download, for example with a wrong license key, and what to check. The last working database stays in use.
  • Zeros after a failed read - Mailbox Stats and the weekly summary no longer show zeros when the database could not be read, and the summary shows Unknown when mailcow did not report the queue or quarantine.
  • Mail server that does not answer - Sending an email gives up after 30 seconds without an answer instead of waiting forever.
  • Feature switches - Turning off Mailbox Stats no longer empties the Rate Limits page, and adding a MaxMind license starts GeoIP updates without a restart.
  • Passwords with letters outside English - The sign-in page now accepts them.
  • Empty DMARC IMAP settings - An empty DMARC_IMAP_PORT or DMARC_IMAP_INTERVAL uses the default instead of breaking the import.
  • One notification destination stopping the others - An invalid webhook URL is refused when you save it and no longer holds up the other destinations.
  • Clear errors instead of internal server errors - You get a clear message when a proxy answers instead of Rspamd, a map line is too long or a suppression file is not UTF-8. A quarantine item with an impossible time is listed last, without a time.
  • Unknown API addresses - The API answers an unknown address with a JSON 404 error instead of the web page.
  • Setup texts - The mailcow API key path, the address each key must allow, env.example and the Logs settings defaults are now correct. #384.

Don't miss a new mailcow-logs-viewer release

NewReleases is sending notifications on new releases.