# echo "YourPassword" | gpg2 --encrypt --recipient "Your Name" -o ~/.mail-tudo-passwd.gpg # Set default values for all following accounts. defaults port 587 protocol smtp auth on tls on tls_trust_file /etc/ssl/certs/ca-certificates.crt account Sanchayan host smtp.gmail.com from maitysanchayan@gmail.com user maitysanchayan@gmail.com passwordeval "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.sanchayan.gpg" account Victor host smtp.gmail.com from victorascroft@gmail.com user victorascroft@gmail.com passwordeval "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.victor.gpg" account Toradex host smtp.office365.com from sanchayan.maity@toradex.com user sanchayan.maity@toradex.com passwordeval "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.toradex.gpg" # Set a default account account default : Sanchayan