I'm using mutt aliases to abreviate recipient names (e.g.,
jdoe is defined as an alias to
email@example.com). However, if I mistype an alias (e.g.,
jdeo), mutt does not warn me about the fact that the alias doesn't exist. Instead, it autocompletes this using the
$hostname variable, e.g., if my machine has hostname
foo.mydomain.net the bogus alias is replaced by
firstname.lastname@example.org. This is never what I intend to do.
Hence, if I mistype an alias, I don't get any warning, and I have to hope that, when sending the mail, the remote SMTP will refuse it ("User unknown in local recipient table") or will send me a delivery status notification... This is not ideal and I have messed up several times with this.
Instead, I'd like mutt to warn me about aliases that do not exist, i.e., if I type a recipient that doesn't contain "@" and is not a known alias, then mutt should complain and refuse to send the mail.
Is it possible to configure mutt to warn about aliases that do not exist? I was unable to find a relevant configuration option. I also tried to set
$hostname to the empty string, but then mutt happily contacts the remote SMTP and tries to send mail to "jdeo".