Blog

Email Migration Compliance: HIPAA, GDPR and SOC 2

Email migration compliance guide for HIPAA, GDPR and SOC 2 — encryption, chain of custody, BAAs, data residency, and audit evidence that holds up.

PS

Priya Shah

Senior Systems Engineer

Reviewed by Dan Okafor
· 14 min read
Compliance documentation and audit evidence on a desk

A migration that loses data is bad. A migration that loses data in a way you can't reconstruct, can't audit, and can't defend is a regulatory event. If you're migrating mail under HIPAA, GDPR, or SOC 2, the technical work is a fraction of the job. The rest is evidence: who saw what, under which contract, with which controls, at which point in time. This guide walks the compliance terrain you need to cross before, during, and after the migration — the controls, the contracts, and the audit artefacts that actually hold up.

Skip the manual setup — let Mailbox Taxi handle it

One desktop app, every IMAP provider, zero data leaving your machine.

What "compliant migration" really means

Compliance frameworks don't say much about email migration specifically. What they say is broader: protect the data, document the controls, prove the controls were in place. A migration is a processing activity that touches sensitive data in transit, often crosses jurisdictional lines, and almost always involves third-party tooling. Every one of those facets has compliance implications.

The three frameworks IT teams meet most often:

  • HIPAA. US healthcare. PHI must be protected at rest and in transit. Business Associate Agreements (BAAs) cover anyone who touches PHI on your behalf. Breach notification is legally required.
  • GDPR. EU/UK personal data. Lawful basis, data subject rights, cross-border transfer rules, processor agreements (Article 28), and the DPIA process. Fines have teeth.
  • SOC 2. US-centric controls audit, often demanded by enterprise customers. Migrations show up as change-management events, vendor-risk events, and access-control events. The audit asks for evidence; you need it on file.

These overlap more than they differ. The controls that satisfy HIPAA's transmission security rule largely satisfy GDPR's Article 32 integrity-and-confidentiality requirement and SOC 2's CC6.7 transmission controls. Build the controls once; map them to each framework.

Data in transit: encryption that actually meets the bar

Every byte of mail you migrate is in transit at some point. The auditable question is not "did you use encryption" but "which version of which protocol, on which connection, with which cipher suite, and how do you prove it?"

The protocol versions auditors expect

Minimum acceptable today: TLS 1.2 with strong cipher suites (anything still using RC4, 3DES, or export-grade ciphers fails). TLS 1.3 is the modern expectation and what most providers default to.

Both ends of every connection matter:

  • Source IMAP/POP/EAS/Graph connection: client to source provider.
  • Destination IMAP/Graph/EWS connection: client to destination provider.
  • Any intermediate hop (proxy, gateway, vendor relay): client to intermediate, intermediate to source/destination.

Each hop is its own TLS negotiation. The weakest hop is your effective security posture.

What to document

For the audit file, you need:

  • TLS version negotiated per connection (e.g., "TLS 1.3 with TLS_AES_256_GCM_SHA384").
  • Source and destination FQDNs and verified certificates.
  • Timestamps showing connection establishment and termination.
  • Failure-mode behaviour: what happens if TLS negotiation fails? Hard fail, not silent fallback.

STARTTLS downgrade is a real risk

If your migration path includes any IMAP server that supports STARTTLS rather than implicit TLS, verify it doesn't accept plaintext fallback when STARTTLS fails. A STARTTLS handshake failed message that retries in clear is a compliance event. Configure the client to hard-fail.

Local-first vs cloud-relay encryption surface

A cloud-relay migration tool adds a hop. Source provider → vendor cloud → destination provider. That hop has its own TLS, its own infrastructure, and its own attack surface. It also means the vendor's cloud sees your data, even briefly.

A local-first migration tool runs on a machine you control. Source provider → your client → destination provider. Two hops, both yours.

For regulated workloads, local-first is structurally easier to defend. There's no third-party infrastructure between source and destination to vet, no vendor data residency story to litigate, no extra BAA to negotiate. The data residency email migration breakdown gets into the geographic side; the architectural difference is what matters here.

Chain of custody and audit logging

Chain of custody is the documentary trail showing what happened to each piece of data, when, by whom, under what authority. For email migration, "each piece of data" usually means each mailbox, sometimes each folder, occasionally each item.

The four log requirements

A defensible audit log for migration contains:

  1. Identity events. Every authentication to source and destination. Successful and failed. With user/service principal, timestamp, source IP, and result.
  2. Data movement events. Per-mailbox, per-folder counts of items read from source and written to destination, with timestamps. Mismatches between read and written counts are the single most important audit signal.
  3. Configuration events. Every change to migration scope, batch composition, or destination tenant configuration during the project.
  4. Access events. Who accessed the migration tool, the credential store, the report output. This is the SOC 2 access-control story.

If your tool doesn't produce these, you're producing them manually. That's fine for one-off jobs and unsustainable at scale.

Timestamping that survives review

Logs need timestamps in a format an auditor can correlate against other systems. UTC, ISO 8601, second-resolution minimum, millisecond-resolution preferable. Local-time logs are a finding waiting to happen because daylight-saving boundaries and timezone ambiguity make correlation impossible.

The email migration audit log post gets into specific log schemas and how to structure them for retention.

Retention

Three rules of thumb:

  • HIPAA. Retain documentation for 6 years from the date of creation or last in effect.
  • GDPR. Retain processing records for the duration of processing plus the limitation period. In the UK that's commonly 6 years.
  • SOC 2. Retain evidence for at least one audit cycle (typically 12 months) but practitioners recommend 3 years for change-management evidence.

The conservative posture: 6 years for everything migration-related. Storage is cheap; replaying a 4-year-old audit finding is not.

HIPAA-specific concerns

HIPAA's transmission security rule (45 CFR 164.312(e)) requires technical safeguards to guard against unauthorized access to ePHI in transit. Migration is one of the highest-risk in-transit events you'll do.

The BAA question

If you're a covered entity migrating PHI, anyone who handles that PHI on your behalf is a Business Associate. They need a BAA.

For migration tools:

  • Cloud-relay tools. Almost certainly need a BAA. The vendor's cloud touches PHI. If they won't sign a BAA, you can't use them for HIPAA-covered work. Full stop.
  • Local-first tools. Often don't need a BAA, because the vendor's infrastructure doesn't see PHI. The vendor sees licensing data and possibly anonymous telemetry. Confirm the tool's data flow with the vendor in writing and file that confirmation.

The asymmetry matters. A BAA is a multi-month legal process at most vendors. If you can avoid it without compromising the migration, you save calendar time and reduce vendor-risk surface.

Minimum-necessary applies during migration

HIPAA's minimum-necessary standard applies to migration too. You should only migrate what's needed; you should only let people see what's needed.

  • Don't grant migration engineers access to mailbox content unless they need it. Most modern tools work with admin tokens that authorize the migration without exposing message bodies in a UI.
  • Restrict the destination tenant's admin role assignment during cutover.
  • Document the principle of least privilege in your migration runbook.

Breach notification readiness

If a migration job fails in a way that constitutes a breach (PHI exposed to unauthorized parties), HIPAA breach notification clocks start ticking. 60 days to notify affected individuals, HHS, and sometimes media.

The procedural prerequisites:

  • A documented incident response process that includes migration-specific scenarios.
  • Audit logs sufficient to scope the breach (which mailboxes, which items, what period).
  • A named breach response lead who is reachable during the cutover window.

The healthcare email migration HIPAA deep-dive covers the specific clauses and the practical runbook for covered entities.

GDPR-specific concerns

GDPR treats migration as a processing activity. You need a lawful basis, you need to document it, you need to handle cross-border transfers, and you need to respect data subject rights even during the migration.

Lawful basis

For most workplace email migrations, the lawful basis is legitimate interest (Article 6(1)(f)) or contractual necessity (Article 6(1)(b)). For migrations involving special-category data (health, biometric, criminal), you need an additional Article 9 condition.

Document the basis before the migration starts. "We were migrating email" is not a defence; "We were migrating email under Article 6(1)(b) to fulfil our employment contracts with the data subjects, documented in the migration project plan dated [date]" is.

Processor agreements (Article 28)

Any third party that processes personal data on your behalf is a processor. They need an Article 28 contract that includes:

  • The subject matter and duration of processing.
  • The nature and purpose.
  • The types of personal data and categories of data subjects.
  • Your obligations and rights as controller.

Migration tool vendors who handle data on your behalf are processors. Local-first tools where the vendor never sees the data may not be — but you should still document why.

Cross-border transfers

If you're moving data from the EU/UK to a country without an adequacy decision (notably the US, despite the Data Privacy Framework — confirm current status), you need a transfer mechanism:

  • Standard Contractual Clauses (SCCs), updated to the 2021 versions.
  • Binding Corporate Rules (BCRs) for intra-group transfers.
  • An adequacy decision (UK has its own list separate from the EU).
  • Derogations under Article 49 (narrow, rarely a long-term option).

Document the transfer mechanism per project. The mechanism applies separately to:

  • The migration tool vendor's access to data (if any).
  • The destination tenant's region vs the data subjects' region.
  • Any sub-processors in the chain.

The GDPR email migration walk-through covers the documentation checklist for a typical EU-to-EU and EU-to-US migration.

Data subject rights during migration

Subject rights (access, rectification, erasure, restriction, portability) continue during migration. A few specifics:

  • Erasure. If a data subject requests erasure mid-migration, you need a process to handle it without breaking the migration's chain of custody. Usually: pause the affected mailbox, document the request, erase from both source and destination, log the action.
  • Access. A subject access request landing during migration is awkward because data is in flux. Either complete the SAR from the source pre-migration or from the destination post-migration, and document which.
  • Portability. Less common during migration but worth flagging. The right to data portability covers data the subject provided to you, in a machine-readable format. Migration outputs are not automatically SAR responses; they're tooling artefacts.

SOC 2-specific concerns

SOC 2 is a controls-and-evidence framework rather than a prescriptive standard. The Trust Services Criteria that touch migration most directly:

  • CC6.1. Logical access controls.
  • CC6.7. Restriction of transmission, movement, and removal of information.
  • CC7.2. System monitoring.
  • CC8.1. Change management.

A migration is a change. It's a transmission. It's a monitoring event. Auditors will ask for evidence across all four.

Evidence to collect during the project

For a SOC 2 audit covering the migration period, expect to provide:

  • Change request and approval documentation.
  • Risk assessment (often a short risk register entry).
  • Vendor risk assessment for any migration tool used (security questionnaire, SOC 2 report from the vendor, BAA/DPA as applicable).
  • Access logs for the migration tool and target systems.
  • Configuration of TLS and authentication.
  • Post-migration validation evidence (item counts, error reports, sign-off).

The SOC 2 email migration breakdown maps each TSC to a specific artefact you'd hand to your auditor.

Vendor risk assessment

For any tool you use, your SOC 2 audit will ask:

  • Do you have a current SOC 2 report from the vendor?
  • If not, what compensating evidence do you have?
  • Did you assess the vendor before deployment?
  • Is the vendor's residual risk acceptable?

Local-first tools have an easier story here too. The vendor's blast radius is smaller because they don't host your data. The compensating evidence story is shorter.

One vendor-risk file, many frameworks

Build a single vendor-risk dossier per tool, then map sections to HIPAA, GDPR, and SOC 2 separately. The questions overlap; the evidence is the same. Maintaining three separate dossiers is the most common avoidable cost in compliance ops.

If any of the data being migrated is under legal hold or litigation hold, the migration is not a routine project. It's a potentially court-discoverable event.

Pre-migration

  • Identify all hold subjects with legal before discovery starts.
  • Get a written record of which mailboxes are on hold and the hold scope.
  • Decide: migrate held mailboxes as a separate, documented job, or freeze them at the source until the hold lifts.

During migration

  • Held mailboxes go in their own batch with their own runbook.
  • Every item must be logged. Counts at source, counts at destination, errors itemised. No silent skips.
  • The migration engineer working on held mailboxes should be different from the one working on the rest, where staffing allows. Reduces the chance of cross-batch contamination.

Post-migration

  • Validation evidence specific to held mailboxes goes to legal.
  • Source mailboxes for held subjects stay live until legal signs off. Don't decommission on the standard timeline.

The case for local-first migration tools in regulated industries

Across HIPAA, GDPR, and SOC 2, three architectural properties make compliance easier:

  • Fewer parties touching the data. Every party is a vendor risk, a BAA candidate, a processor agreement, an SCC partner. Fewer parties means less paperwork and less attack surface.
  • No data at rest at the vendor. Migration tools that don't store your mail at the vendor's infrastructure simplify residency, retention, and breach scoping.
  • Direct provider-to-provider movement. The cleanest possible audit story: "Data went from source to destination over a TLS-encrypted connection initiated on hardware we control, with logs we retain, and the tool vendor never saw the content."

Cloud-relay tools can absolutely be compliant. The point is not that they fail; the point is that they add documentation burden and risk surface that local-first tools don't.

For regulated work — healthcare, financial services, government contracting, anything covered by SOC 2 audit, law firms with privileged data — the architectural advantage of local-first compounds across every framework.

Putting it together: a compliance-ready migration checklist

Before the project starts:

  • Risk register entry filed.
  • Lawful basis (GDPR) and BAA status (HIPAA) confirmed.
  • Vendor risk assessment complete for every tool.
  • Cross-border transfer mechanism documented if applicable.
  • Encryption posture verified end to end.
  • Audit log schema confirmed.
  • Retention period set.
  • Legal hold subjects identified and segmented.
  • Incident response process reviewed for migration-specific scenarios.

During the project:

  • Authentication and access events logged.
  • Per-mailbox/per-folder counts captured.
  • Configuration changes logged.
  • TLS version and cipher captured per connection.

After the project:

  • Validation evidence stored with the project record.
  • Migration logs archived to the retention period.
  • Vendor risk file updated with any incidents or anomalies.
  • Sign-off from the data owner (and legal, for held data).

The complete email migration guide has the technical playbook; this guide is the compliance overlay. Run both side by side and you have a migration that survives audit, regulator review, and litigation discovery.

Try Mailbox Taxi

Migrate your mailbox the easy way

Join the waitlist for early access and lock in launch pricing.

Related reading

Try Mailbox Taxi

Migrate your mailbox the easy way

Join the waitlist for early access and lock in launch pricing.