kkapsner/keepassxc-mail
MailExtension to talk to keepassxc
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.
- Configure KeePassXC-Browser as described in this document. Make sure to enable the integration for Firefox.
- Create the configuration file for Native Messaging as described below in Native Messaging configuration.
- 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 themail-ext-artifactsdirectory).
Installation for KeePass 2
- Install KeepassNatMsg and configure it described in this document
- 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 themail-ext-artifactsdirectory).
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://Thunderbirdopenpgp://{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
- https://github.com/dchest/tweetnacl-js/blob/1.0.3/nacl.min.js
- https://github.com/dchest/tweetnacl-util-js/blob/v0.15.0/nacl-util.min.js
- https://github.com/keepassxreboot/keepassxc-browser/blob/1.10.3/keepassxc-browser/background/client.js
- https://github.com/keepassxreboot/keepassxc-browser/blob/1.10.3/keepassxc-browser/background/keepass.js
Similar Projects
Discover other similar projects and AI models.
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.
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Reverse engineer anything with agents, from app behavior down to native binaries.
Free domain registration and practical DNS learning resources for everyone.
Python tool for converting files and office documents to Markdown.