Bloggings

Back

Neomutt

2021-03-20

Neomutt is an updated version of Mutt, a text based email client.

Site de Neomutt


Configuration files

External applications

Personal Notes


To enable verification of the GPG signature from the keyservers when reading an e-mail, make sure that the ~/.gnupg/gpg.conf file contains these lines:

keyserver hkps://hkps.pool.sks-keyservers.net keyserver-options auto-key-retrieve

I use msmtp to send e-mails from my Arch linux laptop. In msmtprc,

tls_trust_file /etc/ssl/certs/ca-certificates.crt

doesn't work for me, instead I use

tls_fingerprint

To obtain the fingerprint :

msmtp --serverinfo --tls --tls-certcheck=off --host=host.domain.tld --port=587 | egrep -o "([0-9A-Za-z]{2}:){31}[0-9A-Za-z]{2}"

I have a cron job that updates the fingerprint regularily.

#!/bin/bash # update tls_fingerprint entry in ~/.msmtprc cd $HOME # get the server fingerprint KEY=$(msmtp --serverinfo --tls --tls-certcheck=off --host=mail.domain.tld --port=587 | grep -E -o "([0-9A-Za-z]{2}:){31}[0-9A-Za-z]{2}") # replace tls_fingerprint line in .msmtprc sed -i "s/^tls_fingerprint.*/tls_fingerprint $KEY/g" .msmtprc

I use Chawan (cha) in my mailcap to convert html mail to text, otherwise xdg-desktop for the default applications (see mailcap above)