Self-hosted app·Mail and private messaging
Running a chatmail relay server in Switzerland.
Run a chatmail relay server for Delta Chat on a Swiss VPS in ALP1: port 25 open from the first boot, Debian, from 6.99 USD a month.
- Debian
- Dovecot
- Docker
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port10 TB of transfer a monthIncluded
- Debian 12preinstalled 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/08
Short answer.
Yes. A chatmail relay fits on Cloud VPS Starter, our smallest VPS, at 6.99 USD a month in the ALP1 data centre in the Swiss Alps. What usually stops people elsewhere is port 25: a relay exchanges mail with other relays over SMTP, and most large clouds block that port on new servers. On our side port 25 is open on every VPS from the first boot, with no unblock ticket and no waiting period.
The one thing to get right before you start is the operating system. The chatmail setup guide specifies a Debian 12 server, and the order link below preselects it.
02/08
What a chatmail relay is, and who builds it.
A chatmail relay is a mail server rebuilt for one job: carrying Delta Chat messages. Postfix and Dovecot handle transport and storage, and a set of small services changes the rules around them. An address is created the first time a client logs in, without a sign-up form or personal data, and the password used at that first login is required from then on. A filter called filtermail sits in Postfix's inbound and outbound paths and rejects anything that is not OpenPGP-encrypted, in both directions. Incoming mail needs a valid DKIM signature whose domain matches the From: header exactly; SPF and reverse-DNS checks are deliberately not used. Messages stay on the server only until devices fetch them, and expiry jobs remove old and oversized messages and delete mailboxes that have stopped logging in. A deployment also installs an Iroh relay that helps devices connect peer to peer, and a TURN server so calls work behind NAT.
The code lives in the chatmail/relay repository under the MIT licence and is developed in the open by the Delta Chat contributors; merlinux GmbH in Freiburg publishes the Delta Chat apps and acts as fiscal sponsor of their development. Anyone can operate a relay. In practice the operators are associations and NGOs that want their members' traffic on infrastructure they answer for, and individuals who run one for family and friends or add theirs to the public list of third-party relays. Operator questions go to the chatmail tag on support.delta.chat, where the developers read along.

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/08
Why port 25 decides where you can host it.
Delivery between relays goes out over SMTP on port 25, and other servers deliver to you the same way; the relay documentation's own TLS test assumes a host with port 25 open. The current architecture diagram also shows an HTTPS delivery path between chatmail relays, but every classic mail server still expects SMTP on 25. Clients are a separate matter: Delta Chat reaches the relay on 465, 587, 993 or multiplexed over 443, so a blocked port 25 stays invisible until the first message to another server sits in the queue.
| Provider | Default on new servers | How to lift it |
|---|---|---|
| DigitalOcean | 25, 465 and 587 blocked on all Droplets, Reserved IPs included | Documentation points to a third-party email service |
| AWS EC2 | Port 25 restricted on all instances | "Request to remove email sending limitations" form, reviewed per case |
| Vultr | Outbound 25 blocked on new instances | Support ticket describing the use case |
| Hetzner Cloud | 25 and 465 blocked on all cloud servers | Limit request after one month as a customer and a first paid invoice, decided case by case |
| Linode (Akamai) | 25, 465 and 587 restricted for accounts created since 5 November 2019 | Support ticket |
Each of these is a defensible anti-spam measure, and unblocks are often granted. For a relay, though, the wait is more than a formality: until the port opens you cannot test federation at all, and a refusal ends the project on that platform. With us there is nothing to request.
The downside belongs on this page too. An open port 25 on a no-KYC host is open for everyone who signs up, and if neighbouring addresses end up on a blocklist, classic mail providers may treat yours with more suspicion. Chatmail relays federate without spam or IP-reputation checks, so relay-to-relay traffic, which is most of what a relay does, is not affected by it.
04/08
Requirements and sizing.
The setup guide asks for a Debian 12 server with the SMTP, submission, IMAPS and HTTPS ports reachable, and puts the needs at 1 GB of RAM, one CPU and perhaps 10 GB of storage for a few thousand active addresses. You also need a domain under your control and a build machine, meaning your own Linux or Unix computer with key-based SSH access to root on the server.
| Chatmail relay needs | Cloud VPS Starter | |
|---|---|---|
| Operating system | Debian 12 | Debian 12 |
| CPU | 1 | 2 vCPU |
| RAM | 1 GB | 2 GB |
| Disk | About 10 GB for a few thousand active addresses | 80 GB NVMe |
| Inbound TCP | 25, 80, 143, 443, 465, 587, 993 | Port 25 open on every VPS |
| Inbound UDP | 3478, plus ports the TURN server allocates on demand | Open them in your own firewall, see below |
| IPv6 | Encouraged | — |
| Reverse DNS | Not checked between relays; required by Gmail | Set in the client panel (Reverse DNS) for the main IPv4, by ticket for extra addresses |
The 10 GB figure holds because a mailbox is normally empty: devices download their messages and the relay removes them. Disk fills when members stay offline. At the time of writing the shipped defaults in chatmail.ini cap each mailbox at 500 MB, delete messages after 20 days and messages larger than 200 kB after 7, and remove accounts that have not logged in for 90 days. As a theoretical worst case, 20 accounts sitting at their 500 MB quota occupy 10 GB by themselves, so an organisation whose members disappear for weeks at a time should lower max_mailbox_size before it thinks about a bigger disk. The relay also protects itself: it refuses new addresses when the one-minute load average exceeds 5, available memory drops below 200 MB or free disk below 1 GB, and existing addresses keep working throughout.
Debian 12 left regular security support on 12 July 2026 and is covered by Debian LTS until 30 June 2028, so the documented base is still patched, just by a different team. Work on Debian 13 support is under way in the relay repository. Until the setup guide names it, we would stay on 12 rather than debug an unsupported combination on a relay people depend on.
05/08
Deploying it on our VPS.
cmdeploy, the relay's deployment tool, runs on your own computer and configures the server over SSH as root, so nothing is installed by hand on the VPS.
- 01Order Cloud VPS Starter with Debian 12 through the link above, and put your ed25519 public key in root's
authorized_keys. Load the private key into ssh-agent: the deployment cannot stop to ask for a passphrase, and the SSH library it uses needs an ed25519 key. - 02Create the DNS records for the relay's name, with your server's addresses in place of these examples:
chat.example.org. 3600 IN A 203.0.113.10
chat.example.org. 3600 IN AAAA 2001:db8::10
www.chat.example.org. 3600 IN CNAME chat.example.org.
mta-sts.chat.example.org. 3600 IN CNAME chat.example.org.- 03Set the PTR record of the server's IPv4 and IPv6 addresses to
chat.example.org. - 04On your computer, fetch the code, create the configuration and deploy:
git clone https://github.com/chatmail/relay
cd relay
scripts/initenv.sh
scripts/cmdeploy init chat.example.org
ssh root@chat.example.org # must work before the next step
scripts/cmdeploy run- 05Run
scripts/cmdeploy dnsand publish the further records it lists, then check the result withscripts/cmdeploy statusandscripts/cmdeploy test.
Before you announce the relay, edit the web pages cmdeploy publishes from www/src: a home page with a QR code that creates an address, an info page and a privacy policy. Upgrading uses the same command, so pull the repository and run cmdeploy run again after upstream releases. There is also an experimental monolithic Docker image in the chatmail/docker repository. We would still give the relay a VPS of its own and use cmdeploy, because the relay takes over Postfix, Dovecot and Nginx on ports 80 and 443 and does not share a machine gracefully with a website. If you add your own firewall with nftables or ufw, open the TCP ports from the table and UDP 3478 plus the high UDP range; a closed UDP range breaks calls while chat keeps working, which makes the fault easy to miss.
06/08
What Swiss hosting changes, and what it does not.
The relay runs in ALP1 on infrastructure operated by Hosta AG, a Swiss société anonyme, so the data on it falls under the revised Federal Act on Data Protection, in force since 1 September 2023. For an NGO with members in the EU, the European Commission confirmed on 15 January 2024 that Switzerland still ensures an adequate level of protection, so personal data can flow from the EU to the relay without additional safeguards. 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 describes today's position rather than a guarantee about every future request; the longer version is on our offshore hosting page.
Message content is end-to-end encrypted wherever the relay sits, so jurisdiction mostly governs metadata: connecting IP addresses in temporary logs, the date of each account's last login, and the sender and recipient of messages waiting in the queue. Push notifications follow a route that Swiss hosting does not touch. The relay hands an encrypted device token to notifications.delta.chat, which asks Apple, Google or Huawei to wake the phone.
Once other people use the relay, the legal role is yours. Under the data protection act you are the controller for your members' data, which is why the privacy page cmdeploy publishes should carry your organisation's name and contact details rather than template text. In surveillance law, a messaging service built on telecom infrastructure can count as a provider of derived communication services (AAKD, art. 2 let. c of the surveillance act, BÜPF), with obligations that scale with its size. The revision of the surveillance ordinance put to consultation on 29 January 2025 is not in force, and the Federal Council has announced a second consultation. Where exactly a small association's relay falls is a question for your lawyer.
07/08
Cost.
Cloud VPS Starter costs 6.99 USD a month, which is 83.88 USD over a year at that rate (theoretical, before any top-up bonus). Spread across an association of 150 members, that comes to a theoretical 0.047 USD per member per month. The price includes port 25 open from the start and 10 TB of transfer a month. Sign-up is no-KYC: an email address is enough. You can pay in crypto, business customers included, and top-ups carry a bonus, with the unused balance refundable within 14 days. The domain name is not included and comes from your registrar.
Current plans and prices are on our pricing page, the VPS range is described on the cloud VPS page, and no-KYC hosting explains what we ask for at sign-up. Account and payment questions are answered in the FAQ.
08/08
Limits and your obligations.
You run the relay, so its users and its updates are your responsibility, and so are the abuse reports that name your domain. By default anyone who can reach your domain can create an address on it. If the relay is meant for your organisation only, create the addresses you need and then run touch /etc/chatmail-nocreate on the server, which refuses new addresses for as long as the file exists. The default per-user sending limit is 60 messages a minute with a burst of 10, but the real protection against misuse is filtermail: a relay that only passes encrypted mail is of little use to a spammer.
Two settings undo that protection. passthrough_senders and passthrough_recipients in chatmail.ini let listed addresses send or receive unencrypted mail; use them for a named address with a reason, never as a blanket exception. Keep the relay patched by re-running cmdeploy, keep the privacy page accurate, and reach us by opening a support ticket from the client panel.
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.
Does Delta Chat need port 25 if phones connect over 443?
Phones never use port 25; they reach the relay on 443, 465, 587 or 993. The relay itself does: it delivers to other relays and classic mail servers over SMTP on port 25 and receives from them the same way. Behind a blocked port 25, members can still message each other on the same relay, but nothing reaches anyone on another server.
Can I install the relay on Debian 13?
The setup guide still names Debian 12, and Debian 13 support is work in progress upstream. Install Debian 12, which Debian LTS covers until 30 June 2028, and plan the move to 13 as a separate migration once the guide changes.
Can the relay serve only my organisation?
Yes. Let your members create their addresses from the QR code on the relay's home page, then run touch /etc/chatmail-nocreate on the server. Existing addresses keep working and new ones are refused until you delete the file.
Can my members write to people on Gmail?
Only with encrypted messages, because filtermail rejects cleartext in both directions, so the Gmail user needs an OpenPGP-capable mail client and an exchanged key. Gmail also requires the sending IP to have a PTR record whose hostname resolves back to the same address, which is why step 3 of the deployment matters even though chatmail relays do not check it among themselves.
What does the relay store about its users?
A salted password file per address, the date of the last login, encrypted messages until they are fetched or expire, and temporary logs used for debugging. Under the default settings, an account without a login for 90 days is deleted together with its mail. No phone number, name or recovery address is asked for when an address is created.
Do I need a domain name?
For a relay other people rely on, yes. The project has experimental support for IP-only relays, and for test domains starting with an underscore that run on self-signed certificates; both suit trials on a spare VPS, not a service your members depend on.
Sources
Every fact on this page, with its source
Checked 2 Nov 2026 unless noted.
Swiss law and authorities
- Revised Federal Act on Data Protection (FADP), in force since 1 September 2023Fedlex RS 235.1
- Federal Council, revision of the surveillance ordinance (VÜPF/OSCPT) put to consultation on 29 January 2025, not in force, second consultation announcedadmin.ch · verified 31 Oct 2026
- Federal Department of Justice and Police, explanatory report on the partial revision of VÜPF and VD-ÜPF, 8 January 2025 (AAKD under art. 2 let. c BÜPF)newsd.admin.ch
EU and other countries
Industry, providers and software
- chatmail/relay repository: README (federation without IP-reputation checks, list of third-party relays), MIT licence, chatmail.ini defaults, Debian 13 work, web page templates naming merlinux as fiscal sponsorgithub.com
- DigitalOcean, "Why is SMTP blocked?"docs.digitalocean.com · verified 13 Jul 2026
- AWS, "How do I remove the restriction on port 25 from my Amazon EC2 instance?"aws.amazon.com
- Hetzner Docs, Cloud server FAQ, "Why can I not send any mails from my server?"docs.hetzner.com
- Debian, "Security support for Bookworm handed over to the LTS team", 12 July 2026debian.org
Other references
- Chatmail relay documentation, "Setting up a chatmail relay": requirements, setup steps, DNS records, system limits, /etc/chatmail-nocreate, Docker and IP-only noteschatmail.at
- Chatmail relay documentation, "Technical overview": components, active ports, DKIM and TLS rules, HTTPS delivery path, push notification token, mailbox contentschatmail.at
- Delta Chat on the App Store, publisher merlinux GmbH, developed by a FOSS contributor communityapps.apple.com
- Vultr Docs, "Why Is SMTP Blocked?"docs.vultr.com
- Linode, "A new policy to help fight spam", and Linode staff answer on accounts created after 5 November 2019linode.com
- Google, Email sender guidelines (PTR and forward DNS for sending IPs)support.google.com
- Delta Chat support forum, chatmail tagsupport.delta.chat
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.
