Home / Self-hosting

Run WireShock on your own server.

The same open-source app and features as app.wireshock.com, on a server you control. Every mailbox, push notifications, sync across devices, and no limits by default.

Single binary or Docker Open source, AGPL-3.0 Free software

Who it's for

The hosted service has every feature and is free, so most people never need to self-host. Run your own server when you want:

  • Your data on hardware you control. Mail logins, cached mail and settings never leave your server.
  • No usage limits. The free hosted plan allows 10 mail accounts, 500 MB of cached mail and checks every 5 minutes. Your own instance has no limits unless you set them.
  • An instance for a household or small team. Invite people, or open signups; each user's data is kept separate.
  • To change the code. It's AGPL-3.0: modify it, and share your changes with your users.

You'll be comfortable here if you've run a Docker container or a small service behind a reverse proxy before.

What you get

  • IMAP, POP3 and SMTP for any provider, with server settings filled in automatically for most, plus Gmail and Outlook connected through your server.
  • Real push notifications to desktop, Android, iPhone and iPad (iOS 16.4+ from the Home Screen), even when the app is closed.
  • Sync across devices, plus the one-click encrypted backup of your logins.
  • Passkey and email-link sign-in, with invite-only or open signups. The first user becomes the admin.
  • Mail logins encrypted at rest with your instance's own master key.
  • Everything else from app.wireshock.com: the smart inbox with People, Notifications and Newsletters, pinned mail, the unified inbox, offline mode and keyboard shortcuts.
  • No limits by default on accounts, cached mail or check frequency.

Requirements

  • A small always-on machine. A VPS, a home server or a NAS that can run Docker or a Linux binary.
  • A domain with HTTPS, such as mail.example.com. Browsers only allow passkeys, push notifications and app installation on secure origins, so put WireShock behind a reverse proxy that terminates TLS (Caddy, nginx, Traefik or similar).
  • Outbound connections to your mail providers on the standard secure ports:

993IMAP over TLS 995POP3 over TLS 465SMTP over TLS 587SMTP with STARTTLS

  • Optional: an SMTP account for sign-in links. Magic-link sign-in needs a way to send email; passkeys work without one.

Some home and cloud networks block outbound port 465 or 587 to fight spam. If sending fails, check with your provider before debugging WireShock.

Quick start: Docker

Create a folder for WireShock and save this as docker-compose.yml, with your own domain in WIRESHOCK_PUBLIC_URL:

docker-compose.yml · illustrative, see the guide for the current reference
services:
  wireshock:
    image: ghcr.io/fridev/wireshock:latest
    restart: unless-stopped
    ports:
      - "127.0.0.1:8080:8080"   # your reverse proxy forwards HTTPS here
    environment:
      WIRESHOCK_PUBLIC_URL: https://mail.example.com
    volumes:
      - ./data:/data            # databases, keys and settings

Start it, then point your reverse proxy for mail.example.com at localhost:8080:

Terminal
docker compose up -d

Keep /data safe. It holds your instance's master key along with everything it encrypts. Lose the volume and the stored mail logins can't be recovered; leak it and they can be read.

Quick start: single binary

Prefer no containers? Download the release for your platform from GitHub Releases and run it under systemd or your process manager of choice:

Terminal · illustrative, see the guide for the current reference
WIRESHOCK_PUBLIC_URL=https://mail.example.com ./wireshock-server serve

Like the container, it listens on port 8080 and expects a reverse proxy in front for HTTPS. The full guide lists every setting, including where the binary keeps its data.

First sign-in

  1. Open your domain, for example https://mail.example.com.
  2. Create the first account with a passkey. The first user becomes the admin.
  3. In the admin settings, choose who else can join: invite-only or open signups.
  4. Install the app from your browser on each device and turn on notifications.

Connecting mailboxes

  • IMAP, POP3 and SMTP: add an account with your address and password. For providers with two-step sign-in, use an app password.
  • Gmail: create a Google OAuth client with the redirect URI https://<your-domain>/api/oauth/gmail/callback. See the Gmail guide.
  • Outlook / Microsoft 365: register a Microsoft Entra app with the Web redirect URI https://<your-domain>/api/oauth/microsoft/callback and a client secret. See the Outlook guide.

Updates and backups

  • Updating: with Docker, docker compose pull and then docker compose up -d. With the binary, replace it with the new release and restart. Read the release notes first.
  • Backups: back up the data directory regularly, and store the backup as carefully as the server itself, since it contains the master key.
  • Security fixes: watch the repository's releases on GitHub so you hear about them.

The full guide

This page is a tour. The reference for configuration, reverse-proxy examples, push notification keys, outgoing mail for sign-in links and upgrades is the self-hosting guide in the repository.

Open docs/SELF_HOSTING.md

An instance you run is operated by you, not by WireShock: you're responsible for its security, its users' data and the policies that apply to them. Questions and bug reports are welcome on GitHub. Last updated 30 November 2026.