True P2P Email on top of Yggdrasil Network for Android
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
JB-SelfCompany 2631005690 release: 1.9.2.4 (vc 35)
Chat messages arrive with their text again (#43), header values are
stripped of line breaks, and the in-app update check is gone. Native
lib unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 17:10:06 +03:00
.github ci: run gradlew through bash, mark it executable 2026-11-17 19:06:58 +03:00
app release: 1.9.2.4 (vc 35) 2026-11-18 17:10:06 +03:00
fastlane/metadata/android release: 1.9.2.4 (vc 35) 2026-11-18 17:10:06 +03:00
gradle/wrapper build: update toolchain and dependencies to latest 2026-11-17 16:25:55 +03:00
.editorconfig build: add ktlint and reformat sources 2026-11-17 16:02:37 +03:00
.gitignore chore: anchor release/ ignore to repo root, ignore .claude/ 2026-11-17 16:25:55 +03:00
build.gradle build: update toolchain and dependencies to latest 2026-11-17 16:25:55 +03:00
gradle.properties Backup & Restore 2025-11-25 00:10:13 +03:00
gradlew ci: run gradlew through bash, mark it executable 2026-11-17 19:06:58 +03:00
gradlew.bat Update to 1.2.0 version. Add deltachat autoconfig button and func. Fix logo, notifications. 2025-11-24 14:08:33 +03:00
LICENSE Initial commit 2025-11-20 23:22:46 +03:00
logo.png Native engine migrated from Go (gomobile AAR) to Rust — yggmail-ng + imap-rs — 2026-07-12 11:51:37 +03:00
native-sources.txt release: 1.9.2.2 (vc 33) 2026-11-11 08:39:53 +03:00
README.md docs: rewrite README in English only with fresh screenshots 2026-11-17 17:20:02 +03:00
settings.gradle Initial Release 2025-11-22 22:17:20 +03:00

Tyr

A mail server that runs on your phone and delivers straight to other phones
over the Yggdrasil mesh. No provider in between.

Get it at IzzyOnDroid

IzzyOnDroid

Android 6.0 or newer


Home: service running, connected peer, your @yggmail address  Onboarding: pick a peer automatically or enter one  Share your address as a QR code or link  Settings

What it is

Tyr embeds yggmail-ng and runs it as a foreground service. Your address is your public key, <64 hex>@yggmail, so nobody can register it before you or impersonate it. Mail travels node to node across Yggdrasil, which encrypts it in transit, with no MX records, port forwarding or relay to trust.

On the phone it looks like an ordinary mail account on 127.0.0.1, so DeltaChat, ArcaneChat, K-9 Mail, FairEmail or Thunderbird can use it as-is. Tyr also has a small chat of its own for text and photos.

  • Peers picked for you: Tyr tests public peers, connects to the fastest and keeps a second one on standby that takes over if the first one drops
  • One-tap setup for DeltaChat and ArcaneChat; plain SMTP/IMAP for everything else
  • Address sharing by QR code, mailto: or link
  • Mail and the private key are encrypted at rest; the password is encrypted with a key held in the Android Keystore
  • Password-encrypted backups that can carry the mail archive and chats
  • Starts on boot, Doze-aware, notifies without Google or any push service

Install

Get it from IzzyOnDroid or download an APK from Releases. Releases come per ABI (arm64-v8a fits almost every current phone) and as a larger universal build.

Release APKs are signed with this certificate:

Package   com.jbselfcompany.tyr
SHA-256   5B:AE:87:76:77:27:DE:3D:39:60:01:25:F6:26:3E:51:5A:69:87:F1:FA:A9:72:52:75:98:A9:B1:FD:A4:F6:9E

Check a download with apksigner verify --print-certs Tyr-*.apk.

Getting started

  1. Open Tyr, set a password, and leave Pick a peer automatically on.
  2. Wait for the peer to show Connected on the home screen. The first pick takes about a minute.
  3. Tap Setup DeltaChat/ArcaneChat. The app opens with the account already filled in.

For any other mail client, add an account by hand:

Field Value
Address your <64 hex>@yggmail from the home screen
Password the one you set in Tyr
IMAP 127.0.0.1, port 1143, no TLS
SMTP 127.0.0.1, port 1025, no TLS

Important

Mail only moves while Tyr is running. Keep Start on Boot on and allow the app to ignore battery optimization when asked.

How it works

 DeltaChat · K-9 · Tyr chat
        │  SMTP :1025 / IMAP :1143, loopback only
        ▼
 Tyr ─ yggmail-ng (Rust, via UniFFI) ──▶ Yggdrasil mesh ──▶ recipient's Tyr

The server is written in Rust and shipped as libyggmail_mobile.so. Tyr starts it, keeps it alive, watches the peer link and swaps to the backup peer after two minutes of downtime.

Some things to know before relying on it:

  • Both sides need to be online for a message to cross. Outgoing mail waits in a queue and is retried, but there is no server holding mail for you while your phone is off.
  • <64 hex>@yggmail addresses only reach other Yggmail nodes, not regular email.
  • The localhost SMTP and IMAP ports have no TLS. They are bound to 127.0.0.1 and need the password, but any app on the device can try to connect.
  • Regenerating keys gives you a new address. Make a backup first if you want to keep the old one.

Building

JDK 17 and the Android SDK are all you need for the app itself.
git clone https://github.com/JB-SelfCompany/Tyr.git
cd Tyr
./gradlew assembleDebug        # app/build/outputs/apk/debug/
./gradlew testDebugUnitTest    # unit tests (JUnit + Robolectric)

Set the SDK path in local.properties (sdk.dir=...) or ANDROID_HOME. A release build without keystore.properties comes out unsigned, which is what F-Droid style reproducible builds expect.

The native library is prebuilt in app/src/main/jniLibs/<abi>/, with its UniFFI bindings in app/src/main/java/uniffi/. native-sources.txt records the exact yggmail-ng commit and toolchain. Rebuilding it needs Rust with the aarch64, armv7, x86_64 and i686 Android targets, cargo-ndk and the NDK; the steps are in the yggmail-ng README.

yggmail-ng, the server inside Tyr · Yggdrasil · DeltaChat · ArcaneChat · Mimir, a P2P messenger on Yggdrasil

License

GPLv3, see LICENSE. The bundled yggmail-ng library is MPL-2.0.