Normally Thunderbird stores your profile (including all email and all passwords) unencrypted. There is a (buggy) feature allowing you to encrypt your passwords with a "Master Password", but no ability to encrypt your emails when they are stored on your hard drive.
The solution is to store your profile on an encrypted disk image, but it becomes annoying having to mount the disk image before opening Thunderbird, and it is also annoying having the mounted disk show up in the Finder all the time.
This script handles the mounting and unmounting of the disk image automatically when opening and closing Thunderbird, and hides the disk in the finder.
DISCLAIMER:
I am not a security expert. This software represents my good faith effort to improve the security of the storage of a Thunderbird profile, in particular emails stored locally. I strongly recommend using a master password in Thunderbird in addition to the technique described in this document. I accept no responsibility for any security flaws in the technique described herein, or in the acompanying script. I do not recommend using this software or technique unless you fully understand how it works and whether it is appropriate to your situation.
- In AppleScript Editor, save the script as an application at
/Applications/Thunderbird Launcher.app
. - Create an encrypted sparse bundle disk image at
~/Library/Thunderbird/Profiles/Thunderbird Profile.sparsebundle
- Copy your profile onto the disk image, move the original to the Trash, and Secure Empty Trash. (This is more secure than moving your old profile onto the disk image, which will leave a possibly-recoverable copy behind.)
- Create a symlink from the old profile location to the profile on the disk image.
- Instead of directly launching
Thunderbird.app
, always launchThunderbird Launcher.app
. - OS X will prompt you for the password to your disk image. (You can tell it to remember your password in the Keychain if you want, though I prefer not to.)
- When the disk image has mounted Thunderbird will be launched (but not shown in Finder).
- When you quit Thunderbird, the disk image will be automatically unmounted (assuming Thunderbird Launcher is still running in the background, which it should be).