* Peng Yu [20210203 20:23:18]: >On Wed, Feb 3, 2021 at 11:23 AM Will Yardley ><mutt-us...@veggiechinese.net> wrote: >> >> On Wed, Feb 03, 2021 at 08:57:32AM -0600, Peng Yu wrote: >> > >> > When I use mutt to construct an outgoing email, is there a way not >> > to set the message id? Thanks. >> >> Even if Mutt doesn't set one, the first MTA it hits will add one. > >I want the first MTA add one, instead of using the one generated by >mutt.
One way to get what you want is to use esmtp: # muttrc set sendmail="/usr/bin/esmtp" # esmtprc identity = u...@ho.st hostname = smtp.ho.st:587 username = u...@ho.st password = password starttls = enabled message_id = disabled # man esmtprc message_id Whether to set the Message-ID field of the message before sending. Normally the receiving MTA sets the Message-ID if missing, so you can turn this off if your sending host does not have a fully qualified domain name. Allowed values are either enabled or disabled. It defaults to enabled. regards, s h e h u