I'm using mutt aliases to abreviate recipient names (e.g., jdoe is defined as an alias to [email protected]). 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 [email protected]. 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".
jdeois not a local user before warning. I think this would require some hacking of the source. I believe thatmuttjust checks whether the name is an existing alias, and if not, it tags on the local domain name (ifuse_domainis set) unless the given name already contains an@.@and the name is not an existing alias, even if the name is a local user or anything else.