GPGMail 2 hidden settings
If the GPGMail default behavior does not fit your needs the following commands can be used in Terminal.app to adjust the settings.
To ensure the changes are reflected, make sure to restart mail.app after using any command. If the changes are not reflected then, try a restart of your machine and double check, that the command was entered correctly.
- Enable PGP/Inline for support of legacy mail clients (Important for Windows compatability)
- Define the default security method to be used
- Add a mapping for a missing UID to a public key
- Enable Debug logging (For development or debugging only)
- Disable handling of OpenPGP encrypted and signed messages
- Disable encryption to self
PGP/MIME is the official standard way to send OpenPGP encrypted
and signed messages.
GPGMail sticks to this standard to send your emails.
However some legacy mail applications, especially Windows mail
applications don't support this
So if you really, really run into problems with GPGMail, you can try to enable PGP/Inline support.
defaults write org.gpgtools.gpgmail UseOpenPGPInlineToSend -bool YES
Switch back to the documented OpenPGP/MIME standard
defaults write org.gpgtools.gpgmail UseOpenPGPInlineToSend -bool NO
ATTENTION: We've only added experimental support. Attachments
are not handled at the moment, so use
with plain text only.
You like S/MIME better than OpenPGP and don't want to change the
We've got you covered.
The default security method is only selected if you a
key/certificate for the sender mail address.
By default OpenPGP is used, but you can change that with the following defaults command
Set OpenPGP as default security method
defaults write org.gpgtools.gpgmail DefaultSecurityMethod -int 1
Set S/MIME as default security method
defaults write org.gpgtools.gpgmail DefaultSecurityMethod -int 2
Visit the following KB-article:
How to add an e-mail address to an existing public key
defaults write org.gpgtools.common DebugLog 1
defaults write org.gpgtools.common DebugLog 0
ATTENTION: Make sure to disable it as soon as possible after,
since decrypted messages might be
logged and these log files stay on your harddrive!
To delete the logs, best delete the /private/var/log/system.log* files
If for any reason you might not want GPGMail to handle your
you can run the following command
To deactivate OpenPGP handling
defaults write org.gpgtools.gpgmail DisableOpenPGPForReading -bool YES
To re-activate OpenPGP handling
defaults write org.gpgtools.gpgmail DisableOpenPGPForReading -bool NO
Per default all encrypted messages you send to your friends will additionally be encrypted using your own pub key. That is the default setting being used, because otherwise you wouldn't be able to read any of your encrypted messages in your sent folder.
However, there may be edge cases in which you might want to disable this option.
So if you really want to disable this setting please use the following command
defaults write org.gpgtools.gpgmail DoNotEncryptToSelf -bool YES
To enable it again
defaults write org.gpgtools.gpgmail DoNotEncryptToSelf -bool NO