Mutt: set $hostname instead of $message_id_format

This commit is contained in:
nervuri 2023-08-22 14:56:39 +00:00
parent 84d2810f5b
commit 82673dac23
2 changed files with 3 additions and 5 deletions

View File

@ -10,6 +10,8 @@ In recent versions of Mutt, you can use `local_date_header = no` to hide your ti
Also in recent versions of Mutt, the User-Agent header is [disabled by default](https://gitlab.com/muttmua/mutt/-/commit/82973a6ea99075b822d338c63639787bf2445a41).
By default, Mutt exposes the computer's hostname in the Message-ID header! Also, certain spam filters want the Message-ID hostname to be a FQDN (see Rspamd's `MID_RHS_NOT_FQDN` rule). So it's best to explicitly set $hostname to match the From address.
My muttrc has basic Vim key bindings, but if you want to go further in that direction see [Mutt, the Vim Way](https://www.ryanlue.com/posts/2017-05-21-mutt-the-vim-way).
In mpop and msmtp I've pinned the Let's Encrypt root certificate using `tls_trust_file`. If you want to pin the end-entity cert, use the `tls_fingerprint` variable. You can obtain a server's TLS fingerprint by running:

View File

@ -10,11 +10,7 @@ set use_from = yes
set realname = User
set from = USER@example.net
set use_envelope_from = yes
# The computer's hostname is exposed in the Message-ID header! Also,
# certain spam filters want the Message-ID hostname to be a FQDN (see
# MID_RHS_NOT_FQDN). So we set a different hostname here (preferably
# matching the one of our From address).
set message_id_format = '<%z@example.net>' # hide computer's hostname, use FQDN
set hostname = example.net # hide computer's hostname, use FQDN
# Multiple accounts
alternates "(^USER@example\.net$)|(^USER@disroot\.org$)"