RepositoryJavaScript
kkapsner

kkapsner/keepassxc-mail

MailExtension to talk to keepassxc

76stars
7forks
7issues
4views

KeePassXC-Mail

Mozilla Thunderbird extension for KeePassXC with Native Messaging.

Based on KeePassXC-Browser and keebird.

Installation for KeePassXC

Hopefully we can get this as simple as for KeePassXC-Browser in the future.

  1. Configure KeePassXC-Browser as described in this document. Make sure to enable the integration for Firefox.
  2. Create the configuration file for Native Messaging as described below in Native Messaging configuration.
  3. Install the add-on in Thunderbird. Either install it from addons.thunderbird.net or download the latest prebuilt xpi or build it yourself (npm install, npm run build, the xpi will be in the mail-ext-artifacts directory).

Installation for KeePass 2

  1. Install KeepassNatMsg and configure it described in this document
  2. Install the add-on in Thunderbird. Either install it from addons.thunderbird.net or download the latest prebuilt xpi or build it yourself (npm install, npm run build, the xpi will be in the mail-ext-artifacts directory).

Native Messaging configuration

Windows

Run the following commands in the PowerShell:

$browserJSONPath=Get-ItemPropertyValue -path 'HKCU:\Software\Mozilla\NativeMessagingHosts\org.keepassxc.keepassxc_browser' -name '(default)'
$mailJSONPath=Join-Path -path (Split-Path -path $browserJSONPath) -childPath de.kkapsner.keepassxc_mail.json

cat $browserJSONPath |
 %{$_ -replace "keepassxc-browser@keepassxc.org","keepassxc-mail@kkapsner.de"} |
 %{$_ -replace "org.keepassxc.keepassxc_browser","de.kkapsner.keepassxc_mail"} |
 Out-File -filePath $mailJSONPath -Encoding ASCII

New-Item -path 'HKCU:\Software\Mozilla\NativeMessagingHosts\de.kkapsner.keepassxc_mail' -type Directory -force
Set-ItemProperty -path 'HKCU:\Software\Mozilla\NativeMessagingHosts\de.kkapsner.keepassxc_mail' -name '(default)' -value $mailJSONPath

Linux

Run the following command in a terminal:

cat ~/.mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json \
 | sed s/keepassxc-browser@keepassxc.org/keepassxc-mail@kkapsner.de/ \
 | sed s/org.keepassxc.keepassxc_browser/de.kkapsner.keepassxc_mail/ \
 > ~/.mozilla/native-messaging-hosts/de.kkapsner.keepassxc_mail.json

If Thunderbird is installed via Snap or flatpak you might need to enable the native messaging via the widget.use-xdg-desktop-portal.native-messaging setting (set it to 1 or 2) or do some deeper workarounds. See https://github.com/kkapsner/keepassxc-mail/issues/95 for further details.

Mac OS X

Run the following command in a terminal:

cat ~/Library/Application\ Support/Mozilla/NativeMessagingHosts/org.keepassxc.keepassxc_browser.json \
 | sed s/keepassxc-browser@keepassxc.org/keepassxc-mail@kkapsner.de/ \
 | sed s/org.keepassxc.keepassxc_browser/de.kkapsner.keepassxc_mail/ \
 > ~/Library/Application\ Support/Mozilla/NativeMessagingHosts/de.kkapsner.keepassxc_mail.json
ln -s ~/Library/Application\ Support/Mozilla/NativeMessagingHosts/ ~/Library/Mozilla/

Finding entries in the password database

KeePassXC-Mail uses the following schema to find matching entries for a given server:

  • imap://{server name}
  • smtp://{server name}
  • pop3://{server name}
  • http://{server name}
  • https://{server name}
  • nntp-1://{server name}
  • nntp-2://{server name}
  • oauth://{account}
  • masterPassword://Thunderbird
  • openpgp://{fingerprint of the private key}

Tipp

If you have the same user and password for receiving (imap/pop3) and sending (smtp) and do not want to duplicate your entries you can go to the "Browser Integration" section of the entry definition in KeePassXC and add the second URL there.

Translations

You can contribute to keepassxc-mail by translating it and/or improving the translations. For further instructions go to https://github.com/kkapsner/keepassxc-mail/issues/30.

Icon

Icon is based on the icon of KeePassXC-Browser - just the colors are changed to some colors of the Thunderbird.

Privacy note

KeePassXC-Mail itself does not contact any server and does not store any private data.

Used third party scripts

Similar Projects

Discover other similar projects and AI models.

RepositoryJavaScript
friedPotat0/Spam-Scores

Thunderbird add-on that shows the spam score your mail server already assigned to each message, in a colour-coded mail-list column with a rule-by-rule breakdown. Reads SpamAssassin, rspamd, MailScanner, OVH, Sophos and more.

57
Nov 25, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

315.1k
Dec 1, 2026
RepositoryJavaScript
DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

203.5k
Nov 22, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryTypeScript
deepseek-ai/deepseek-harness

DeepSeek Harness: Everything is a Plugin.

290.1k
Nov 28, 2026
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

209.9k
Aug 12, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.5k
Dec 2, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositoryJavaScript
keepassxreboot/keepassxc-browser

KeePassXC Browser Extension

2.4k
Dec 1, 2026