Muninn on your phone

Make Muninn reachable from your phone, install the Android app and pair it – with Tailscale, step by step.

With the Android app you have the overview, the inbox, the agent and the approval queue in your pocket. The app gets everything from your own Muninn, so your email stays with you. This guide shows how the phone reaches Muninn, how to install the app and how to pair it.

What you need

  • A Business licence. Mobile is included in Business; Personal covers one computer. See pricing.
  • Android 10 or later.
  • Muninn running on a computer that is switched on, or on a server with the server package.
  • A route from the phone to Muninn. The simplest is Tailscale, described below.

Make Muninn reachable from your phone

Muninn only listens on the computer itself, at the address 127.0.0.1 and port 7717. Your phone can’t reach that address. Muninn therefore needs a public https address that the phone can reach.

The simplest way is Tailscale. It is a private network between your own devices, called a tailnet. The address Muninn gets can only be reached by your devices in that network, not from the rest of the internet.

The steps below are for the desktop app on Linux. With the server package, the installer can set up Tailscale for you; see Your own server. On Windows, Muninn reads the setting from the MAILER_PUBLIC_URL environment variable and there is no settings file; email support@muninnmail.app if you want to use your phone with Windows.

  1. Create an owner account

    Open Settings › Accounts & devices › Devices. Under Create an owner account first, choose a username and a password of at least 12 characters and click Create account. This only works on the computer where Muninn runs.

  2. Install Tailscale on the computer and the phone

    Install Tailscale on the computer from tailscale.com/download and sign in with sudo tailscale up. Install the Tailscale app on your phone and sign in with the same account.

  3. Turn on MagicDNS and HTTPS

    Open the Tailscale admin console in your browser. Turn on MagicDNS and HTTPS under DNS. Your computer then gets a name and a certificate.

  4. Find your computer's address

    Run tailscale status --json and find the Self.DNSName field. Remove the trailing dot. The address looks something like computer.tailnet-name.ts.net.

  5. Add the address to Muninn

    Open the file ~/.config/muninn/env in a text editor. Muninn creates it the first time the app starts; if it isn’t there, create it. Add two lines, with your address:

    MAILER_PUBLIC_URL=https://computer.tailnet-name.ts.net
    MAILER_TRUST_PROXY=1

    The file contains no passwords and shouldn’t.

  6. Publish Muninn in your tailnet

    Run:

    sudo tailscale serve --bg --https=443 http://127.0.0.1:7717

    Don’t use tailscale funnel. It opens Muninn to the whole internet.

  7. Restart Muninn and sign in

    Run systemctl --user restart muninn.service. Once the address is set, Muninn asks for the owner account’s password on the computer too, so sign in with the account you created. Then check under Settings › Accounts & devices › Email accounts that your accounts sync as usual.

Install the app

Open the download page on your phone and get the file under Android (beta). Open the downloaded file. Android may ask whether the browser is allowed to install apps; allow it to continue.

Pair your phone

  1. Create a pairing code on the computer

    Open Settings › Accounts & devices › Devices and click Pair new device. A QR code and an eight-character code appear. The code is valid for ten minutes. New code gives you a fresh one.

  2. Scan or paste

    Open Muninn on your phone. On the Pair with Muninn screen, tap Scan QR code and point the camera at the code. You can also click Copy link on the computer, get the link to your phone, paste it into Pairing link and tap Pair device. The app accepts both the muninn:// link and the web link from Copy link.

  3. Done

    The phone appears under Paired devices. If the phone goes missing, click Revoke and it stops working at once.

Devices with a pairing code

If the computer instead shows To pair a phone, Muninn must be reachable from the phone., the public address is missing. Go back to Make Muninn reachable from your phone.

New in the app

  • Swipe right deletes, with Undo. The email moves straight to the trash and Moved to trash appears with an Undo button. Swipe left archives as before. Change the swipes under Swipe actions in the app’s settings.
  • Trash in the reading view. Delete is an icon at the top of the reading view, with no confirmation dialog. Deleting permanently from the trash is always confirmed.
  • A softer look with more space, and a calmer reading view where ordinary emails use the app’s own typeface.
  • Guides under More opens the guides in your browser.

Common problems

“Cannot reach … Is Tailscale (or VPN) running on your phone?” The phone can’t reach Muninn. Check that Tailscale is on in the phone, that the computer is switched on and that tailscale serve is still running.

“The server certificate could not be verified.” HTTPS isn’t turned on in your tailnet, or the address in MAILER_PUBLIC_URL doesn’t exactly match the computer’s name. Check steps 3 and 4.

“The code expired or was used – create a new one.” Click New code on the computer and pair again within ten minutes.

“Mobile is included in Business.” Your licence is Personal. Upgrade under Settings › App & license › License.

More cases are in Troubleshooting.

Next steps