I have set up sendmail on my OpenBSD 3.6 box to use masquerading. I've tested it and it works.
Mail from <firstname.lastname@example.org> gets rewritten as <email@example.com> which is what I want.
Now, when I invoke
the rewriting happens and sender and envelope sender are set correctly as <firstname.lastname@example.org>. However when I send mail using either mail or mutt sender and envelope sender show up as email@example.com
Mutt and mail both invoke sendmail so why this difference?