With the server package, Muninn runs around the clock on an Ubuntu server, even when your computer is off. Computers, browsers and phones then connect to the server. Server mode requires the Business licence.
What you need
- System: Ubuntu Server 24.04 or 26.04, x64, with systemd. No desktop is needed, and Node comes with the package.
- Memory: Muninn uses about 1–1.5 GB. If you also run the search index with Ollama on the server, plan for 2–4 GB in total.
- Disk: a few GB for a typical mailbox, more for large mailboxes and for backups.
- A secure way in, for example Tailscale. Tailscale is a service that links your devices in a private, encrypted network.
Install
Install the package
Add Muninn’s package source with the commands under Update via apt on the download page, but finish with
sudo apt install muninn-serverYou can also download the
.debfile for Ubuntu Server from the download page and install it withsudo apt install ./muninn-server_<version>_amd64.deb. The package source is then added automatically. The package creates the system usermuninnand the servicemuninn-server. Your data ends up in/var/lib/muninn.Create the owner account
The owner account is the login that protects Muninn. Choose a password of at least 12 characters when asked.
sudo -u muninn muninn-admin create-owner myname sudo -u muninn muninn-admin statusMake the server reachable with Tailscale
The server only listens on the machine itself (127.0.0.1, port 7717). Install Tailscale following Tailscale’s Linux instructions, run
sudo tailscale upand turn on MagicDNS and HTTPS in your tailnet’s DNS settings. You can see the machine’s name withtailscale status --json(the fieldSelf.DNSName, without the trailing dot). Then create the file/etc/muninn/local.envcontainingMAILER_MODE=server MAILER_PUBLIC_URL=https://<machine>.<tailnet>.ts.net MAILER_TRUST_PROXY=1Restart and publish in your tailnet
sudo systemctl restart muninn-server.service sudo tailscale serve --bg --https=443 http://127.0.0.1:7717The address can now only be reached by devices in your tailnet. Don’t use
tailscale funnel, which opens the server to the whole internet.Sign in and activate your licence
Open the https address in a browser on a device in your tailnet and sign in with the owner account. Activate Business under Settings › App & license › License.
If you want your own https address instead of Tailscale, you need a reverse proxy in front of Muninn to handle https. Set that address as MAILER_PUBLIC_URL.
Connect a computer
Install the Client package from the download page, or sudo apt install muninn-klient on Ubuntu. The client shows the window, the quick window and notifications, but stores no mail itself. The computer must be part of your tailnet.
The first time, the client asks for a pairing link. Open Muninn on the server in a browser, go to Settings › Accounts & devices › Devices, click Pair new device and copy the link with Copy link. Paste the whole link into the client. The client saves the server address and restarts. You can also create a code in a terminal on the server with sudo -u muninn muninn-admin pair.
Connect your phone
The phone pairs the same way, with the QR code. See Muninn on your phone.
Accounts on the server
The server has no Thunderbird profile, so the Thunderbird import isn’t shown. The built-in sign-in with Google and Microsoft isn’t used on a server. Add Gmail with an app password.
Updates
Update with sudo apt update && sudo apt upgrade. The package shuts the service down safely, backs up the database and then starts the new version.
Backups in brief
sudo -u muninn muninn-admin backup
copies the database and the encrypted file with passwords and keys to a new folder under /var/lib/muninn/backups. The key that unlocks that file, /etc/muninn/secrets.key, is not included. Keep it separately, for example in a password manager. Without the key you have to enter passwords and API keys again. Read more in Updates and backups.
If something doesn’t work
sudo -u muninn muninn-admin status shows whether the server responds and whether the owner exists. Read the log with journalctl -u muninn-server.service -n 100 --no-pager. See also Troubleshooting.