Skip to content

What's new in 2.4.0#

This page covers what's new in Piler enterprise edition 2.3.2, 2.3.3, 2.3.4 and 2.4.0, since 2.3.1. For the detailed engineering changelog, including fixes, security improvements and the upgrade steps, see the Changelog.

Revision #1

Publication date: 2026-DEC-01

AI assistants over MCP#

Ask an AI assistant about your archive. Piler serves the archive read only over MCP (Model Context Protocol) to clients such as Claude Code, Claude Desktop and VS Code: the assistant searches, reads emails and whole threads, and lists attachments with the user's own access rights, through a personal API token of the user. It's off by default (MCP_ENABLED). Auditors use it only when AUDITOR_MCP_ACCESS is on, with a read budget, short-lived tokens and an audit entry for bulk reading. See AI assistants over MCP.

Personal API tokens#

Scripts no longer need a password and a TOTP code. Each user creates their own tokens in the settings (the gear icon), read only or full, with an expiry; the admin, auditor and data officer tokens are limited to the addresses they're allowed from. The admin sees and revokes every user's tokens in Users > API tokens. See Personal API tokens.

Stronger two-factor authentication#

  • TOTP, the backup codes and the settings belong to the account, whatever address the user logs in with.
  • Wrong TOTP codes are limited: after 5, the user's codes are refused for 15 minutes, and the audit log records it.
  • The REST API login asks for the TOTP code too.
  • Reset TOTP in Users helps a user who lost the authenticator and the backup codes. See Two-factor authentication.

Retention until the end of the year#

The German retention periods (HGB §257(5), AO §147(4)) start at the end of the calendar year of the document. With RETENTION_UNTIL_YEAR_END=true, an email with a retention of 365 days or more is kept to the end of the year its retention ends in, and purged on 1 January of the next year; shorter retentions, such as a 30-day spam rule, keep their date. It can be set per tenant, and the retention page, the rule simulation and the configuration report show it. See Until the end of the year.

Piler 1.x archives without conversion#

The web UI, reindex, pilerexport and the restore read the emails and attachments that piler 1.x encrypted with Blowfish, in place, and the purge removes them when their retention ends.

Search by a part of an address#

jane or doe finds jane.doe@example.com in the sender and recipient search, as in piler 1.x. Emails archived before 2.4.0 match this way after a reindex.

Reliable IMAP imports#

  • A message is removed from the IMAP server only after it's archived, and an import job never removes any. The messages that failed are kept and retried when the job runs again.
  • import.sh -requeue <job id> runs a partial or failed job again, and a daily warning names the jobs that need attention. See Running a job again.
  • The counts of a job match the archive: duplicates are counted as such, and a resumed job skips no message.
  • Jobs survive a killed or crashed run, more than one import node, and a pilerimport that can't start.
  • Messages keep their read/unread state on the server.

For service providers#

  • tenant/add and create-tenant.sh can be run again for a tenant: an existing tenant with the same settings changes nothing, a clash is a clear error, and an interrupted provisioning finishes on the next run. See Adding tenants from a script.
  • The 2.3 line is a long-term support (LTS) line with fixes only, and its own Docker image tags. See Supported versions.

Easier reading#

  • A long message shows its first part with a neutral note and a link to the whole message, instead of a red "Truncated message!" box.
  • Blocked remote images are light grey boxes with a short note.
  • The thread badge of the search results is faster on long threads, and works on a multi-node setup.
  • Dates are in the user's timezone everywhere: the search results, the message preview, the data officer's removal requests and the audit dashboard.
  • The days before a conversation is pending can be set per tenant and by each user.

Safer purge and export#

  • purge -restore-id with -retain-days N keeps a restored email for N days. See Restore a purged email.
  • The export skips an email whose attachment can't be read, lists it in skipped-messages.tsv, and ends with an error, so no incomplete email goes into an export.

Security hardening#

  • Every Manticore query passes its values separately from the query, so no value, e.g. a header of an archived email, can change it (needs Manticore 25.0.0 or newer).
  • Behind a reverse proxy, piler records the client's address only from a trusted proxy (TRUSTED_PROXIES), and the health page warns about a missing setting. See Reverse proxy and the client's address.
  • Every write request to the admin API is audited, refused ones too.