End-to-end encrypted email for the mesh networking age https://matrix.to/#/#yggmail:matrix.org
  • Go 98.1%
  • Batchfile 1.7%
  • Dockerfile 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
JB-SelfCompany 1706717a02
Some checks failed
Docker / Docker image (push) Has been cancelled
docs: note the move to https://git.shd.company/bubblegum/yggmail-go
2026-11-03 09:23:59 +03:00
.github/workflows Fix GitHub Actions pipeline 2023-12-10 11:01:43 +00:00
cmd/yggmail Sync for original repo 2025-12-25 22:28:36 +03:00
internal fix: reduce undeliverable message timeout from 7 days to 24 hours 2026-03-30 16:51:53 +03:00
mobile fix: reduce undeliverable message timeout from 7 days to 24 hours 2026-03-30 16:51:53 +03:00
.gitignore chore: ignore local AI-tool files 2026-11-02 23:52:51 +03:00
Dockerfile Large file support up to 500 MB with FileStore (filesystem storage for messages >1 MB). Unread quota system with configurable limits and automatic enforcement at SMTP level. Pre-send quota check API to verify recipient capacity before sending large messages 2025-12-25 16:03:29 +03:00
go.mod fix: reduce undeliverable message timeout from 7 days to 24 hours 2026-03-30 16:51:53 +03:00
go.sum fix: reduce undeliverable message timeout from 7 days to 24 hours 2026-03-30 16:51:53 +03:00
LICENSE MPL 2.0 2021-07-18 23:03:28 +01:00
README.md docs: note the move to https://git.shd.company/bubblegum/yggmail-go 2026-11-03 09:23:59 +03:00
README.ru.md fix: reduce undeliverable message timeout from 7 days to 24 hours 2026-03-30 16:51:53 +03:00

Moved / Переехал: development continues at https://git.shd.company/bubblegum/yggmail-go. This GitHub copy is archived.

📧 Yggmail

End-to-end encrypted email over Yggdrasil Network with Android support

License Go Visitors

English | Русский


Note

: This is a fork of the original Yggmail project with added support for Android library compilation via gomobile.

✨ Features

  • 📬 Your inbox stored on your own machine
  • 🔐 All mail traffic end-to-end encrypted via Yggdrasil
  • 📱 IMAP/SMTP protocols for standard email clients
  • 🌐 Automatic peer discovery via multicast
  • 📲 Android library support via gomobile

📦 Installation

Prerequisites

  • Go 1.25.5 or later
  • CGO enabled (required for SQLite)
  • C compiler (gcc on Linux/macOS, MinGW on Windows)

Install

go install github.com/JB-SelfCompany/yggmail/cmd/yggmail@latest

Build from source

git clone https://github.com/JB-SelfCompany/yggmail.git
cd yggmail
go build -o yggmail ./cmd/yggmail

Docker

docker build -t yggmail .
docker run -p 1025:1025 -p 1143:1143 -v /path/to/data:/etc/yggmail yggmail -multicast

🚀 Quick Start

# Set password (creates database)
yggmail -password

# Start with multicast discovery
yggmail -multicast

# Or with static peer
yggmail -peer=tls://[peer-address]:port

Connect your email client:

  • SMTP: localhost:1025 (no SSL)
  • IMAP: localhost:1143 (no SSL)

⚙️ Parameters

Flag Description
-peer=tls://... Connect to Yggdrasil peer
-multicast Enable LAN peer discovery
-database=/path/to/yggmail.db Database file path
-smtp=addr:port SMTP listen address
-imap=addr:port IMAP listen address
-password Set IMAP/SMTP password

📱 Android Library

Building AAR

# Install gomobile
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init

# Build (with workaround for Go 1.24+)
cd mobile
gomobile bind -target=android -androidapi 23 -ldflags="-checklinkname=0" -o yggmail.aar github.com/JB-SelfCompany/yggmail/mobile

Usage in Android

import mobile.Mobile
import mobile.YggmailService

val service = Mobile.newYggmailService(dbPath, "localhost:1025", "localhost:1143")
service.initialize()
service.start("tls://peer:port", true, ".*")

val address = service.mailAddress

🔧 Fork Additions

  • Mobile bindings (mobile/yggmail.go): Complete API for Android/iOS
  • Large file support: Messages >1MB stored on filesystem (up to 500MB)
  • Message size limits: Configurable max message size
  • Battery optimization: Adaptive timers for mobile
  • Network transitions: WiFi ↔ Mobile handling

📝 Notes

  • Yggmail must be running to receive emails
  • From address must match your Yggmail address
  • Only Yggmail-to-Yggmail delivery (no Internet email)
  • Both @yggmail and @yggmail.local domains supported

📄 License

GNU General Public License v3.0 - see LICENSE


Made with ❤️ by JB-SelfCompany