Christian Pietsch (old acct.)<p>If you are a command line and text terminal fan like myself, chances are you are using this trio daily:</p><p>– <a href="https://digitalcourage.social/tags/pass" class="mention hashtag" rel="tag">#<span>pass</span></a> for managing <a href="https://digitalcourage.social/tags/passwords" class="mention hashtag" rel="tag">#<span>passwords</span></a>, <br />– <a href="https://digitalcourage.social/tags/mutt" class="mention hashtag" rel="tag">#<span>mutt</span></a> for reading and writing <a href="https://digitalcourage.social/tags/email" class="mention hashtag" rel="tag">#<span>email</span></a>,<br />– <a href="https://digitalcourage.social/tags/msmtp" class="mention hashtag" rel="tag">#<span>msmtp</span></a> for sending out e-mails via weird mail servers such as <a href="https://digitalcourage.social/tags/MS" class="mention hashtag" rel="tag">#<span>MS</span></a> <a href="https://digitalcourage.social/tags/Exchange" class="mention hashtag" rel="tag">#<span>Exchange</span></a> that mutt cannot talk to directly.</p><p>Today I figured out how to make them work together without entering or storing <a href="https://digitalcourage.social/tags/cleartext" class="mention hashtag" rel="tag">#<span>cleartext</span></a> passwords.</p><p>I am using GNU/Linux and have <a href="https://digitalcourage.social/tags/gpg" class="mention hashtag" rel="tag">#<span>gpg</span></a> agent working.</p><p>I used pass to store my e-mail (and <a href="https://digitalcourage.social/tags/ActiveDirectory" class="mention hashtag" rel="tag">#<span>ActiveDirectory</span></a>) password under the name uni/mail. This generated the encrypted file ~/.password-store/uni/mail.gpg. So …</p><p>In ~/.muttrc, I put:<br />set imap_pass=`gpg2 --no-tty -q -d ~/.password-store/uni/mail.gpg`</p><p>In ~/.msmtprc, I put:<br />passwordeval gpg2 --no-tty -q -d ~/.password-store/uni/mail.gpg</p><p>Whenever I change this password, all I have to do is to store it using pass. The other programs will fetch it from there and decrypt it when they need it.</p><p><a href="https://digitalcourage.social/tags/CLI" class="mention hashtag" rel="tag">#<span>CLI</span></a> <a href="https://digitalcourage.social/tags/PGP" class="mention hashtag" rel="tag">#<span>PGP</span></a> <a href="https://digitalcourage.social/tags/GnuPG" class="mention hashtag" rel="tag">#<span>GnuPG</span></a> <a href="https://digitalcourage.social/tags/MUA" class="mention hashtag" rel="tag">#<span>MUA</span></a> <a href="https://digitalcourage.social/tags/SMTP" class="mention hashtag" rel="tag">#<span>SMTP</span></a> <a href="https://digitalcourage.social/tags/IMAP" class="mention hashtag" rel="tag">#<span>IMAP</span></a> <a href="https://digitalcourage.social/tags/GNU" class="mention hashtag" rel="tag">#<span>GNU</span></a> <a href="https://digitalcourage.social/tags/Linux" class="mention hashtag" rel="tag">#<span>Linux</span></a></p>