Self-hosted app·Mail and private messaging
SimpleLogin hosting on a Swiss VPS in ALP1.
SimpleLogin hosting on a Swiss VPS in ALP1: port 25 open, Docker on Debian 13, sizing, PTR and DKIM setup, from 12.99 USD/mo paid in crypto.
- SimpleLogin
- Python
- PostgreSQL
- nginx
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port15 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: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes, you can run SimpleLogin with us, and the plan we recommend is Cloud VPS Standard: 4 vCPU, 4 GB of RAM, 160 GB of NVMe and 15 TB of monthly transfer for 12.99 USD a month, installed with Debian 13 in ALP1, our site in the Swiss Alps. Outbound port 25 is open on every VPS from the first boot, with no request form, and an alias server is useless without it. The hardware is the easy part. Every message one of your aliases receives leaves the server again, rewritten and signed with your domain's DKIM key, so Gmail and Outlook.com judge each forward by your IP address and your domain. Set up reverse DNS, SPF, DKIM and DMARC before you create the first alias, and keep spam out of the forwarding path, because you are the one who will be forwarding it.
02/06
What SimpleLogin is and who maintains it.
SimpleLogin gives you a separate email address for every site you sign up to. Mail sent to an alias is forwarded to your real mailbox, and when you reply, the reply leaves from the alias, so the site never learns which mailbox sits behind it. The mechanism is the reverse alias: SimpleLogin rewrites the sender of each forwarded message to an address on your SimpleLogin domain, your reply goes to that address, and your server swaps the headers back before delivering it. The back end is a Python and Flask application on PostgreSQL, fed by Postfix, published under the AGPL-3.0 in the simple-login/app repository. The browser extensions and the mobile apps are open source as well, and upstream documents that you point them at your own server by changing their API URL. SimpleLogin began as a Paris start-up and joined Proton AG on 8 April 2022; the hosted service at simplelogin.io carries on alongside the self-hostable code.
Decide first what self-hosting buys you, because the hosted service already accepts your own domain and already carries the deliverability problem for you. What you gain by running it yourself is the database. It maps every alias to the site it was created for and keeps the addresses of everyone who has written to it, which adds up to a list of every account you hold and most of the people who mail you. If that list should sit on a machine you administer, under Swiss law, self-hosting is the right call. If you mainly want less spam in your inbox, a hosted plan is less work, and we would rather say so than sell you a server.
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.
Upstream asks for a Linux server with at least 2 GB of RAM, because most components run in Docker, plus open ports 25, 80, 443 and 22 and a domain or subdomain whose DNS you control. SimpleLogin stores no mailboxes. It keeps a PostgreSQL database of users, aliases, contacts and email logs, and a directory of quarantined messages, so disk grows slowly and CPU only matters once SpamAssassin scanning is switched on. You need no submission port either: your mail client never talks to SimpleLogin, your mailbox provider does, over port 25.
| Component | Runs | Listens on |
|---|---|---|
Postfix with postfix-pgsql | on the host | 0.0.0.0:25 |
PostgreSQL (sl-db) | container | 127.0.0.1:5432 |
Web app and API (sl-app) | container | 127.0.0.1:7777, behind nginx |
Email handler (sl-email) | container | 127.0.0.1:20381, fed by Postfix |
Job runner (sl-job-runner) | container | — |
| nginx and certbot | on the host | 80, 443 |
Read upstream's README as a description of the architecture rather than a script to paste. When we checked on 4 November 2026 it still targeted Ubuntu 18.04, pinned simplelogin/app:3.4.0 and started PostgreSQL 12.1, a major version that has received no fixes since its final release in November 2024. Current builds are published as simplelogin/app-ci with v4 tags; dependency bots were moving installations to v4.83.2 on 26 October 2026, so check Docker Hub for the current tag on the day you deploy. Version 4 also replaced flask db upgrade with alembic upgrade head as the migration command. For a new install we use PostgreSQL 17, which the springcomp community Compose project also runs.
| Plan | vCPU / RAM / NVMe | Transfer | Price | Our view |
|---|---|---|---|---|
| Starter | 2 / 2 GB / 80 GB | 10 TB | $6.99/mo | Meets upstream's 2 GB floor; enough for one person without SpamAssassin |
| Standard | 4 / 4 GB / 160 GB | 15 TB | $12.99/mo | Recommended: a household or small team, SpamAssassin on, headroom for image pulls and migrations |
| Pro | 6 / 8 GB / 320 GB | 20 TB | $22.99/mo | Registration open to an association or community |
Transfer will not be your limit. Each forward crosses the network twice, so at an average of 100 KB per message the 15 TB included with Standard covers about 75 million forwarded messages a month. That figure is theoretical and absurdly far above what a household or a Verein produces; the limit you will actually meet is the reputation of your address.
04/06
How to deploy it with us.
The steps keep upstream's architecture, Postfix on the host and the application in containers on a fixed Docker network, and replace its docker run commands with one Compose file. Replace muster.example, sl.muster.example and 203.0.113.25 with your alias domain, the web app's hostname and the address in your handover email.
- 01
1. Order, then ask for the PTR
Order Cloud VPS Standard with Debian 13. Once you can log in, confirm that outbound port 25 connects with
nc -vz -w 5 gmail-smtp-in.l.google.com 25, then open a support ticket from the client panel asking for the reverse DNS of your IPv4 address to be set tosl.muster.example. The PTR, the A record and Postfix'smyhostnamemust all name the same host. If the server also has an IPv6 address without a PTR, setinet_protocols = ipv4in Postfix rather than send over IPv6 without one. - 02
2. DKIM key and DNS
mkdir -p /opt/simplelogin/sl/{pgp,upload} && cd /opt/simplelogin openssl genrsa -out dkim.key -traditional 2048 openssl rsa -in dkim.key -pubout -out dkim.pub.keymuster.example. MX 10 sl.muster.example. sl.muster.example. A 203.0.113.25 muster.example. TXT "v=spf1 mx -all" dkim._domainkey.muster.example. TXT "v=DKIM1; k=rsa; p=…" ; dkim.pub.key on one line _dmarc.muster.example. TXT "v=DMARC1; p=quarantine; adkim=r; aspf=r"Upstream generates a 1024-bit key because some registrars handle long TXT records badly; we use 2048 bits and split the record into quoted strings, which most DNS hosts accept. Upstream's SPF record ends in
~all. If this server is the only one sending for the domain,-allsays so plainly. - 03
3. Postfix on the host
apt update && apt install -y postfix postfix-pgsql nginx certbot python3-certbot-nginx curl -fsSL https://get.docker.com | shChoose "Internet Site" when Debian asks. Then merge upstream's
main.cfinto Debian's file instead of pasting over it: an emptymydestination,myhostname = sl.muster.example,mynetworksextended with10.0.0.0/24,relay_domainsandtransport_mapspointing at the twopgsql-*.cflookup files, and the HELO, sender and recipient restrictions with their Spamhaus checks. The lookup files carry the database password from step 4 and route mail for your domain and for verified custom domains tosmtp:127.0.0.1:20381, where the email handler listens. Runpostconf -mto confirm that Debian 13's Postfix supports every map type the merged file names.Two details upstream leaves to you. Spamhaus refuses DNSBL queries that reach it through large public resolvers, so a Postfix that forwards DNS to one quietly loses its best blocklist; point the host at a local Unbound, or use the Spamhaus DQS setup that upstream documents. And if
10.0.0.0/24clashes with a network you already use, choose another subnet and change it in three places: the Compose file,mynetworksandPOSTFIX_SERVER. - 04
4. The Compose file
Copy
example.envfrom the repository at the tag you deploy to/opt/simplelogin/simplelogin.env, delete theNOT_SEND_EMAIL=trueline (it is there for development, and with it the server prints mail instead of sending it) and set at least these values:URL=https://sl.muster.example EMAIL_DOMAIN=muster.example SUPPORT_EMAIL=support@muster.example EMAIL_SERVERS_WITH_PRIORITY=[(10, "sl.muster.example.")] DISABLE_ALIAS_SUFFIX=1 DKIM_PRIVATE_KEY_PATH=/dkim.key DB_URI=postgresql://sl:CHANGE_ME@sl-db:5432/simplelogin FLASK_SECRET=a-long-random-string GNUPGHOME=/sl/pgp LOCAL_FILE_UPLOAD=1 POSTFIX_SERVER=10.0.0.1Put
DB_PASSWORD=CHANGE_ME, with the same password, in/opt/simplelogin/.env, then save this as/opt/simplelogin/compose.yaml:name: simplelogin x-sl: &sl image: simplelogin/app-ci:v4.83.2 # check Docker Hub for the current tag volumes: - ./sl:/sl - ./sl/upload:/code/static/upload - ./simplelogin.env:/code/.env:ro - ./dkim.key:/dkim.key:ro - ./dkim.pub.key:/dkim.pub.key:ro networks: [sl-network] services: sl-db: image: postgres:17 container_name: sl-db restart: always environment: POSTGRES_USER: sl POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_DB: simplelogin volumes: - ./pgdata:/var/lib/postgresql/data ports: - "127.0.0.1:5432:5432" # for Postfix's pgsql lookups networks: [sl-network] healthcheck: test: ["CMD-SHELL", "pg_isready -U sl -d simplelogin"] interval: 10s retries: 10 sl-migration: <<: *sl command: ["alembic", "upgrade", "head"] depends_on: sl-db: { condition: service_healthy } sl-init: <<: *sl command: ["python", "init_app.py"] depends_on: sl-migration: { condition: service_completed_successfully } sl-app: <<: *sl container_name: sl-app restart: always ports: - "127.0.0.1:7777:7777" depends_on: sl-init: { condition: service_completed_successfully } sl-email: <<: *sl container_name: sl-email restart: always command: ["python", "email_handler.py"] ports: - "127.0.0.1:20381:20381" depends_on: sl-init: { condition: service_completed_successfully } sl-job-runner: <<: *sl container_name: sl-job-runner restart: always command: ["python", "job_runner.py"] depends_on: sl-init: { condition: service_completed_successfully } networks: sl-network: name: sl-network ipam: config: - subnet: 10.0.0.0/24 gateway: 10.0.0.1Start it with
docker compose up -dand readdocker compose logs sl-migration sl-initbefore anything else. Every published port is bound to 127.0.0.1, so the only services reachable from outside are Postfix, nginx and SSH. - 05
5. nginx and TLS
Create
/etc/nginx/sites-enabled/simpleloginwith aserverblock forsl.muster.examplethat passes/tohttp://127.0.0.1:7777withproxy_set_header Host $host, and remove Debian'sdefaultsite, which upstream warns will make certbot fail. Then:certbot --nginx -d sl.muster.example --deploy-hook "systemctl reload postfix"Point Postfix's
smtpd_tls_cert_fileandsmtpd_tls_key_fileatfullchain.pemandprivkey.pemunder/etc/letsencrypt/live/sl.muster.example/, replacing the snakeoil lines in upstream'smain.cf. The deploy hook reloads Postfix whenever the certificate renews. - 06
6. First account, then close registration
Register at
https://sl.muster.example. Self-hosted accounts start as non-premium, so give yours the lifetime flag, setDISABLE_REGISTRATION=1insimplelogin.env(DISABLE_ONBOARDING=trueis already inexample.env) and restart the web app:docker exec -it sl-db psql -U sl simplelogin -c "UPDATE users SET lifetime = TRUE;" docker compose restart sl-appSend a message from an outside mailbox to a new alias. In the forwarded copy, Gmail's "Show original" should report SPF, DKIM and DMARC as passing for
muster.example. Reply to it and check that the outside mailbox sees only the alias. - 07
7. Backups and upgrades
The parts you cannot rebuild are the database,
dkim.key,simplelogin.envandsl/pgp. Lose the key and you republish DNS; lose the database and every alias stops existing. A nightly job of two lines covers it, with restic encrypting before anything leaves the server and an object storage bucket as the repository:docker exec sl-db pg_dump -U sl -Fc simplelogin > /opt/backup/simplelogin.dump restic backup /opt/backup /opt/simplelogin/dkim.key /opt/simplelogin/simplelogin.env /opt/simplelogin/sl/pgpTo upgrade, read the changelog, change the image tag, and run
docker compose pull && docker compose up -d; the migration runs before the application restarts. A PostgreSQL major upgrade is a dump and restore, not a tag change.
05/06
Cost.
| What you order | Per month |
|---|---|
| Cloud VPS Standard (1 IPv4, 15 TB transfer, port 25 open, Debian 13) | $12.99 |
| Standard with daily backups (+20 %) | $15.59 (theoretical, rounded) |
| Standard plus a 250 GB object-storage bucket for restic | $14.98 |
| Standard on yearly billing (about −25 %) | about $9.75, or $116.99 a year |
| Extra IPv4, if you want SimpleLogin's forwarding on its own address | +$2.00 |
The 250 GB bucket is more than an alias database will fill for years, but it is the smallest size we sell, and restic's snapshots outlive the VPS if you ever cancel it. The domain is not included, and neither is your time; the second decides whether this is worth doing. Payment is in cryptocurrency only, and top-ups carry a bonus: 100 USD tops up to 110 USD, which pays for about eight months of Standard (theoretical), and the unused paid part is refundable within 14 days. Every product is on the pricing page.
06/06
Limits and acceptable use.
Running SimpleLogin for yourself, your household, your staff or the members of an association is what this page is for. Opening registration to the public is a different undertaking. A free alias service with open sign-up attracts people who want throwaway addresses for fraud and mass account creation, and reverse aliases let every user send mail from your domain to anyone. If you open it anyway, use the controls upstream ships, an hCaptcha on sign-up, the ALIAS_LIMIT rate on alias creation and MAX_NB_EMAIL_FREE_PLAN for non-premium accounts, and read the logs.
Our acceptable use policy rules out unsolicited bulk mail, phishing, mail sent under domains you do not control and open relays; keep mynetworks to localhost and the Docker subnet. A server that sends spam, keeps forwarding it after we have told you, or ignores abuse reports loses port 25 and can lose service. Your obligations are practical: keep abuse@ and postmaster@ working for every domain you serve (in SimpleLogin they are aliases pointing at a mailbox you read), patch the host and the image, and answer forwarded complaints in the ticket. 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 (Swico Code of Conduct Hosting 2025).
Once other people's mail passes through your instance, you are their data controller under the revised Federal Act on Data Protection, in force since 1 September 2023, and securing the server is your duty, not ours. Members in the EU are covered by the European Commission's adequacy decision for Switzerland, reconfirmed on 15 January 2024, so no extra transfer safeguards are needed. Serving addresses for people outside your own organisation may also make you a provider of a derived communication service under the surveillance act, which our page on Swiss surveillance law explains; the revision of its ordinance consulted on 29 January 2025 was not in force on 31 October 2026, and the Federal Council has announced a second consultation. On foreign requests, the US Department of Justice listed CLOUD Act executive agreements only with the United Kingdom and Australia as of 31 October 2026, so a foreign authority normally goes through Swiss mutual legal assistance. That describes procedure, not a promise; the detail is on our offshore hosting page.
All our servers are in one facility. If the VPS is down, sending servers queue and retry for days, since RFC 5321 expects them to keep trying for at least four to five days, so an outage delays mail rather than losing it. Resist adding a backup MX that lacks your alias table: it accepts everything, and spammers aim at it for exactly that reason.
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 |
| StandardRecommendedSmall 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 I run SimpleLogin on the 6.99 USD Starter plan?
Yes, if it is only you. Starter's 2 GB of RAM meets upstream's recommended minimum and its 80 GB of NVMe is far more than the database needs. We recommend Standard because pulling a new image while the old containers still run, or switching on SpamAssassin, leaves little headroom on 2 GB.
Do the browser extensions and mobile apps work with my own server?
Yes. Upstream's instructions are to change the API URL in the extension or app settings to your instance, for example https://sl.muster.example. Aliases you create from the extension then live in your database, not in the hosted service.
Do I have to pay SimpleLogin for premium features on my own instance?
No. Upstream states that self-hosters can use every feature without paying, and suggests a donation through Open Collective instead. New accounts start as non-premium, so set the lifetime flag as in step 6.
Will forwarded mail reach the inbox at Gmail and Outlook.com?
Nobody can promise that, and a host that does is guessing. A matching PTR, SPF, DKIM and DMARC are the entry ticket, and a new address needs weeks of ordinary traffic before large receivers trust it. Forwarded spam is the specific risk for an alias server: disable aliases that attract it, keep Postfix's DNSBL checks working, and consider ENABLE_SPAM_ASSASSIN. Our mail server page covers warm-up and blocklist checks in more detail.
Does hosting SimpleLogin in Switzerland make my email private?
It puts the alias database and its logs on a server in ALP1, under Swiss law and Swiss procedure. It does nothing for the copy that lands in your real mailbox: if that mailbox is at Gmail, Google stores every forwarded message under its own terms. Pair the alias server with a mailbox provider you trust.
Can I order without ID and pay in crypto?
Yes. No-KYC: an email address is enough, and it can be one of your aliases. We accept Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and other coins, including from business customers. Neither changes the rules in the limits section above.
Sources
Every fact on this page, with its source
Verified 31 Oct 2026 unless noted.
Swiss law and authorities
- Revised Federal Act on Data Protection in force since 1 September 2023Fedlex, RS 235.1
- VÜPF/OSCPT revision consulted on 29 January 2025, not in force as of 31 October 2026, second consultation announcedadmin.ch · consulted 29 Jan 2025
- Derived communication services, BÜPF art. 2 let. cFedlex, SR 780.1 · accessed 2 Nov 2026
EU and other countries
- EU adequacy for Switzerland reconfirmed on 15 January 2024, decision 2000/518/EC in forceEuropean Commission, adequacy decisions
- CLOUD Act executive agreements only with the United Kingdom and Australiajustice.gov
Industry, providers and software
- Requirements (Linux, 2 GB RAM, ports 25/80/443/22, domain), component layout, Postfix with postfix-pgsql, handler on port 20381, 1024-bit DKIM choice, simplelogin/app:3.4.0 and postgres:12.1, API URL in extensions and apps, lifetime flag, DISABLE_REGISTRATION, "all features" without payment, Spamhaus DQS pointersimple-login/app README
- NOT_SEND_EMAIL, LOCAL_FILE_UPLOAD, ENABLE_SPAM_ASSASSIN, ALIAS_LIMIT, MAX_NB_EMAIL_FREE_PLAN, hCaptcha, DISABLE_ONBOARDINGsimple-login/app example.env
- Upgrade procedure and 3.4.0 as the last documented versionsimple-login/app docs/upgrade.md
- Migration command alembic upgrade head for 4.x imagessimple-login/app issue #1956
- simplelogin/app-ci moved to v4.83.2 on 26 October 2026github.com
- SimpleLogin deployments on PostgreSQL 17.7 and 18.1github.com
Other references
- PostgreSQL 12 end of life, final release 12.22postgresql.org
- SimpleLogin joined Proton on 8 April 2022simplelogin.io
- Spamhaus refuses queries arriving via public resolversspamhaus.org
- Retry period of at least four to five daysRFC 5321, section 4.5.4.1
- abuse@ and postmaster@ mailboxesRFC 2142
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.
