Email was not designed with privacy in mind. Without encryption, your messages travel across servers in plaintext — readable by your provider, by anyone who intercepts the connection, and potentially by law enforcement with a subpoena. OpenPGP (the open standard based on Pretty Good Privacy) gives you genuine end-to-end encryption: only the intended recipient can decrypt what you send.
Since version 78, Mozilla Thunderbird ships with native OpenPGP support — no Enigmail plugin required. This guide walks through the full setup from installation to sending your first encrypted message.
Step 1: Install Thunderbird
Download Thunderbird from thunderbird.net and install it for your platform. It is available for Windows, macOS, and Linux. Most Linux distributions also package it:
# Debian/Ubuntu
sudo apt install thunderbird
# Fedora
sudo dnf install thunderbird
# Arch
sudo pacman -S thunderbird
Launch Thunderbird and connect your email account. The setup wizard handles most configurations automatically for major providers (Gmail, Outlook, Fastmail, Proton via IMAP bridge). For Gmail, you may need to enable “Allow less secure apps” or use an App Password if you have 2FA enabled — though for privacy, consider migrating to a provider like Proton Mail or Tutanota that does not harvest your data.
Step 2: Generate Your OpenPGP Key Pair
OpenPGP uses asymmetric cryptography: you have a public key (share it freely) and a private key (never share it). Messages encrypted with your public key can only be decrypted by your private key.
In Thunderbird:
- Open Tools → OpenPGP Key Manager
- Click Generate → New Key Pair
- Select your email account from the dropdown
- Set a strong passphrase — this protects your private key on disk
- Key type: ECC (Curve25519) is modern and recommended; RSA 4096 works too
- Set expiry: 2 years is a sensible default — you can extend it later
Click Generate Key. This may take a few seconds. Once complete, your key pair appears in the Key Manager.
Export Your Public Key
Right-click your key in the Key Manager and select Export Public Key(s) to File. Save the .asc file somewhere accessible — you will share this with contacts.
You can also copy your public key as ASCII-armored text:
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEZxample...
-----END PGP PUBLIC KEY BLOCK-----
Post this on your website, email signature, or upload it to a keyserver like keys.openpgp.org.
Step 3: Upload to a Key Server (Optional but Recommended)
Key servers let others find your public key without you manually sending it to them.
- In Key Manager, right-click your key
- Select Upload Public Key to Keys Server
- Thunderbird defaults to keys.openpgp.org — this server requires email verification before publishing, which prevents key spam
Alternatively, upload manually at keys.openpgp.org by pasting your exported .asc file.
Step 4: Import a Contact’s Public Key
To encrypt mail to someone, you need their public key. They can send it to you directly, or you can search for it.
Import from a file:
- Ask your contact to send you their
.ascpublic key file - In Key Manager: File → Import Public Key(s) from File
- Select their
.ascfile — their key now appears in your keyring
Search a keyserver:
- In Key Manager: Keyserver → Discover Keys Online
- Enter their email address
- If found, click Import
After importing, right-click the key and set Accepted trust level if you have verified the key belongs to them (ideally via a phone call or in-person fingerprint comparison).
Step 5: Verify Key Fingerprints
Key servers can theoretically serve a fake key. The only way to truly verify a public key belongs to your contact is to compare fingerprints through a separate channel.
A fingerprint looks like:
4A3B F291 8E2C 10D4 77F3 8849 BA91 22CE 1A8F 2B5E
Call your contact and read the fingerprint aloud, or meet in person. If it matches what Thunderbird shows, mark the key as Verified in Key Manager.
Step 6: Send an Encrypted and Signed Email
Compose a new message to your contact who has a verified key.
In the compose window:
- Click the Security menu (padlock icon in the toolbar)
- Enable Encrypt This Message
- Enable Digitally Sign This Message
Encryption ensures only the recipient can read the message. Signing proves it came from you (using your private key) and has not been tampered with.
When you click Send, Thunderbird will prompt for your key passphrase if it is not cached. The message is then encrypted before leaving your machine.
What the Recipient Sees
Your contact opens the email in their OpenPGP-capable client and sees a padlock icon indicating the message is encrypted and signed. They enter their own passphrase to decrypt. The decrypted content is displayed as normal text.
Step 7: Enable Per-Account Encryption Defaults
To always encrypt when a contact’s key is available:
- Tools → Account Settings
- Select your account → End-To-End Encryption
- Check Add my digital signature by default
- Check Encrypt messages by default (Thunderbird will only encrypt when a valid key is available)
Key Management Best Practices
Back up your private key. If you lose it, you cannot decrypt any messages sent to you.
Key Manager → Right-click your key → Export Secret Key(s) to File
Store this backup on an encrypted USB drive in a safe physical location. Never upload your private key anywhere.
Set a key expiry and renew it. An expired key signals to contacts that something may be wrong. Renew before expiry:
- Key Manager → right-click your key → Edit Key Expiry
- Extend by 1–2 years
Revoke a compromised key. If your private key is stolen:
- Key Manager → right-click → Revoke Key
- Upload the revocation certificate to the keyserver
This tells anyone who fetches your key that it should no longer be trusted.
Limitations to Understand
OpenPGP encrypts the message body and attachments, but not the subject line, sender, recipient, or metadata. Your email provider still sees who you are communicating with and when. For metadata-resistant communication, tools like SimpleX Chat or Session go further.
Also, both parties must use OpenPGP-capable software. Most webmail clients (Gmail, Outlook.com) do not support it natively — this is one more reason to use Thunderbird.
Quick Reference Table
| Action | Location in Thunderbird |
|---|---|
| Generate key pair | Tools → OpenPGP Key Manager → Generate |
| Import contact key | Key Manager → File → Import |
| Search keyserver | Key Manager → Keyserver → Discover Keys Online |
| Encrypt a message | Compose → Security → Encrypt This Message |
| Sign a message | Compose → Security → Digitally Sign |
| Back up private key | Key Manager → Export Secret Key(s) to File |
End-to-end encrypted email is one of the most powerful privacy tools available to ordinary users. With Thunderbird’s native OpenPGP support, the barrier to entry has never been lower. Set it up once, share your public key, and start communicating with confidence.