Self-hosted email for EU data sovereignty

Moving mail off Microsoft 365 or Google Workspace to EU-controlled servers changes who can lawfully access messages, how deliverability is kept and who operates filtering and backups. This page explains the decisions and the evidence to collect.

On this page

Why self-hosted email for EU data sovereignty is a transfer question first

Moving mail to EU-controlled servers removes the routine transfer path, but it does not by itself remove third-country legal reach. An EU organization whose mail sits with a US-headquartered provider has to ask two questions: where the mailbox data is stored and administered, and whether anyone outside the EU can compel access to it. The EDPB's Guidelines 05/2021 treat remote access from a third country, even just displaying data for support, as a transfer, and storage outside the EEA as one too. Once mail is hosted in your own EU infrastructure and administered by EU staff, that routine path closes. The controller still has to assess exposure to foreign authority requests, including those under the US CLOUD Act, because the EDPB's Example 12 says complying with such a request would itself be a transfer. Start by mapping every place mail, backups, logs and administrator sessions touch, then record who can reach each one from outside the EU.

On platforms, the short answer is that Stalwart, mailcow and OX App Suite are the candidates, and the choice follows three factors: mailbox scale, groupware needs and the support model you need. Stalwart, licensed under AGPL-3.0, bundles IMAP, JMAP, SMTP, CalDAV, CardDAV and WebDAV in one server, which suits a smaller estate that wants a single component to operate. mailcow, licensed under GPL-3.0, is a Docker-based stack that many teams run for a moderate mailbox count. OX App Suite fits organizations that need a full groupware suite and a commercial support path, but it is delivered as Helm charts on Kubernetes and requires Istio or an ingress option, so it changes the operating model. Confirm each vendor's licensing terms for your use, since OX notes that some modules may carry separate fees.

This section covers only what differs from a generic email migration: the transfer analysis, the legal-reach assessment, and the decisions that change because the mail is sovereign by design. Mailbox moves, DNS cutover and client configuration follow the same steps as any migration and are covered in the migration and requirements pages. Treat the transfer assessment as a gating decision that comes before you select a platform, because it determines which administrators, backup locations and support contracts are acceptable. Ask any implementation partner to show, in writing, where each administrator session originates and where backups are stored.

Which requirements a sovereign mail build has to meet

This table maps the legal and contractual requirements that shape a sovereign mail build to what each one means for mailboxes, backups and administration. Read each row as a design input: the question to answer first, then the evidence a privacy or compliance assessor will expect to see. The main takeaway is that the mail server location alone does not settle sovereignty; the processor chain, support access and backup copies each need their own answer.

RequirementSourceWhat it means for the build
Transfer mapping of every mailbox, backup copy and admin sessionGDPR Article 44; EDPB Guidelines 05/2021 (version 2.0)Map where mailbox stores, offsite backups, log stores and administrator sessions physically sit. Remote support from a third country that only displays data counts as a transfer, so vendor engineers need the same scrutiny as storage.
Third-country authority access to mail data18 U.S.C. 2713 (CLOUD Act); GDPR Article 48; EDPB Recommendations 01/2020Ask every processor whether it is subject to a non-EU disclosure law that reaches data held in the EU. Where a provider must see mail in the clear and such powers exceed what is necessary, document why supplementary measures are insufficient.
Switching and third-country access duties for data processing servicesEU Data Act Articles 25, 29, 32 and 50 (Regulation (EU) 2023/2854)Confirm that any hosted component can be exited within the notice and transition periods, and that switching charges are not a barrier after the stated date. Use the same test for managed services, and record how each provider prevents unlawful third-country access to non-personal data.
Processor contracts and standard contractual clausesCommission Implementing Decision (EU) 2021/914Put the processor chain in writing, including subprocessors that touch mail, backups or support tooling. Confirm the clauses match the actual data flows, since a clause that covers the wrong transfer does not evidence the right one.
DORA applicability for financial entities using ICT third partiesRegulation (EU) 2022/2554 (DORA)Financial entities should confirm with their own compliance team whether mail is a supported ICT service. If so, expect register-of-information entries, exit planning and contractual terms covering the mail provider, and check how the implementation partner fits that register.

Which open-source mail platform fits a sovereignty mandate

Stalwart is an all-in-one mail and collaboration server that supports IMAP, JMAP, SMTP, CalDAV, CardDAV and WebDAV in a single product. It is licensed under AGPL-3.0 and is offered with an optional Enterprise License from Stalwart Labs, and the current release referenced in the project's repository is v0.16.26, published on October 11, 2026. Its single-binary model suits teams that want a small number of moving parts and have strong mail administration skills already in house.

  • Protocol coverage: IMAP, JMAP, CalDAV, CardDAV and WebDAV are handled by one server, which reduces the number of separate components to patch and monitor.
  • License choice: AGPL-3.0 requires source disclosure for modified network services, so legal review should cover any internal changes. The Enterprise License is a separate commercial option whose terms must be read directly.
  • Team fit: Teams comfortable with mail flow, DNS and TLS administration will get the most from it, since spam filtering, DKIM and reputation work still fall to the operator.
  • Scale planning: Confirm clustering, high availability and backup behavior against the version you intend to run, since these depend on the release and configuration.
  • Support path: Decide whether community support or the Enterprise License fits your procurement and audit expectations.

Before you commit, check the current feature list, the Enterprise License terms and the supported upgrade path in the project documentation.

How the mail, relay, filtering and archive parts connect

A self-hosted mail estate is a chain of components, and each one sits on a different trust boundary and touches different personal data. The cards below follow a message from the EU-hosted mail store through relay, filtering, identity, backup and migration, so you can see where personal data is held, who can administer it and which contracts or controls must cover each hop.

EU-hosted mail store and endpoints

This is the system of record: mailboxes, calendars, contacts and the IMAP, JMAP, SMTP and CalDAV or CardDAV endpoints users connect to. It sits inside the boundary you define, typically your own EU cloud account or data center, and holds the full content of every message. Confirm where the mailbox storage physically resides, who holds root and database access, and whether any remote support session can display data from outside the EEA, since EDPB guidance treats that as a transfer. Stalwart and mailcow both expose these protocols, so verify the exact set your chosen platform supports.

Outbound relay and clean IP path

Outbound mail leaves through either your own EU-hosted address space or a smarthost that you contract and control. This hop carries message headers, bodies and recipient addresses to third-party mail systems, so it is where personal data leaves the EU in the transfer sense if the relay operator is outside the EEA. Ask the relay provider where its sending infrastructure is located, what it logs, how long it retains logs, and how it handles reputation issues. Also confirm that reverse DNS, TLS and SPF or DKIM alignment are in place before you cut over.

Inbound filtering layer

Inbound filtering scores every message for spam, malware and spoofing before it reaches a mailbox. It reads full message content, including attachments, so it processes personal data in the same trust boundary as the mail store unless you place a gateway in front. Confirm whether the filter runs on your infrastructure or in a vendor cloud, where quarantine data is kept, who can release quarantined messages, and how false positives are reviewed. Rspamd and ClamAV are common open-source options, and a commercial gateway in front changes the processor list you must document.

Identity and directory integration

Mailbox logins, admin consoles and webmail sign-in should draw from your corporate directory through OIDC or SAML, so that joiners, leavers and access reviews happen in one place. This boundary carries authentication attributes, group memberships and session tokens, which are personal data in their own right. Confirm which identity provider you will federate with, whether it is hosted inside your EU boundary, how local fallback accounts are controlled, and how mailbox access events are logged for audit. OX App Suite documents OpenID Connect and SAML options, and Stalwart supports directory integration, so check the specific mode you need.

EU-held backup target

Backups copy the entire mailbox store, including deleted items and attachments, so the backup target carries the same personal data as production. If the backup location, replication target or cloud snapshot is outside the EEA, you have created a transfer with the same obligations as the primary store. Ask for the backup location in writing, the encryption keys' custody, the restore test schedule, and the retention period for each backup generation. Make sure restores are tested against the mailbox format your platform uses, not only file-level copies.

Migration bridge from the source tenant

During the move, a temporary connection reads mailboxes, calendars and contacts from Microsoft 365 or Google Workspace and writes them to the new EU store. The bridge sees all historical content, so it is a processing activity in its own right and must be covered by your records of processing. Confirm the migration tool's location, whether it stores copies of data on an intermediate server, how credentials are scoped and revoked afterward, and how you will verify message counts and folder structure. Once migration ends, remove the bridge credentials and document that step as part of your transfer record.

How a sovereign mailbox migration is rolled out in phases

The sequence moves mail, calendars and contacts to EU-controlled servers in stages, so each phase produces evidence for transfer decisions, sender reputation and retention before the source tenant is switched off.

  1. Map transfers and personal data flows

    Start by inventorying every place mail, calendars, contacts and mail-related logs currently live, including backups, archives, support access and any third-country sub-processors. Record who can access the data from outside the EEA, including remote support sessions, because the EDPB treats those as transfers. The output is a data map and transfer register signed off by the controller, which feeds the platform decision. Done means every flow is classified and each open transfer question has a named owner.

  2. Select the platform and confirm EU hosting

    Choose the mail platform against the requirements the data map produces, such as IMAP, JMAP, CalDAV and CardDAV support, archiving needs and whether a supported edition is required. Confirm the hosting location, the operator's legal domicile and the exposure to third-country authority requests, which the EDPB asks controllers to assess before engaging a processor. The output is a written decision record covering the platform, the hosting location and the contractual terms. Confirm with the vendor or operator which licensing terms apply, since some modules may carry separate fees.

  3. Design DNS and sender authentication

    Design the DNS records for the domain before any mail moves: MX, SPF, DKIM keys and a DMARC policy that starts in monitoring mode. Plan how the new platform will sign outbound mail and how the old provider's records will be retired or kept during coexistence. Reverse DNS, TLS certificates and the sending IP reputation for the new host also belong here. The output is a DNS change plan and a reviewed record set, with each record tested against a sample message before it goes live.

  4. Run coexistence and pilot mailboxes

    Route a small group of pilot mailboxes to the new platform while mail for everyone else continues on the source tenant. Test sending and receiving to Gmail, Outlook and other major providers, free/busy lookups across both systems, shared mailboxes and mobile clients. Confirm that message headers show correct DKIM and SPF alignment for each pilot. The output is a signed pilot report listing issues, fixes and the user groups cleared for bulk migration.

  5. Migrate mailboxes and calendars with verification

    Move mailboxes, folders, calendars, contacts and shared resources in batches, using a migration tool that supports the source and target protocols. After each batch, compare item counts, folder structures and calendar entries against the source and sample messages for content integrity. Keep the source data read-only until verification passes. The output is a per-batch verification log that shows which mailboxes are complete and which items need a second pass.

  6. Cut over and check retention before retiring the source

    Switch MX and client configuration for the remaining users in a planned window, then keep the source tenant available for a defined period to catch late delivery and stragglers. Before the source tenant is closed, confirm that every retention obligation is met, including exports or archives of mail that regulation requires you to keep and legal holds. The Data Act sets switching and exit rights for cloud customers, which can inform the exit terms you negotiate. The output is a retention sign-off and a documented decommission record for the old tenant.

  7. Monitor deliverability and reputation after cutover

    After cutover, watch DMARC aggregate reports, postmaster dashboards from major providers, blocklist status and bounce patterns on a fixed schedule. Tune spam and malware filtering using false positive reports from users, and adjust sending policy when legitimate mail is affected. Backups, restore tests and the on-call path for outages stay in scope for ongoing operations. The output is a monitoring runbook with named owners and a record of the first post-cutover review, showing that authentication passes and delivery issues are closed.

Evidence a data protection officer or auditor will ask for

This table lists the records a data protection officer or auditor usually asks for when mail moves to EU-controlled servers, what each one shows, and which component produces it. DeployOpen prepares this evidence as part of implementation, but auditors, regulators and your own legal team assess whether it is sufficient. Use the table as a checklist before the first review meeting, not as proof of compliance.

Evidence itemWhat it showsWhich component produces it
Records of processing and transfer mapWhich mailbox data is held, where it is stored, and whether any copy or remote access crosses outside the EEAYour records of processing, maintained with the DPO and updated during migration design
Processor and sub-processor listEvery operator, hosting provider and support party with access to mail data, including any with non-EU parent companiesWritten contracts with the hosting provider, managed service partner and any outsourced spam or relay service
Standard contractual clauses or equivalent contract termsThe legal basis for any transfer that remains, and the contractual commitments on government access requestsData processing agreement and transfer clauses signed with each processor, based on Commission Implementing Decision (EU) 2021/914 where relevant
Hosting location and admin access logsWhere mail servers and databases run, and who from which location administered themInfrastructure provider region records, bastion or jump host logs, and mail platform administrator audit logs
Backup location and encryption recordsWhere backups are stored, how they are encrypted, and who holds the keysBackup software configuration, backup target inventory and key management records
DMARC aggregate reportsWhether mail sent from your domains is authenticated and whether unauthorized senders use your domainDMARC report receiver for your domains, plus SPF and DKIM configuration records
Filtering policy change recordsWhen spam, malware and quarantine rules changed, who approved each change, and what it affectedChange tickets, version-controlled filter configuration and the filtering engine's own logs
Exit and switching plan under the Data ActHow you would move mailboxes and calendars to another provider or on-premises infrastructure, and within what notice periodYour exit plan, maintained with the platform team, and the export tests run against a sample mailbox set

What buyers ask before moving mail to EU-controlled servers

What drives the cost of self-hosted email for EU data sovereignty?

The cost is driven by four parts: the servers and storage in your chosen EU location, an outbound relay or clean sending IP addresses, the spam and malware filtering layer, and the people who run it. Hardware or cloud infrastructure is usually a recurring cost, while migration, design and initial hardening are one-time costs. Mailbox count, message volume, archive retention length and the number of domains move the total up or down. Storage grows every year with retained mail, so ask any partner to show the growth assumption behind its storage line. A quote should list each component separately, state who pays for each one (your cloud account, your hardware, the vendor, or the implementation partner), and name the recurring items such as support, patching and backup capacity. Compare that total with your current per-mailbox subscription, including any licensing you would still need for a supported groupware edition.

Can our team move mail to self-hosted servers without a partner?

Some internal teams can, but the work is broader than installing a mail server. The team needs skills in DNS, TLS certificates, SPF, DKIM and DMARC, mail routing, backup and restore testing, and the monitoring that tells you when mail is being rejected. Migration also needs a cutover plan, a coexistence period and a way to confirm that no mailbox lost messages. Open-source platforms such as Stalwart and mailcow each document their own install paths, and OX App Suite v8 is designed to run on Kubernetes and is delivered as Helm charts that require Helm 3.17.0 or newer, so the platform choice shapes the skills you need. A practical test is whether you have people who can own the service on call, not only deploy it once. DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted platforms inside the client's own infrastructure, so a fixed-scope engagement can cover the parts your team does not want to build alone.

How long does a mailbox migration off Microsoft 365 or Google Workspace take?

The duration depends mainly on total mailbox size, the number of mailboxes, the source platform's throttling limits, the number of shared mailboxes and calendars, and how much history must move. Large archives and many small mailboxes take different paths, and pilot batches usually reveal throttling and client issues before the full run. We do not state a duration here because no researched figure is available for this scope. Ask any implementation partner for a migration plan that sets out batches, pilot mailboxes, the order of DNS and routing changes, the coexistence period and the rollback point, and ask for the throughput assumption it used for your data volume. Confirm with your current provider which export and API limits apply to your tenant before you accept a schedule.

Who runs spam filtering and backups under each hosting model?

Responsibility splits differently for self-hosted, partner-run and hosted email, and the split should be written into the contract. In a self-hosted model, your team or the partner runs the filtering engine, tunes false positives, manages blocklist responses and tests restores, which makes those tasks your own operating duty. In a partner-run model, the partner operates these services in your infrastructure under a fixed scope, and you retain ownership of the data and the decisions about retention. In a hosted SaaS model, the provider runs filtering and backups, but you have less control over where data is processed and restored. Ask each option to state, for every control, who configures it, who monitors it, who responds to an incident, how often restores are tested and where the backup copies are stored. Backup location matters for sovereignty, so check it as carefully as the primary mailbox store.

Does self-hosting email remove GDPR transfer risk completely?

No. Hosting in the EU reduces transfer exposure but does not remove every obligation. Under GDPR Article 44, every transfer of personal data to a third country, including onward transfers, must meet Chapter V conditions, and the EDPB's Guidelines 05/2021 state that remote access from a third country, even only displaying data on a screen for support, is a transfer. Storage in a cloud outside the EEA is also a transfer. Using an EU processor that is subject to third-country law with extraterritorial effect is not itself a transfer, but complying with a third-country authority request would be, so controllers should assess that exposure before engaging the processor. Check who has administrative access from outside the EEA, where backups and logs sit, which support staff can view mail content and whether any vendor component sends data elsewhere. Your data protection officer or legal counsel should confirm the conclusion for your own processing.

How do we keep deliverability to Gmail and Outlook after leaving hosted mail?

Deliverability depends on sender authentication, IP reputation, reverse DNS, TLS and consistent sending behavior. Publish SPF, sign outgoing mail with DKIM, and set a DMARC policy that you monitor before tightening it. Many self-hosted operators use a smarthost or relay with clean addresses, which is a recurring cost to plan for. Gmail and Outlook also expect correct reverse DNS and TLS, and they watch for sudden volume changes from a new IP. Monitor postmaster reporting from both providers and DMARC aggregate reports from the start, and plan a warm-up period for new sending addresses. Ask any partner how it handles blocklist listings, which owner receives alerts and how long a remediation step takes in practice. Do not expect an outcome guarantee from any party, because inbox placement depends on factors outside the server.

What should a quote for self-hosted EU email include?

A quote should follow directly from a written scope and list each deliverable, the environment it runs in, and who supplies each component. Ask for the server and storage design, the EU location and provider of each component, the list of domains and mailboxes in scope, the migration method and batch plan, the DNS and authentication changes, the spam and malware filtering setup, backup and restore testing, monitoring, documentation and handover. Require a separate line for any licence that may apply, because Open-Xchange states that some modules or features may be subject to custom packaging, limitations or separate fees, and that support lifecycle terms differ for standard and LTS releases. Also request the support and upgrade model, the assumptions behind storage and relay costs, the exit and data return process, and the list of items the quote excludes. DeployOpen does not publish a price list, and a quote follows from the written scope.

Does a Cloud Act exposure matter if our mail is hosted in the EU?

It can matter, because the risk depends on who controls the provider, not only on where the server sits. The US CLOUD Act provision at 18 U.S.C. 2713 requires electronic communication and remote computing service providers to preserve or disclose data in their possession, custody or control, regardless of whether it is located inside or outside the United States. Under GDPR Article 48, a third-country court judgment requiring disclosure is recognized only if it rests on an international agreement in force with the Union or a Member State. The EDPB's Recommendations 01/2020 also note that where the destination's public authority powers go beyond what is necessary and proportionate, the EDPB cannot envision an effective technical supplementary measure. Map your mail provider's corporate ownership, its support access and its subprocessors before deciding, and ask your counsel to review the result.

Who runs spam filtering, backups and deliverability after the move

Moving mail to EU-controlled servers splits the work into four roles that must each have a named owner: the platform operator, DeployOpen's implementation work, the organization's own staff, and any third-party relay or gateway. The platform operator runs the servers and the mail software in the infrastructure you choose. DeployOpen plans, configures, hardens and documents the stack, and hands over runbooks. Your own staff own the decisions that carry business and legal weight: who may send as which domain, which external parties can reach users, and who signs off on retention and restore tests. Write this matrix down before cutover, because the first missed alert after go-live usually traces back to a task that everyone assumed someone else owned.

Four items need a single named person, not a team alias. The first is spam filtering rules: scoring thresholds, allow lists, and the handling of quarantined messages, which must be reviewed by someone who can judge false positives against business impact. The second is DKIM key custody: the private keys live on your server, so you must decide who generates, rotates and revokes them, and where the keys are stored. The third is DMARC monitoring: aggregate reports arrive at a mailbox you choose and must be read, or they are wasted. The fourth is EU-located backups: confirm the backup target, its encryption keys and who can restore, because a backup copy outside the EEA is a transfer in its own right under the EDPB's guidance.

A commercial gateway placed in front of open-source mail is a real architectural choice, not a neutral add-on. Every inbound and outbound message passes through that vendor's infrastructure, so the vendor becomes a processor, and it may be subject to third-country law. Update the transfer map and the processor register before you connect it, and ask the vendor where its scanning and logging happen, who can access message content, and where its support staff sit. Relays for outbound delivery carry the same question. Confirm these answers in writing, because the processor chain determines whether your data sovereignty claim holds.

How DeployOpen scopes and runs a sovereign email build

A sovereign email build touches legal exposure, mail routing, migration and evidence at the same time, so the work is scoped in writing before any server is touched. The cards below follow that sequence, from the agreed scope through hardening, testing and ongoing support, and each one names what the client should check at that step.

Written scope before any build

Every engagement starts with a written scope that names the mailbox count, the domains, the EU locations where mail and backups will sit, and which support or administrative access comes from outside the EEA. That last item matters because remote access from a third country counts as a transfer under EDPB Guidelines 05/2021, so the scope should record who can reach the systems and from where. Ask for the access map to be part of the signed scope, not an appendix.

Platform build in your EU infrastructure

DeployOpen implements the chosen mail platform, such as Stalwart or mailcow, inside your own cloud accounts, EU data centers or private hosting, so mail, indexes and backups stay where you decide. Storage location, key management and the administrative account model should be documented before go-live. Confirm with the vendor which components, such as the spam engine or web interface, run in your environment and which ones call external services.

Migration from hosted mailboxes

Moving mailboxes, calendars and contacts off Microsoft 365 or Google Workspace is a sequenced project: domain and DNS cutover, a coexistence period, mailbox sync and a verified rollback path. The exported data also carries personal data, so the migration itself is a processing activity that belongs in your records. Ask for a per-mailbox reconciliation report before any source tenant is closed.

Hardening and mail surface testing

Once the platform runs, DeployOpen tests the exposed mail surface: SMTP and IMAP authentication, TLS configuration, webmail and admin interfaces, and the API endpoints used by clients. Findings are fixed or accepted in writing with a named owner. Confirm whether the test covers relay abuse and spoofing checks as well as the web application, since a mail platform fails in both places.

Evidence for compliance assessments

DeployOpen prepares the technical evidence that an assessor will ask for: configuration baselines, data flow and location diagrams, access logs, backup restore records and the transfer analysis for any remaining third-country exposure. DeployOpen does not issue audit reports, attestations or certifications; your auditor or certification body does. Ask which evidence items are in the fixed scope and which are provided on request.

Retainers for upgrades and support

Mail platforms need regular security updates, certificate renewal, DKIM key rotation and spam rule maintenance, so the build does not end at go-live. Ongoing support, upgrades and continuous testing are available as retainers with their own written scope. Check the response commitments, the upgrade process for major releases and who holds administrative credentials after the handover.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.