I configured msmtp with my gmail account. I obviously want to avoid writing the password in clear text format in the configuration file. Fortunately, msmtp offers the passwordeval option, which can be used to get the password from the output of the executable file.
Question: how to use it?
I found the following sentence here : passwordeval gpg -d /some/path/to/.msmtp.password.gpg
This does not matter much to me: if someone can access my configuration file, he will certainly be able to run such a command and get the password from gpg.
So, I believe that I have the only option for obfuscating the password in the binary executable, even if I read almost everywhere that is bad!
My exception for hacking: if the correct password is output during the sendmail process, otherwise you will get a fake pass.
Your suggestions? Are other (safer) tricks different than storing a pass in a binary file?
security passwords msmtp
Pie86
source share