not to set message id in outgoing email
Cameron Simpson
cs at cskk.id.au
Mon Feb 15 22:02:36 UTC 2021
On 15Feb2021 21:53, Shehu Dikko <news.shehu at gmx.net> wrote:
>* Peng Yu [20210203 20:23:18]:
>>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 = user at ho.st
> hostname = smtp.ho.st:587
> username = user at 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.
Does that actually strip the one from mutt, or just prevent esmtp from
_adding on if missing_. Peng Yu is trying to stop mutt adding a message
id.
Maybe the objective can be achieved by stripping the mutt-provided
message-id in the sendmail setting before it reaches the MTA?
Untested:
set sendmail="sed '1,/^\$/{/^Message-ID:/d'}' | /usr/bins/sendmail"
(The backslash if for mutt, not sed or the shell.)
Cheers,
Cameron Simpson <cs at cskk.id.au>
More information about the Mutt-users
mailing list