Skip to content

Instantly share code, notes, and snippets.

@soardex
Created June 24, 2015 06:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soardex/95afe3f168b4db461403 to your computer and use it in GitHub Desktop.
Save soardex/95afe3f168b4db461403 to your computer and use it in GitHub Desktop.
Encrypt msmtp Secrets
# create and encrypt ~/.msmtp/secrets.gpg
mkdir -p ~/.msmtp
echo -e "password\n" | gpg -e -r [your_gpg_id] -o ~/.msmtp/secrets.gpg
# in `.msmtprc` change the password to passwordeval to launch an external program.
passwordeval "gpg -q --for-your-eyes-only --no-tty -d ~/.msmtp/secrets.gpg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment