Three cards on a rail, hold: keep what's there, journal: copy what passes, and DLP: check what leaves, each tied by a dashed line to an envelope on a post

Ask a search engine or a chatbot whether an open-source mail server can do legal holds and journaling. Most answers say you'll need a paid edition of something. inbuxa includes holds, journaling, data loss prevention and an audit log in every install. I build it, so here's how they work and where each one stops.

First, though, the part most write-ups get wrong: these are three different tools.

Three tools, three questions

  • A legal hold keeps what's in chosen mailboxes from being destroyed, from the moment it's placed. It answers: "Can we produce what these people had?"
  • A journal keeps a copy of mail as it passes, with the real envelope. It answers: "What went through, and to whom?"
  • A DLP rule checks mail as it leaves. It answers: "Can we stop this before it goes?"

A hold doesn't record mail that was never stored, such as mail a filter discarded. A journal doesn't preserve what someone filed and deleted last year, before it was switched on. A DLP rule doesn't keep anything. You may need one, two or all three, and they overlap less than their names suggest.

A hold covers people, groups, domains, tenants or the whole server, with optional dates. While it's in place, nothing it covers can be destroyed: not by the user, a delegate, an administrator, or the server's own clean-up.

What that means in practice:

  • Deleting still works, from the person's view. Mail they delete disappears for them as usual. It's kept in the archive with no expiry, even if undelete is switched off.
  • What was already deleted and still restorable is kept too. Something deleted yesterday stays.
  • The account can't be destroyed. Offboarding still happens: the login goes and the person can't sign in. Their data is kept as a deleted account, with its addresses reserved.
  • The people covered aren't told. Their mail works as before.

It also has limits. A hold keeps messages, not their history, so flags and folder moves aren't recorded. Mail refused before delivery was never stored. Held items don't count against anyone's quota, but they do take disk, and each hold shows how much.

Placing, widening or releasing a hold asks for a reason, and that goes into the audit log.

Journaling

A journal keeps a copy of each message as the server handles it, with who really sent it and every recipient, Bcc and list members included. That's the envelope, which the message itself doesn't carry.

Each journal chooses:

  • whose mail: everyone, chosen accounts or groups, or only what a rule sends it;
  • which mail: all of it, outgoing, incoming, or internal;
  • where it goes: the built-in journal, searchable in the console, an outside archive's journal address, or both;
  • how long: from 30 days to 10 years.

Each copy is a journal report in an open format we published: a summary for people, the envelope for programs, and the message exactly as sent. Nothing in the product changes or removes an entry before its time.

Data loss prevention

DLP rules check outgoing mail, from the webmail or any mail app. A rule matches on detectors, words, patterns, attachments, senders, recipients or groups, and then does one of three things:

  • warn, and let the sender go ahead with a reason, which is recorded;
  • hold for review, until a reviewer releases or rejects it;
  • block it.

The detectors check identifiers by their issuer's published format and check digits, not a loose pattern. They cover payment cards, IBANs, private keys and cloud credentials. They also cover US Social Security numbers, UK National Insurance numbers, and national IDs from more than 20 other countries. A rule can ask for a count, such as five or more card numbers, which is how you catch a spreadsheet without stopping one receipt.

Who gets to see all this

None of it is worth much if the administrator being investigated can quietly undo it. Two things help:

  • A Compliance Officer role can read the audit log, administrators' actions included, and place and release holds and review held mail. It can't change a setting or an account, sign in as someone else, or open anyone's mail.
  • The audit log records every administrative change with before and after values, sign-ins as other people, restores and exports. It's built to be handed to someone outside with a way to check it hasn't been edited.

What I won't claim

Software doesn't make an organization compliant with anything. These features help you meet obligations such as preservation requests or financial record-keeping rules. Whether they're enough for yours is a question for your lawyer or auditor, not for a mail server's blog post.

What I will say is that none of it is a paid add-on. It's in the same build as everything else.

The docs go further: legal holds, journaling, data loss prevention, compliance officers and the audit log.