Envelope-from pain

Will Yardley mutt-users at veggiechinese.net
Wed Feb 4 22:49:48 UTC 2026


On Wed, Feb 04, 2026 at 10:57:19AM -0800, googly.negotiator862 at aceecat.org wrote:
> So, how can I set envelope-from to something arbitrary with reasonable
> ease? I would not consider manually executing ":set envelope-from=..."

Does setting $envelope_from work for you?

That, combined with some other settings, I think will do what you want,
assuming your MTA is configured properly as well.

Something like (based on my config):

set realname="Your Name"
set use_from
set from="foo at example.com"
send-hook . 'unmy_hdr From:'
set reverse_name
alternates '(.*@example\.com|(othername|postmaster)@example\.net)'
set envelope_from
# Note: $reverse_name is usually sufficient for _replying_ with the
# address a message was sent to in most cases if it matches the regex in
# $alternates, but you can also use send-hooks for things like sending
# new mail to a list or a specific recipient.
send-hook '~C ^mutt-users at mutt\.org$' 'my_hdr From: Your Name <you at example.com>'

w



More information about the Mutt-users mailing list