Set smtp_pass = "my_very_secret_smtp_password"Įncrypt the file: gpg -recipient -encrypt ~/.mutt/.pw-account1Īnd include it in your account configuration file: source "gpg -d ~/.mutt/.pw-account1.gpg |" You can also write them in a temporary file: set imap_pass = "my_very_secret_imap_password" You can safely leave the imap_pass and smtp_pass lines out and mutt will ask for passwords when required. Should I write my password in the config file? Something like this: # Common configuration Some settings (folders, GPG, colours…) are common for all accounts, so we can just include them in the account specific configuration files. That’s enough to make it work however, we will improve it little by little including some files and getting rid of clear text passwords. Part of the configuration is account specific: # Account specific information mutt/.muttrc-account2 Basic configuration So we can start with just mutt command or we can choose a configuration file: mutt -F. muttrc -> /home/me/.mutt/.muttrc-account1 One of them, my default account, will be soft-linked to ~/.muttrc: $ ls -la. I use several different accounts, so I will need different configuration files. Installation in Red Hat/CentOS is easy: # yum -y install mutt Believe it or not, there are (smart) people using command line mail clients in 2020.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |