Self-Hosted SimpleX Server on a VPS: SMP, XFTP and Sizing
Self-host a SimpleX server on a no-KYC VPS: SMP and XFTP setup, store log, passwords, plan sizing and what your own relay still sees about users.
You can run your own SimpleX Chat relay on a small VPS. The SMP server that relays messages uses very little memory, and a 2 GB plan is usually enough for a private group. Storage only matters once you add an XFTP file server. Running your own relay changes who holds your message queues. It does not make your traffic invisible, and in a small deployment it can make your activity easier to spot. This guide covers both sides: how to set the server up, how to size it, and what the server can still see.
What a SimpleX server actually does
SimpleX has no user accounts, phone numbers or usernames. Conversations run through one-way message queues that sit on relay servers. Each contact pair uses at least two queues, one for each direction. The person who receives on a queue decides which server hosts it. There are two kinds of server:
- SMP server (SimpleX Messaging Protocol). It holds queues and relays encrypted messages until the recipient fetches them. This is the core of the network.
- XFTP server. It stores encrypted file chunks for attachments and larger files. Files are split across servers and deleted after a fixed lifetime.
The apps use preset servers run by SimpleX Chat by default. When you add your own SMP server, the queues you receive on live on hardware you control. If you add your own XFTP server, files you send are uploaded there.
Self-hosting is a different trade-off from running Matrix or XMPP. Those protocols federate and keep account and room state. If you're comparing the options, see our Matrix and XMPP sizing guide. A SimpleX relay stores much less state, but it also has fewer moderation and multi-device features.
Sizing: which VPS fits
These figures are estimates for typical private deployments, not benchmarks.
SMP only, personal use or a small group (up to a few dozen people). The server is a single compiled Haskell binary. Queues and pending messages are small, because messages are padded to fixed-size blocks of about 16 KB and removed once delivered. A 1 vCPU, 2 GB VPS has plenty of headroom, and traffic is negligible. Thousands of text messages a day still add up to megabytes, not gigabytes.
SMP plus XFTP. Disk now drives the decision. You set an XFTP storage quota, and every image, voice note or video your users send counts against it until the files expire. Leave room for the OS, logs and the SMP store log. On a 20 GB disk, a quota of about 10 GB is a realistic ceiling.
A public or semi-public relay. Memory use grows with the number of active queues and connections, and attracting unknown users brings abuse and bandwidth exposure. Start with 2 vCPU and 4 GB, watch actual usage, and resize if needed.
Here is how those roles map to IronBalkans plans (prices at the time of writing; check the current pricing):
| Role | Suggested plan | Why |
|---|---|---|
| Private SMP relay | Iron 1 (€7.99, 1 vCPU, 2 GB, 20 GB SSD, 1 TB) | Text relaying barely uses resources |
| SMP + XFTP for a small group | Iron 2 (€14.99, 2 vCPU, 4 GB, 50 GB SSD, 4 TB) | Room for a meaningful file quota |
| Public relay or several services | Iron 2 or Iron 3 | Headroom for connections and abuse spikes |
Every plan includes one dedicated IPv4 address. There is no IPv6, which is fine for SimpleX because servers and clients connect over IPv4.
Setting up the SMP server
The assumptions here are a fresh Debian 12 or Ubuntu 24.04 LTS VPS, root access, and that you've already followed basic hardening such as keys-only SSH and a firewall. Command flags have changed between SimpleX releases. Check them against the official simplexmq documentation and smp-server init --help before running anything.
1. Install the binaries
The SimpleX project publishes an install script that downloads the server binaries and creates systemd units and a service user. Download it, read it, then run it:
curl --proto '=https' --tlsv1.2 -sSf \
https://raw.githubusercontent.com/simplex-chat/simplexmq/stable/install.sh \
-o simplex-server-install.sh
less simplex-server-install.sh
bash simplex-server-install.sh
Official Docker images are also available if you prefer containers. If you go that way, keep in mind that Docker-published ports bypass a host firewall unless you configure it to stop that.
2. Initialize the server
As the service user, initialize the SMP server with your VPS IPv4 address, or with a hostname if you have one:
su smp -c 'smp-server init --store-log --ip 203.0.113.10'
Two choices made here are hard to change later:
- Store log (
--store-log/-l). Without it, queues live only in memory, so a restart or reboot wipes them and breaks every conversation that used this server. Always enable it on a server you plan to keep. - Server password. By default,
initsets a password that clients must know before they can create queues on your server. Contacts can still message queues that already exist without it. Keep the password unless you mean to run an open relay. Without it, anyone who finds your address can use your disk and bandwidth.
Configuration ends up in /etc/opt/simplex/smp-server.ini and state in /var/opt/simplex/. Init prints your server address in this form:
smp://<fingerprint>:<password>@203.0.113.10
The fingerprint is a hash of the server's CA certificate, and clients pin it. No public certificate authority is involved, so no Certificate Transparency log entry is created. With a typical web domain, CT logs are a common way to connect a server to a name. This is a real privacy improvement, especially if you use a bare IP. For the domain-based approach and its leaks, see anonymous domain registration and private DNS.
3. Open the port and start the service
SMP listens on TCP 5223 by default, and recent versions can also serve on 443. With nftables:
nft add rule inet filter input tcp dport { 5223, 443 } accept
systemctl enable --now smp-server
Make the rule persistent the same way you persist your existing ruleset.
4. Verify
systemctl status smp-server
ss -tlnp | grep -E '5223|443'
journalctl -u smp-server -n 50
Next, go to the app's network and server settings and add the smp:// address as a server. Use its built-in test, which tries to create and delete a queue. If the test fails, the cause is almost always one of these:
- a firewall rule blocking the port
- a typo in the password portion of the address
- the server bound to an address it doesn't own
Adding an XFTP file server (optional)
XFTP is a separate binary and service. Initialization takes a storage path and a quota:
su xftp -c 'xftp-server init --store-log --ip 203.0.113.10 --path /srv/xftp --quota 10gb'
Config lives in its own directory (/etc/opt/simplex-xftp/), and the server listens on its own port, which you'll also need to open. Files expire automatically after a fixed period. Confirm the current default in your config instead of assuming it. If you skip XFTP, your clients simply keep using preset file servers for attachments.
Backups: the part people forget
Back up your server's identity before you need it. If you lose the CA key and certificates in /etc/opt/simplex/, you can't recreate a server with the same fingerprint, and every contact whose queues lived on it will have to reconnect. The SimpleX docs also recommend moving the CA private key offline once setup is done, because it's only needed to rotate the online certificate.
Include in your backups:
/etc/opt/simplex/: keys, certificates, config/var/opt/simplex/: the store log, so queues survive a rebuild- the equivalent XFTP directories, if you run one
These directories contain keys, so encrypt them before they leave the server. The setup in encrypted off-site backups with restic or Borg works for this. Do a restore drill on a throwaway VPS once to confirm the fingerprint comes back unchanged.
What your own server still sees
SimpleX's design limits what a relay can learn, but it can't hide everything. On your SMP server:
- Message content is not visible. It's end-to-end encrypted, and blocks are padded to a fixed size, so sizes leak little.
- Queue identifiers and timing are visible. The server can see when a queue receives and delivers messages. It cannot link queues to people by design, but in a relay with three users, timing patterns reveal far more than they would in a relay with thousands.
- Connecting IP addresses are visible. Your server sees the IP of every client that connects to fetch messages. Recent SimpleX versions support private message routing, which forwards senders' messages through a proxy server so the destination server doesn't learn the sender's IP. Recipients still connect directly unless they use Tor.
- Your own VPS logs. Anything the OS, SSH or the service logs is stored on your disk. Logging from your home IP to administer it links you to the server, which is covered in anonymous VPS access and home IP correlation.
The crowd problem matters most. On SimpleX's preset servers, your queues are mixed in with a very large number of others. On a private relay, all the traffic belongs to you and your contacts. Self-host because you want control over where queues are stored, how long they live and who operates the hardware. Don't do it expecting more anonymity than the public network provides. One reasonable compromise is to receive on your own server while keeping a preset server as an alternative.
To hide the relay's IP from its users, or to hide users' IPs from the relay, run SMP as a Tor onion service as well. The SimpleX docs support this, and the general setup is in our Tor onion service guide.
Is a no-KYC VPS the right host for this?
For a private relay, the host is the outermost layer of your threat model. On a traditional host, your name and card details sit on the account that runs your messaging infrastructure. On a no-KYC VPS paid in crypto, there's no identity on the account, but the host still technically controls the hardware, the network and the IP address. If the operator can't tolerate that, they need hardware they physically control. Abuse reports about a relay are still assessed under Romanian and EU law, so a public relay is not exempt from applicable law because it is offshore.
Get started
If a private SimpleX relay suits you, an Iron 1 plan covers SMP for a small group and Iron 2 leaves room for XFTP. Accounts use a random ID and recovery key, with no email or ID, and payment is in Monero, Bitcoin or Litecoin. The server is usually ready about two minutes after payment confirms. IronBalkans support is reachable over SimpleX too, so you can test your new relay by messaging them through it.
