💾 Archived View for mio.vern.cc › 2024-05-09-pass-and-neomutt.gmi captured on 2024-08-24 at 23:30:24. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-08-18)
-=-=-=-=-=-=-
---
date: 2024-05-09T23:32:24Z
update: 2024-05-09T23:32:24Z
---
Set up ~vern email on a local neomutt mail client. There are multiple ways to avoid saving the login password in plaintext in the mail config, usually involving GnuPG/gpg.
This method uses gpg and pass, a primarily cli-based password manager (GUI applications also available). It is also possible to use gpg directly, or passing values from a json file with jq, but this way it is easier to update multiple passwords with annotations and let pass handle the decrypt/re-encrypt steps.
# Generate a GPG key. Skip this stem if using an existing key. gpg --quick-generate-key "[name] <[email]>" ed22519 cert 100y # Create a new password store with the key fingerprint. # Passwords are stored in ~/.password-store. pass init [key-id] # Add the email password to a file path of choice. # e.g. "email/user@vern.cc" creates a file at # ~/.password-store/email/user@vern.cc.gpg pass insert [path] # Fetch an example gpg.rc. cd ~/.config/mutt curl -LO https://raw.githubusercontent.com/neomutt/neomutt-contrib/main/gpg.rc # Add to neomutt config at ~/.config/mutt/muttrc. source ~/.config/mutt/gpg.rc # Set the pass command in the imap account configuration. # User will be prompted for the gpg key password at the start of the session. set imap_user = [user]@vern.cc set imap_pass = "`pass [path]`" set folder = imaps://$imap_user:$imap_pass@mail.vern.cc
# ~/.gnupg/gpg-agent.conf # Enable pinentry prompt. allow-loopback-pinentry # Cache credentials for a month since last pinentry. default-cache-ttl 2678400 max-cache-ttl 2678400
See also: ~vern Radio. The lo-fi hip-hop stream has a fantastic selection of chill programming music.
For streaming from the VLC Android app, copy either the M3U or XSPF link and paste it into the stream URL field without the .m3u/.xspf extension.