Self-hosted app·Mail and private messaging
Self-hosting a SimpleX server in Switzerland.
SimpleX server self-host guide for a Swiss VPS in ALP1: SMP and XFTP sizing, ports, Docker on Debian 13, cost from 6.99 USD/mo, legal limits.
- SimpleX
- Docker
- Debian
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port10 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $62.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 2 vCPU, 2 GB RAM
- 80 GB NVMe local storage
- 10 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/07
Short answer.
Yes. A SimpleX SMP relay for a household or an NGO with a few hundred members fits on our Starter plan at 6.99 USD a month, in ALP1 in the Swiss Alps, running Docker on Debian 13. The hardware is the easy part; the server's identity is not. The fingerprint inside every smp:// address is the hash of a CA certificate created at initialisation, so back up the configuration directory and move the CA private key ca.key off the server. Lose the directory and every contact who receives through your relay has to move to a new address; lose only ca.key and you can no longer rotate the online certificate under the same identity.
02/07
What SimpleX is and who builds it.
SimpleX Chat is a messenger that assigns no user identifiers, not even random ones. It is developed by SimpleX Chat Ltd, registered in the United Kingdom; the relay software is the simplexmq repository, written in Haskell under AGPLv3. The current stable server release is v6.5.0, published on 29 April 2026; v6.5.2 and a v7.0.0 beta are marked as pre-releases.
A self-hosted "SimpleX server" is one or two daemons. smp-server is the message relay: recipients create one-way queues on it, senders push fixed 16,384-byte blocks into them, and the relay buffers ciphertext until it is fetched or expires (21 days in the sample configuration). xftp-server is the optional file relay. Clients split files into padded, encrypted chunks, and the relay keeps each chunk for 48 hours or until the sender deletes it. Neither daemon holds profiles, contact lists or delivered messages.
Recipients choose where they receive, so your relay changes where your queues live, not who can reach you; contacts on the preset servers can still write to you. With private routing, a relay picked by the sender forwards each message and yours sees that relay, not the sender's IP; senders connecting directly without Tor do expose their IP. Adding your server in the app applies to new contacts only, and existing conversations move with "Change receiving address".
The preset relays answer to UK law: SimpleX Chat Ltd reports 12 law-enforcement requests in 2025 and no responsive information provided. Self-hosting moves that question to you and to Swiss law.
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/07
Requirements and sizing.
Upstream publishes no hardware minimum for either relay, so sizing follows from how the software behaves. By default smp-server keeps queues and undelivered messages in memory and appends every change to a store log so they survive a restart; a PostgreSQL build exists for operators who outgrow that. RAM is the resource that grows with use. The upstream unit raises the open-file limit to 65,535, since each connected client holds a TLS socket.
| SMP relay | XFTP relay | |
|---|---|---|
| vCPU | 1 for a private relay, 2 if you open it to the public | 1 |
| RAM | grows with stored queues and waiting messages | small, files go to disk |
| Disk | store log and daily statistics, small | your storage_quota plus headroom |
| Inbound TCP | 5223 and 443, plus 80 for Let's Encrypt | 443 by default |
| Keep closed | 5224 (control port) | 5224 (control port) |
Two theoretical calculations frame the rest. If 150 members each have 300 padded messages waiting on your relay because their phones were off for a week, that is 45,000 × 16,384 bytes, about 737 MB, and an upper bound, since a delivered message is deleted. Files expire after 48 hours, so XFTP storage settles at roughly two days of uploads: 40 people sending 50 MB a day each keeps about 4 GB on disk. Set the quota from a figure like that, not from the size of the disk.
Cloud VPS Starter provides 2 vCPU, 2 GB of RAM, 80 GB of local NVMe and 10 TB of transfer a month. That covers a private SMP relay with margin. SMP and XFTP can share one instance if the quota fits the disk, but both want port 443, so one has to move. Leave the optional [NAMES] resolver off: upstream specifies 300 GB of NVMe, 32 GB of RAM and a synced Ethereum node for it.
Upstream also asks for a domain with A and AAAA records. A relay runs on a bare IP, but clients then generate simplex: links that browsers cannot open, and the shipped Let's Encrypt setup expects a hostname.
04/07
Deploying it on Cloud VPS Starter in ALP1.
Order through the Cloud VPS Starter deploy link, which preselects Debian 13. Point smp.example.org at the server's IPv4 and IPv6 addresses and install Docker Engine with the Compose plugin from Docker's Debian repository. Docker is the deliberate choice: the upstream installation script supports only Ubuntu, and the binaries are built for Ubuntu 22.04 and 24.04. Published container ports bypass ufw, so expose only what you intend and confirm with ss -tlnp.
The upstream "automatic" Compose file puts Caddy in front to obtain the certificate, serves SMP and the server information page on 443, and keeps 5223 as a fallback:
mkdir -p /opt/simplex/smp && cd /opt/simplex/smp
curl -fsSL -o docker-compose.yml \
https://raw.githubusercontent.com/simplex-chat/simplexmq/refs/heads/stable/scripts/docker/docker-compose-smp-complete.yml
cat > .env <<'EOF'
ADDR=smp.example.org
# Only people who know PASS can create receiving queues; anyone can still send to them.
PASS=replace-with-a-long-random-string
EOF
docker compose up -d
docker compose logs smp-server | grep -m1 'Server address'Then, in this order:
- 01Copy
smp_configs/ca.keyto offline storage and delete it from the VPS. Upstream recommends initialising on an offline machine so the key never touches the server; for an NGO with real adversaries, do that instead. - 02Back up
smp_configs/andsmp_state/. The first holds the identity, the second the store log. - 03In the app's network settings, add the full
smp://fingerprint:password@smp.example.orgaddress, and share it only with the people who should receive through your relay. - 04Set
SIMPLEX_IMAGEin.envto a fixed image tag rather thanlatest, so upgrades happen when you decide. If you later switch to the plain binaries, they have been reproducible since v6.3 and their checksums are signed with keyFB44 AF81 A45B DE32 7319 797C 8510 7E35 7D4A 17FC.
For files, the same upstream directory has docker-compose-xftp.yml, where ADDR and QUOTA are mandatory and PASS is optional. On a second Cloud VPS Starter it keeps 443. On the same instance, publish it on another host port (the StartOS package uses 5225) and hand out its address with that port.
05/07
Cost.
| Setup | Per month | Per year (theoretical, 12 × monthly) |
|---|---|---|
| SMP relay on one Cloud VPS Starter | 6.99 USD | 83.88 USD |
| SMP and XFTP on two Cloud VPS Starter instances | 13.98 USD | 167.76 USD |
The price includes root access, the Debian 13 image and 10 TB of transfer a month per VPS; current figures are on our pricing page. You can pay in crypto, business customers included, and no-KYC applies: an email address is enough (details). Top-ups carry a bonus, and unused balance is refundable within 14 days. What the price does not buy is redundancy: one relay in one facility is a single point of failure, and while it is down your contacts' apps hold outgoing messages and retry. An organisation that depends on SimpleX should run a second relay elsewhere and enable both in the app, so new queues spread across them.
06/07
Swiss law, without the brochure.
The revised Federal Act on Data Protection has applied since 1 September 2023, and on 15 January 2024 the European Commission confirmed that Switzerland still provides an adequate level of protection, so an EU-based NGO can place data here without additional safeguards. A relay holds little personal data anyway: IP addresses of directly connected clients, the store log, and whatever your system and Docker logs keep, which is your retention decision. As of 31 October 2026, the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia. That is a statement about treaties, not a promise that no foreign request can ever reach a Swiss server.
The revision of the surveillance ordinance (VÜPF/OSCPT) put to consultation on 29 January 2025 was not in force on that date either, and the Federal Council has announced a second consultation; if you plan a large public relay, follow it and take Swiss legal advice. The offshore hosting page covers the jurisdiction in more depth.
07/07
Limits and acceptable use.
Running a relay makes you its operator. Messages are encrypted end to end, but you decide who may create queues and upload files, and you answer for the service. The points that matter here:
- Child sexual abuse material, malware distribution and other manifestly unlawful content are prohibited whether or not you can read them. The full rules are in our acceptable use policy.
- Downloading a work for private use is legal in Switzerland, software excepted; making it available online without permission is not. Since 1 April 2020 the Copyright Act can oblige a host to stop a work being made unlawfully available again, where it was already made available unlawfully through the same service, the host was notified, and the service creates a particular risk of infringement. A public XFTP relay with openly circulating links is that case, so password-protect XFTP unless you mean to run a public file relay.
- A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to you, and you remove the content or justify it. We act on a decision of a competent Swiss authority, or where content is manifestly unlawful, in line with the Swico Code of Conduct Hosting 2025.
- The control port gives you the means to comply: its
deletecommand removes a known queue or file chunk. Enable it with admin and user passwords, keep it on localhost, and never publish 5224. - A public relay should carry a complaints contact in the
[INFORMATION]section of its configuration. If you modify the code, AGPLv3 requires you to make your changes available and pointsource_codeat them. - Patching the operating system, Docker and the images is your responsibility.
The service is operated by Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen). For abuse cases or anything else, open a support ticket from the client panel; the FAQ answers the routine questions.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterRecommendedStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Can my relay read the messages that pass through it?
No. Messages are end-to-end encrypted between the apps, and the relay adds its own layer of encryption towards the recipient, so incoming and outgoing blocks cannot be matched by content. What it can observe is metadata: when queues are used, how many fixed-size blocks move, and the IP address of any client that connects without Tor or private routing.
Do I need an XFTP server as well?
No. The app can combine your SMP relay with the preset file relays. Self-host XFTP when the files are sensitive enough that you want to choose who stores their chunks.
Can I move the relay to another server later?
Yes, as long as you keep the configuration and state directories and the hostname. The fingerprint comes from the CA certificate in the configuration directory, so restoring both directories on a new machine and updating DNS leaves existing addresses valid.
Should an NGO run a public relay or a private one?
Private, with a queue-creation password, unless serving strangers is part of your mission. A public relay attracts load and complaints that you then have to handle; a private one serves only the people holding the password, and anyone can still write to them.
Can it also run as a Tor onion service?
Yes. Upstream documents an onion address for both SMP and XFTP, listed alongside the public hostname so clients using Tor stay inside the Tor network. Our notes on onion services apply (our Tor relay guide).
Sources
Every fact on this page, with its source
Consulted 3 Nov 2026 unless noted.
Swiss law and authorities
- Federal Act on Data Protection, in force since 1 September 2023fedlex RS 235.1
- Federal Council, VÜPF/OSCPT revision not in force, second consultation announced (verified 31 October 2026)admin.ch · verified 31 Oct 2026
- Copyright Act art. 39d, in force since 1 April 2020, RO 2020 1003 (verified 31 October 2026)fedlex LDA · verified 31 Oct 2026
- IPI, copyright on the internet: private downloads versus making availableige.ch
EU and other countries
- European Commission, adequacy decisions; review of 15 January 2024 confirming Switzerlandcommission.europa.eu
- US Department of Justice, CLOUD Act resources: executive agreements with the UK and Australia only (verified 31 October 2026)justice.gov · verified 31 Oct 2026
Industry, providers and software
- SimpleX, "Hosting your own SMP Server" (page updated 12 October 2024; consulted 3 November 2026): ports, Docker Compose setups, store log and 21-day expiry, CA key handling, control port, reproducible builds, domain requirement, [NAMES] hardwaresimplex.chat
- SimpleX, "Hosting your own XFTP Server" (consulted 3 November 2026): 48-hour retention, port 443, quota, Compose variables, control portsimplex.chat
- simplexmq release v6.5.0, marked Latest (published 29 April 2026; consulted 3 November 2026)github.com
- SimpleX whitepaper, revision 4 (9 March 2026): 16,384-byte packets, 2-hop private routing, re-encryption by the relaygithub.com
- SimpleX Transparency Reports (updated 9 February 2026): UK registration, 2025 requestssimplex.chat
- Start9 SimpleX package for StartOS (consulted 3 November 2026): XFTP on port 5225github.com
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
