Self-hosted app·Mail and private messaging
Stalwart mail server hosting in Switzerland.
Stalwart mail server hosting on a Swiss VPS in ALP1: port 25 open, Debian 13. Sizing, setup, rDNS and the limits that apply.
- Debian
- Docker
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/06
Short answer.
Yes. The plan to start on is Cloud VPS Starter at 6.99 USD a month, deployed with Debian 13 on our cloud VPS platform in ALP1, our location in the Swiss Alps. Port 25 is open on every VPS we sell, so there is no unblock request to file and no probation month before your server can hand mail to Gmail or Bluewin.
Hardware is the smaller question. A mail server is judged by the network around it: port 25 reachable, a reverse DNS (PTR) record that returns the server's hostname, and an IP address that receiving systems have no reason to distrust. Settle those before you install anything. Then install Stalwart 1.0, released on 26 October 2026, rather than the 0.16 series. Version 1.0 cannot open a database created by 0.16, so a new server started on 0.16 today is a migration you have scheduled for yourself.
02/06
What Stalwart is and who runs it.
Stalwart is a mail and collaboration server written in Rust and shipped as a single binary. That one process speaks SMTP, IMAP, POP3, JMAP and ManageSieve, serves calendars, contacts and files over CalDAV, CardDAV and WebDAV, signs and verifies DKIM, checks SPF, DMARC and ARC, supports MTA-STS and DANE, and filters spam with its own rules and statistical classifier. The traditional self-hosted stack reaches the same result with Postfix, Dovecot, rspamd and usually a database, each with its own configuration syntax and release cycle. On a small VPS the practical gain is less about throughput than about operations: one service to update and one log to read when something breaks at two in the morning.
Development is led by Stalwart Labs. The code started on 3 October 2021 as a mail-parsing library and reached its first stable release five years later, with a database schema the maintainers now treat as final, so later 1.x releases should not need disruptive migrations. The Community edition is licensed under the AGPL-3.0; a commercial Enterprise edition adds features such as SCIM provisioning, tenant administration, masked addresses, AI-based features and alerting. The project's own benchmarks put v1.0 ahead of Postfix 3.11 and Dovecot 2.4 in 35 of 38 tests on 8-vCPU Azure machines. Read those as the vendor's figures, not as a forecast for a one-core VPS. In practice Stalwart attracts small firms leaving a hosted suite and agencies carrying a handful of client domains; developers come for JMAP. Support questions go to the project's community forum at support.stalw.art and to its GitHub repositories.

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.
Stalwart's documentation puts the network ahead of the hardware, and it is right to. The host needs a static public IP address whose PTR record matches the server hostname, port 25 open in both directions, and inbound access to 25 (SMTP from other servers), 465 (submission), 993 (IMAP), 995 (POP3), 4190 (ManageSieve) and 443 (HTTPS, JMAP and the web interface). Version 1.0 does not open 587, 143 or 110 by default, so clients connect on 465 and 993. Port 8080 carries the setup wizard and must not be reachable from the internet. At first start the server also needs outbound HTTPS, to fetch its web interface and spam rules from GitHub and its certificate from Let's Encrypt.
Memory is governed by configured limits more than by the number of mailboxes. With every setting at its default, the limits on a 2 GiB host add up to 2,429 MiB, but 1 GiB of that belongs to two caches that only fill for accounts holding millions of messages or very large calendars. Without such accounts the documented total is 1,405 MiB, so 2 GiB of RAM runs the defaults with room left for the operating system. On 1 GiB you would have to lower the large-account caches, the RocksDB block cache and the in-transit memory budget, then watch resident memory yourself, because the vendor's small-host figures are calculated rather than benchmarked.
CPU is rarely the constraint for an office. The vendor measured roughly 26 to 34 ms of CPU time per password sign-in and 0.7 to 1.8 ms to receive and filter a small message. Take a 12-person fiduciary office in Fribourg receiving 1,800 messages a day, with 36 phones and laptops reconnecting every five minutes, about 10,000 sign-ins. That comes to a little under six minutes of CPU per day (theoretical: 1,800 × 1.8 ms + 10,000 × 34 ms ≈ 343 s). The expensive moment is the initial import of old mailboxes, when full-text indexing runs flat out for a while; a second vCPU shortens that wait and changes little else.
Disk follows the mail. In the vendor's benchmark, RocksDB needed about 0.95 GB of disk per GB of mail with the full-text index included, and attachments that are already compressed, such as PDFs and photos, can push that up. Ten mailboxes of 5 GB each therefore need roughly 48 GB for the store (theoretical: 10 × 5 GB × 0.95), plus the operating system and room to grow. One detail specific to virtual machines: Stalwart's parsers use AVX2 when the processor exposes it, so run grep -m1 -o avx2 /proc/cpuinfo once the VPS is up.
| Item | Stalwart, small office | Cloud VPS Starter |
|---|---|---|
| vCPU | 1; a second one shortens imports | 2 vCPU |
| RAM | 2 GiB at defaults; 1 GiB only with reduced caches | 2 GB |
| Disk | ≈ 0.95 GB per GB of mail (RocksDB), plus the OS | 80 GB NVMe |
| Port 25, both directions | Required | Open on every VPS |
| Static IP with matching PTR | Required | Set in the client panel (Reverse DNS) for the main IPv4, by ticket for extra addresses |
| Operating system | Linux, x86_64 or aarch64 | Debian 13 image |
If your own figures come out larger than this, the other plans are listed on our pricing page; moving up a plan is cheaper than an evening spent shrinking caches.
04/06
How to deploy it with us.
The steps below use the official installer, which writes a systemd unit, creates an unprivileged stalwart account and grants it the capability to bind ports below 1024. Order the server from the Cloud VPS Starter deploy link. The account is no-KYC: an email address is enough.
- 01Publish DNS before you touch the server. Pick a hostname such as
mail.example.com, give it an A record (and AAAA if you use IPv6), and create CNAMEs to it forautoconfig,autodiscover,mta-stsandua-auto-configunder your domain. The TLS certificate covers all of these names, and Let's Encrypt will not issue it while one of them fails to resolve. Then point the PTR record of the VPS address atmail.example.com.
- 02Confirm the way out and free the port. The first command should print
open; the second should list no process. If it shows an MTA that came with the image, stop and disable it (for examplesudo systemctl disable --now exim4).
timeout 5 bash -c '</dev/tcp/gmail-smtp-in.l.google.com/25' && echo open
sudo ss -ltnp 'sport = :25'- 03Keep the wizard port private before it exists. These rules drop port 8080 on every interface except loopback until the next reboot, which is long enough for the setup (install the
nftablespackage if the image lacks it).
sudo nft add table inet setup
sudo nft 'add chain inet setup input { type filter hook input priority 0; policy accept; }'
sudo nft 'add rule inet setup input iifname != "lo" tcp dport 8080 drop'- 04Download the installer, read it, run it, and fetch the temporary administrator password from the journal.
curl --proto '=https' --tlsv1.2 -sSf https://get.stalw.art/install.sh -o install.sh
less install.sh
sudo sh install.sh
sudo journalctl -u stalwart -n 200 | grep -A8 'bootstrap mode'- 05From your workstation, open a tunnel with
ssh -L 8080:127.0.0.1:8080 root@<vps-ip>and browse tohttp://127.0.0.1:8080/admin. In the wizard, replace the pre-filled hostname and domain, leave automatic TLS and DKIM key generation switched on, and keep RocksDB and the internal directory. Automatic DNS management works with Cloudflare, Route 53, Google Cloud DNS and any server that accepts RFC 2136 updates. If your zone is hosted elsewhere, choose manual management and accept the two consequences the documentation spells out: the DKIM keys are never rotated, and the certificate is validated over port 443, which must therefore be reachable from the internet. Write down the administrator password on the last screen, because it is shown only there.
- 06Restart with
sudo systemctl restart stalwart, sign in athttps://mail.example.com/admin, add the MX record (example.com. MX 10 mail.example.com.), create a user account and send a message to an outside mailbox. Its headers should reportpassfor SPF, DKIM and DMARC. Before real users arrive, remove the port 8080 listener in the web interface, as the project's own security checklist advises.
Questions about the network side, PTR records included, go through a support ticket from the client panel.
- 01
Docker instead
The official image works equally well if the VPS already runs containers. Use the
v1tag, which follows 1.x releases but will not jump to a future major version aslatestwould, keep 8080 bound to loopback, and choose Console as the log destination in the wizard, because a container has no/var/log/stalwart/. The bootstrap password then comes fromdocker logs stalwart 2>&1 | grep -A8 'bootstrap mode', and the rest of the steps above apply unchanged.services: stalwart: image: stalwartlabs/stalwart:v1 container_name: stalwart init: true restart: unless-stopped ports: - "25:25" - "465:465" - "993:993" - "995:995" - "4190:4190" - "443:443" - "127.0.0.1:8080:8080" volumes: - stalwart-etc:/etc/stalwart - stalwart-data:/var/lib/stalwart volumes: stalwart-etc: stalwart-data:
05/06
Cost.
Cloud VPS Starter costs 6.99 USD a month, and the Stalwart Community edition costs nothing. Over a year that is 83.88 USD; spread over ten mailboxes it comes to about 0.70 USD per mailbox per month (theoretical, and before your own time). The price includes port 25 without a request, 10 TB of transfer a month, and the Debian 13 image in ALP1. You can pay in crypto, business customers included, and top-ups carry a bonus, with the unused balance refundable within 14 days.
What the price does not include is a mail administrator. Patching, DNS, deliverability and backups remain yours. An Enterprise licence, if you need one, is bought from Stalwart Labs, not from us.
06/06
Limits and acceptable use.
An open port 25 lets you run a mail server; it does not make bulk mailing acceptable. Swiss law already draws that line. Under art. 3(1)(o) of the Unfair Competition Act (UCA, SR 241), sending mass advertising by telecommunication without the recipients' prior consent, a correct sender identity and an easy, free way to refuse further mail is unfair competition. Unsolicited bulk mail, open relays and mail pushed through accounts you failed to secure are therefore not acceptable on our network.
Your obligations follow from running the service. Keep Stalwart and Debian patched, remove the setup listener and any recovery administrator once the server is live, keep authentication mandatory for every submission (Stalwart's default), and answer the abuse reports we forward to you. For the mailboxes you host, you are responsible for the personal data they contain under the revised Federal Act on Data Protection (FADP, nLPD in French), in force since 1 September 2023.
Complaints follow the same route as on the rest of our infrastructure. 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 the content is manifestly unlawful, in line with the Swico Code of Conduct Hosting 2025.
On jurisdiction, precision matters more than slogans. Switzerland Hosting is operated by Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen). On 15 January 2024 the European Commission confirmed that Switzerland still provides an adequate level of data protection, so mail from EU correspondents can reach your server 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 removes one shortcut; it does not put your mail beyond Swiss court orders or international mutual legal assistance, and we do not claim otherwise. If you intend to host mail for third parties rather than your own staff, follow the revision of the surveillance ordinance (VÜPF/OSCPT): it was put to consultation on 29 January 2025, is not in force as of 31 October 2026, and a second consultation has been announced. The offshore hosting page covers the legal background in more depth.
If you want a copied disk to yield ciphertext, Stalwart's encryption at rest stores each message body and its attachments encrypted with the user's own OpenPGP key or S/MIME certificate, whose private half stays in the user's mail client. The From, To and Subject headers stay readable, server-side search no longer finds words inside encrypted bodies, and a compromised running server can still read mail as it arrives. It protects stored mail and nothing more, which is often exactly what an office needs.
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.
Why not run Stalwart on a large cloud provider instead?
Most of them block the port it cannot work without. DigitalOcean blocks 25, 465 and 587 on all Droplets by default and points customers to third-party sending services. Hetzner blocks 25 and 465 on cloud servers and considers an unblock request, case by case, only after a month and a paid first invoice. Google Compute Engine blocks connections to port 25 outside your VPC network, apart from a few exempt projects. A smart host works around the block, but then your outbound mail depends on someone else's reputation and terms. The broader comparison is on our mail server guide.
Should I install 1.0 or stay on 0.16?
Install 1.0 on any new server. An existing 0.16 installation has to be brought to 0.16.27 first; the stalwart-migrate tool then copies the data incrementally into a fresh 1.0 store while the old server keeps running. In containers, use the v1 tag rather than latest.
Will Gmail and Outlook accept mail from a new server?
They will if the basics are right, and the basics are mostly DNS: PTR and A records that agree, SPF, DKIM and DMARC published, and a hostname that is not a container id. A fresh address has no sending history, and Stalwart has no built-in warm-up schedule; outbound throttles per destination domain, raised over a few weeks, give you a workable substitute.
Can I move existing mailboxes from Microsoft 365, Gmail or Dovecot?
Yes. The documentation has procedures for Dovecot and Postfix, other IMAP servers, Google Takeout, Maildir and Microsoft Exchange through EWS or Graph, plus a migration proxy for moving accounts without a hard cut-over. Passwords survive the move when the source stores hashes in a format Stalwart accepts; Dovecot hashes need their scheme prefix adjusted first.
Can one Cloud VPS Starter serve several domains?
Yes. The Community edition hosts several mail domains on one server, each with its own MX, SPF, DKIM and DMARC records. What it lacks is tenant administration, the delegation of a domain to a client's own administrator, which is an Enterprise feature. Agencies that want each client to manage its own users should budget for that licence.
Sources
Every fact on this page, with its source
Consulted 3 Nov 2026 unless noted.
Swiss law and authorities
- Federal Act against Unfair Competition (UCA, SR 241), art. 3(1)(o), link checked 3 Nov 2026fedlex.admin.ch · checked 3 Nov 2026
- Federal Act on Data Protection (FADP, RS 235.1), in force since 1 Sep 2023fedlex.admin.ch
- Swiss Federal Council, revision of the surveillance ordinance (VÜPF/OSCPT), status as of 31 Oct 2026admin.ch · status as of 31 Oct 2026
EU and other countries
- European Commission, adequacy decisions, review of 15 Jan 2024 (decision 2000/518/EC remains in force)commission.europa.eu
- US Department of Justice, CLOUD Act resources, verified 31 Oct 2026justice.gov · verified 31 Oct 2026
Industry, providers and software
- DigitalOcean, "Why is SMTP blocked?", last verified 13 Jul 2026docs.digitalocean.com · verified 13 Jul 2026
- Hetzner Docs, Cloud servers FAQ ("Why can I not send any mails from my server?"), last changed 12 Sep 2024, consulted 3 Nov 2026docs.hetzner.com
- Swico, Code of Conduct Hosting (revised version published 13 Mar 2025, in force since April 2025)swico.ch
Other references
- Stalwart Labs, "Stalwart v1.0: The Fastest Mail Server on the Planet", 26 Oct 2026 — release, first commit on 3 Oct 2021, final schema, 35 of 38 benchmarksstalw.art
- Linuxiac, "Stalwart 1.0 Open-Source Mail Server Reaches Its First Stable Release", Oct 2026 — benchmark hardware (8 vCPU Azure, Postfix 3.11, Dovecot 2.4), 1.0 cannot open earlier databases, stalwart-migrate from 0.16.27linuxiac.com
- heise online, "Stalwart: The world's fastest mail server?", 27 Oct 2026 — protocols, AGPL-3.0 Community edition, commercial Enterprise editionheise.de
- Stalwart documentation, "System requirements", updated 26 Oct 2026 — network prerequisites, default listeners, outbound HTTPS, CPU per sign-in and per message, disk per GB of mail, AVX2stalw.art
- Stalwart documentation, "Sizing memory", updated 26 Oct 2026 — 2,429 MiB and 1,405 MiB totals on a 2 GiB host, settings to lower on small hostsstalw.art
- Stalwart documentation, "Linux, macOS and FreeBSD", updated 2 Nov 2026 — installer, bootstrap password, setup wizard, supported DNS providers, consequences of manual DNS, removing the 8080 listenerstalw.art
- Stalwart documentation, "Docker", updated 2 Nov 2026 — Compose file, v1 tag, Console loggingstalw.art
- Stalwart documentation, "Licensing, migration and limits", updated 2 Nov 2026 — Enterprise-only features, no IP warm-up schedule, migration sources, password hashesstalw.art
- Stalwart documentation, "Encryption at rest", updated 2 Nov 2026 — what is encrypted, readable headers, effect on searchstalw.art
- Google Cloud, "Sending email from an instance", consulted 3 Nov 2026docs.cloud.google.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.
