Self-hosted app·Mail and private messaging
SimpleX Chat hosting your own SMP and XFTP relays in the Swiss Alps.
SimpleX Chat hosting on a Swiss VPS in ALP1: run your own SMP and XFTP relays with Docker on Cloud VPS Pro, $22.99/mo, paid in crypto, email-only signup.
- SimpleX
- Docker
- Caddy
- Tor
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port20 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: $206.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 6 vCPU, 8 GB RAM
- 320 GB NVMe local storage
- 20 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. Our Cloud VPS Pro plan (6 vCPU, 8 GB RAM, 320 GB NVMe, 20 TB of monthly transfer, 1 Gbps, $22.99/mo) in ALP1 runs a SimpleX SMP message relay and an XFTP file relay side by side, from the Docker images SimpleX publishes. Deploy Cloud VPS Pro with Debian 13 and follow the steps below. SimpleX's own install script supports only Ubuntu, so on Debian the Docker Compose route is the one to take.
The thing that matters most is the server's identity. A SimpleX server address is a certificate fingerprint plus a hostname, and every queue your contacts write to lives in that server's state. Lose the config directory and the fingerprint, and with it the address, is gone; lose the state and the queues go. In both cases each affected conversation has to be re-established by hand. Back up both directories before you give the address to anyone, and keep the CA private key off the server.
02/06
What SimpleX Chat is, and which parts you host.
SimpleX Chat is an open-source messenger developed by SimpleX Chat Ltd; the apps and the server code (the simplexmq repository) are AGPL-3.0. It uses no user identifiers at all. Each contact is a pair of one-way queues on relays picked by the receiving side, and a relay handles padded, encrypted blocks without knowing who is talking to whom. Running one gives you no accounts and no user database to look after: you operate a store-and-forward service for ciphertext.
Two server roles are worth self-hosting. The SMP server relays messages and holds each one until the recipient's app collects it or it expires; the shipped configuration keeps undelivered messages for 21 days. The XFTP server relays files: the sender's app cuts a file into fixed-size encrypted chunks, uploads them to one or more XFTP relays, and each recipient downloads the chunks. SimpleX's documentation gives 48 hours as the current storage period. A third role came with public channels in v6.5 (30 April 2026): chat relays, which are the simplex-chat CLI started with --relay and require v7.0.0-beta.4 or later. The notification server you can usually leave alone, because push for the official iOS app depends on Apple credentials held by the app's publisher; the same goes for the resolver of SimpleX public names, an Ethereum-node stack in a different class of machine.
On versions, as of 4 November 2026: the newest non-beta server release is v7.0.1 (31 July 2026), and on Docker Hub the latest, v7 and v7.0 tags of simplexchat/smp-server point to that build. The 7.1 series is still in beta (7.1.0-beta.4, 17 October 2026). It drops SMP protocol versions older than January 2025 and removes the journal message store, so read its release notes before moving a relay people depend on.
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/06
Requirements and sizing.
| Component | Image or binary | Public ports (TCP) | What it consumes |
|---|---|---|---|
| SMP relay | simplexchat/smp-server | 443 and 5223; 80 for the Caddy certificate | RAM: queues and pending messages live in memory, journalled to an append-only store log |
| XFTP relay | simplexchat/xftp-server | 443 | Disk, bounded by the quota you set, and transfer |
| Chat relay (optional) | simplex-chat --relay | none; 443 only for channel web previews | A local database (PostgreSQL in the Docker build) |
| Name resolver (optional) | upstream scripts/resolver | 30303 and 9000 for Ethereum peers | 32 GB RAM, 300 GB+ TLC NVMe, about a day to sync |
Memory is what an SMP relay grows into. It keeps its queue table and undelivered messages in memory and replays the store log on start, which is also why it needs to be stopped with SIGINT: only then are pending messages written out and restored. How far that memory grows as you share the address more widely is the figure we are still measuring (table below).
XFTP is disk and bandwidth. On the Pro plan's 320 GB, a quota of 250 GB leaves roughly 70 GB for Debian, the two images (around 100 MB each, compressed) and logs. Chunks expire after 48 hours, so the quota caps two days of uploads rather than building an archive. Transfer is where a file relay gets expensive: 20 TB a month averages about 61.7 Mbit/s around the clock (theoretical: 20 × 10¹² × 8 bits ÷ 2,592,000 s), and a single 50 MB video posted to a group of 200 members is about 10 GB of downloads from your relay (theoretical). Text messages barely register next to that. VPS traffic is not unmetered; each plan includes the transfer shown.
So Pro is the plan we recommend for a private or small-community pair of relays: it holds both, with disk for a useful file quota and memory headroom for the SMP store. Move to Power (12 vCPU, 16 GB, 640 GB, 40 TB, $42.99) if you publish the addresses for strangers to use. If you open an XFTP relay to the public and it becomes popular, the honest answer is a dedicated server with a 10 Gbps port and unmetered traffic under fair use; Rigi at $64.99 is the entry point.
04/06
How to deploy it on Cloud VPS Pro.
The setup uses two upstream Compose files unchanged except for port bindings, image tags and the stop signal. The SMP file is the "automatic" one: Caddy obtains a Let's Encrypt certificate for the server information page, and the SMP server answers on 443 with 5223 as fallback. The XFTP server also wants 443, so give each relay its own IPv4 by adding one extra address ($2/mo). In the examples, 203.0.113.10 is the VPS's main address and 203.0.113.11 the extra one.
Create the DNS records first (smp.example.com → 203.0.113.10, xftp.example.com → 203.0.113.11), because Caddy requests its certificate on first start. Then install Docker from Docker's Debian repository:
apt update && apt install -y ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian trixie stable" \
> /etc/apt/sources.list.d/docker.list
apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose-pluginFetch the SMP Compose file and write its environment. Uncomment PASS if only people you give the full address to should be able to create queues on your relay; your contacts can still send you messages without it.
mkdir -p /opt/simplex/smp && cd /opt/simplex/smp
curl -fsSLo 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.com
SIMPLEX_IMAGE=simplexchat/smp-server:v7.0
#PASS='a-long-random-string'
EOFIn docker-compose.yml, bind the published ports to the main address and add a stop signal, because Docker stops containers with SIGTERM by default while upstream's systemd unit uses SIGINT:
caddy:
ports:
- 203.0.113.10:80:80
smp-server:
stop_signal: SIGINT
stop_grace_period: 2m
ports:
- 203.0.113.10:443:443
- 203.0.113.10:5223:5223The XFTP relay gets the same treatment on the second address:
mkdir -p /opt/simplex/xftp && cd /opt/simplex/xftp
curl -fsSLo docker-compose.yml \
https://raw.githubusercontent.com/simplex-chat/simplexmq/refs/heads/stable/scripts/docker/docker-compose-xftp.yml
cat > .env <<'EOF'
ADDR=xftp.example.com
QUOTA=250gb
SIMPLEX_XFTP_IMAGE=simplexchat/xftp-server:v7.0
EOF xftp-server:
stop_signal: SIGINT
ports:
- 203.0.113.11:443:443Start both with docker compose up -d in each directory, then print the addresses to paste into the app:
echo "smp://$(cat /opt/simplex/smp/smp_configs/fingerprint)@smp.example.com"
echo "xftp://$(cat /opt/simplex/xftp/xftp_configs/fingerprint)@xftp.example.com"If you set a password, it goes after the fingerprint (smp://fingerprint:password@host). Now do the two things that are easy to postpone and expensive to forget. Copy smp_configs/ca.key and xftp_configs/ca.key somewhere offline and delete them from the VPS; they are only needed to rotate the online certificate, which upstream suggests doing every three months. And fill in the [INFORMATION] section of smp_configs/smp-server.ini, which feeds the server information page: on our hardware that is server_country: CH, hosting: Hosta AG and hosting_country: CH, plus your operator name and a complaints contact if the relay is public. Restart the container afterwards.
Docker writes its own iptables rules, so ufw does not filter ports that a container publishes. Publish only what is listed above. If you enable the control port (5224), bind it as 127.0.0.1:5224:5224 and nothing wider. For backups, the identity is small: send smp_configs, smp_state and xftp_configs to an S3-compatible bucket with restic, and leave the XFTP chunks out, since they expire in two days anyway.
restic -r s3:https://<endpoint>/<bucket> backup \
/opt/simplex/smp/smp_configs /opt/simplex/smp/smp_state /opt/simplex/xftp/xftp_configsWith a single IPv4 you can save the $2 by publishing XFTP on another port (203.0.113.10:5443:443) and adding it to the address (xftp://…@xftp.example.com:5443). It works, but clients on networks that only allow outbound 443 will fail to upload files, which is the kind of fault users report as "SimpleX is broken". In the app, add the addresses under Settings → Network & servers, as message servers and as media and file servers. New contacts use them straight away; existing ones stay where they are until you run "Change receiving address" on each.
05/06
Cost.
| Item | Per month |
|---|---|
| Cloud VPS Pro: 6 vCPU, 8 GB, 320 GB NVMe, 20 TB transfer, 1 Gbps | $22.99 |
| Extra IPv4, so both relays can use 443 | $2.00 |
| Object storage, 250 GB, for off-site restic backups | $1.99 |
| Daily VPS backups (+20 %), if you prefer whole-machine restores | $4.60 |
| Both relays with off-site backups | $26.98 |
Yearly billing takes roughly 25 % off the VPS, which works out at about $17.25 a month for the Pro plan (theoretical: $22.99 × 12 × 0.75 ÷ 12). Full figures are on the pricing page. Payment is in crypto only (Monero, Bitcoin, Tether, Ethereum, Litecoin and other coins), with balances in US dollars. Top-ups run from $25 to $5,000 and carry a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500; the unused paid part of a top-up is refundable within 14 days. The account itself is no-KYC: an email address is enough.
06/06
Limits, law and your obligations.
Be precise about what a relay protects. Your SMP relay sees encrypted, padded blocks and when queues are written and read; it also sees the IP address of every client that connects, unless the client comes over Tor or through SimpleX's private message routing. Our side of it is the network: as any host does, we see traffic volumes and the addresses exchanging packets with your VPS. If that matters to your users, publish an onion address next to the clearnet one. If you want to go further down that path, see our Tor relay guide.
On the legal side, the server sits under Swiss law (more on the jurisdiction). The revised Federal Act on Data Protection has been in force since 1 September 2023, and the European Commission confirmed on 15 January 2024 that Switzerland still provides an adequate level of protection. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland. That closes one fast route for US requests, not every route. The revision of the Swiss surveillance ordinance (VÜPF/OSCPT) put to consultation on 29 January 2025 was not in force on 31 October 2026, and the Federal Council has announced a second consultation; whether privately run relays are affected will depend on the final text.
Complaints follow our usual procedure. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer, who must remove the content or justify it, and we act on a decision of a competent Swiss authority, or where content is manifestly unlawful (Swico Code of Conduct Hosting 2025). For a relay, the practical tool is the control port's delete command, which removes a specific SMP queue or XFTP file chunk once you have its identifier. If you run a public XFTP relay, you are the host of that service: since 1 April 2020, Swiss copyright law (CopA art. 39d) imposes a stay-down duty on a host only where the same work was already made available unlawfully through the same service, the host was notified, and the service creates a particular risk of infringement.
What is not allowed: using the relays to store or distribute manifestly unlawful content, and continuing a use that a competent Swiss authority has ordered stopped; the full list is in our acceptable use policy. What we expect of you: keep the images current, answer forwarded complaints, publish a complaints contact in [INFORMATION] if the relay is public, keep the control port and the CA key out of reach, and keep a file relay within the plan's included transfer.
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 |
|---|---|---|---|---|---|---|---|
| StarterStaging, 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 |
| ProRecommendedProduction | 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.
Do I need a domain name for a SimpleX server?
In practice, yes. SimpleX servers can run on a bare IP, but upstream warns that clients are moving to the server's domain in invitation links, and without a domain and server pages they fall back to simplex: links that browsers cannot open. Caddy also needs a name to obtain the certificate for the information page.
Can I make my relay private?
Set PASS in the .env file before first start (or create_password in the ini file later). Only people with the full address, password included, can create queues on the relay; anyone can still send messages to those queues, so your contacts need nothing.
Will my existing contacts move to my own server?
No. Changing servers in the app affects new connections only. Existing contacts stay on their current relays until you use "Change receiving address" in each contact's information page.
Can I add a Tor onion address?
Yes, with Debian's tor package and a single-hop hidden service, as upstream describes. One detail differs from their guide: if you bind the containers to public addresses as above, point HiddenServicePort at 203.0.113.10:5223 and 203.0.113.10:443, not at localhost.
Can the XFTP files live on object storage instead of the VPS disk?
No. Our object storage is S3-compatible buckets reached through an API, not a block device, and the XFTP server writes chunks to a local directory. Use the buckets for restic backups of the configuration and state, as shown above, and keep the chunks on local NVMe.
Sources
Every fact on this page, with its source
Consulted 4 Nov 2026 unless noted.
Swiss law and authorities
- Federal Act on Data Protection, RS 235.1, in force since 1 September 2023fedlex.admin.ch
- Swiss Federal Council, VÜPF/OSCPT revision status (checked 31 October 2026)admin.ch · checked 31 Oct 2026
- Federal Act on Copyright (CopA), art. 39d, in force since 1 April 2020 (RO 2020 1003; checked 31 October 2026)fedlex.admin.ch · checked 31 Oct 2026
EU and other countries
- European Commission, adequacy decisions (review of 15 January 2024)commission.europa.eu
- US Department of Justice, CLOUD Act resources (checked 31 October 2026)justice.gov · checked 31 Oct 2026
Industry, providers and software
- SimpleX, Hosting your own SMP Server: ports, Compose files, store log, SIGINT restore, [INFORMATION] section, CA key handling, name resolver requirements, domain advicesimplex.chat
- SimpleX, Hosting your own XFTP Server: 48-hour storage period, quota, Compose file, control port deletesimplex.chat
- SimpleX, Hosting your own Chat Relay: --relay mode, v7.0.0-beta.4 minimum, Docker build with PostgreSQLsimplex.chat
- simplexmq Compose filesraw.githubusercontent.com
- simplexmq releases, v7.0.1 (31 July 2026) and 7.1.0 betasgithub.com
- Docker Hub tags (latest, v7.0, v7.0.1, 7.1.0-beta.4)hub.docker.com
- SimpleX, v6.5 release with public channels, 30 April 2026simplex.chat
- Swico, Code of Conduct Hosting, revised version published 13 March 2025swico.ch
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.
