Open source · Rust · MIT / Apache-2.0

Bulk iRedAdmin automation, from the desktop.

MailGrit is a cross-platform desktop app for creating, editing and deleting mail user accounts on iRedAdmin servers in bulk, through an embedded browser that performs a fetch inside the session you signed in to. No Node/JS toolchain: native WebView2/wry via Dioxus 0.7.

Windows• Linux• macOS ARM• Dioxus 0.7• Rust 1.97.1, edition 2024• 9 languages
5
Isolated workspace crates
9
UI languages, embedded at compile time
1
Local data folder — settings, logs and audit trail
3
Platforms in CI: Windows, Linux, macOS ARM
01 / Features

What MailGrit does.

A native panel on top of a real iRedAdmin session: you sign in once in the embedded browser, and bulk operations run inside that same session.

CSV-driven bulk operations

Drive mass create / edit / delete from a CSV. BOM is stripped automatically, headers map flexibly case-insensitively, and hard row and length limits guard against accidental huge inputs.

Hash-chained audit log

Every operation is appended to a local log chained with HMAC-SHA256; the verify command checks the chain and reports mismatches. Exports and backups can be encrypted at rest with streaming AEAD (XChaCha20-Poly1305).

Master password

Derives the audit-log key and the export key via Argon2id (memory-hard KDF). The password is never stored; lose it and the audit log can no longer be verified and encrypted exports can no longer be unlocked.

Runs inside your session

Requests are sent as a fetch from the same webview you signed in to, so they travel with the session your proxy already knows. WAF setups differ — if something gets blocked, please open an issue.

9 languages, compiled in

English, Deutsch, Français, Español, Italiano, Português, Nederlands, Polski and Українська. Translations are embedded into the binary; your choice persists in config.toml.

Frameless, themed UI

A home-grown design system on CSS tokens: custom titlebar, dark/light themes with a toggle, symmetric card grid, modal confirmation for destructive ops and live progress.

02 / Data & privacy

Where your data lives.

MailGrit is a local application: settings, logs and the audit trail live in one folder next to the app. Exports can be encrypted with a master password. Details in PRIVACY.md and SECURITY.md.

How MailGrit handles your data

  • All files live in a single mailgrit-data/ folder next to the executable; the app makes no network requests except to the iRedAdmin server you configure.
  • No telemetry, analytics, or crash reporting: the only network traffic goes to the iRedAdmin server you configure.
  • The audit log is a local SQLite file chained with HMAC-SHA256; it is not encrypted — its privacy depends on where you keep the app folder.
  • Exports and backups can be encrypted (streaming XChaCha20-Poly1305 AEAD) with a key derived from your master password.
  • The master password is processed via Argon2id (memory-hard KDF) and never stored or logged.
Cargo.toml
# Workspace lint policy (excerpt).
[workspace.lints.rust]
unsafe_code = "forbid"

[workspace.lints.clippy]
correctness      = { level = "deny", priority = -1 }
suspicious       = { level = "deny", priority = -1 }
pedantic         = { level = "deny", priority = -1 }
unwrap_used      = "deny"
indexing_slicing = "deny"
arithmetic_side_effects = "deny"
panic            = "deny"
03 / Internationalization

Nine languages, shipped in the binary.

Translations are embedded at compile time with rust-i18n — no resource files to chase at runtime. Your selection is saved to config.toml.

en English English de German Deutsch fr French Français es Spanish Español it Italian Italiano pt Portuguese Português nl Dutch Nederlands pl Polish Polski uk Ukrainian Украинська
04 / Quick start

One command to a release build.

MailGrit is a Cargo workspace; build the desktop app for your platform and run it directly.

bash
# Requires Rust 1.97.1 (pinned via rust-toolchain.toml, edition 2024)
$ cargo build --release -p mailgrit-app-desktop

# Windows
> .\target\release\mailgrit-app-desktop.exe

# Linux / macOS
$ ./target/release/mailgrit-app-desktop

On first launch a mailgrit-data/ folder is created next to the binary, holding all application files. Point it at your iRedAdmin URL, sign in once in the embedded browser, and the operations panel opens automatically.

05 / Architecture

Five crates, each testable in isolation.

A Cargo workspace where the domain, parsing, storage, security and UI layers are separated — cargo test -p <crate> runs each in isolation.

Workspace layout

  • core-domain — domain types (Newtype/Typestate), errors, limit constants, password policy.
  • core-csv — CSV parsing and validation with BOM stripping and hard memory limits.
  • core-storage — local SQLite: operation log and hash-chained audit log.
  • core-security — at-rest crypto: streaming AEAD, HMAC hash-chain, Argon2id KDF.
  • app-desktop — Dioxus 0.7 desktop app: login window, cookie handling, native RSX panel.
graph
# each crate compiles / tests in isolation
core-domain ─┬─ core-csv ────┐
             ├─ core-storage ─┤
             └─ core-security ┴─ app-desktop
06 / FAQ

Frequently asked questions.

What MailGrit is, how it works, and where your data lives.

What is MailGrit?
MailGrit is a free, open-source cross-platform desktop application written in Rust that performs bulk create, edit and delete of mail user accounts on iRedAdmin mail servers. It is an administration tool, not a mail reader.
Which operating systems does MailGrit support?
MailGrit runs on Windows, Linux (x86_64) and macOS on Apple Silicon (aarch64). It is built with the Dioxus desktop framework and uses the native system WebView, so there is no Node or JavaScript toolchain.
Does MailGrit work behind FortiWeb or a WAF?
Usually, yes. Bulk operations run as a JavaScript fetch POST of the real iRedAdmin create/edit HTML form (with a CSRF token) inside the same embedded webview that holds your session. Because the request originates from your authenticated browser session, it typically passes FortiWeb and other web application firewalls. This depends on your server's configuration and is not covered by our test suite — if you hit a problem, please open an issue.
How does MailGrit authenticate against iRedAdmin?
You sign in through the embedded browser using your real iRedAdmin credentials. The app detects a successful login data-driven, by the login webview navigating to /dashboard. It then executes operations as a fetch inside that same authenticated webview.
Where is my data stored? Is the audit log encrypted?
Everything is stored locally in a mailgrit-data/ folder next to the executable — no cloud sync, no telemetry. The audit log is a local SQLite file chained with HMAC-SHA256; it is not encrypted at rest. Exports and backups can be encrypted (XChaCha20-Poly1305) with a key derived from a master password via Argon2id; the password is never stored. If you lose it, the audit log can no longer be verified and encrypted exports can no longer be unlocked.
Is MailGrit free and what is its license?
MailGrit is free and open source, dual-licensed under the MIT License or the Apache License 2.0 at your option. The source code and prebuilt binaries are available on GitHub. iRedAdmin is a trademark of its respective owners; MailGrit is independent and not affiliated with or endorsed by iRedAdmin.

Support MailGrit

MailGrit is free and open source. Support the development and research behind this project — your contribution helps cover continued development, computing infrastructure, testing, and further research related to MailGrit.

Donate

Donations are voluntary support for the project. A donation does not grant the donor any goods, services, guarantees, priority support, warranties, or any obligation on the part of the author. MailGrit remains distributed under the MIT or Apache-2.0 licenses, with no warranty — see DISCLAIMER.md.