This is pretty much a MUA issue, not a MTA issue. If you use a MUA such as
mutt (for Linux) that's capable of such things, you can set the From line to
anything you like. I use mutt or evolution for most of my email, and ssmtp
on my local desktop system which can be told to set the envelope mail-from
address to whatever the body from header address is (which is why this post
appears to come from "fmouse-courier" instead of just "fmouse".
Thus spake Vincent on Fri, Feb 24, 2006 at 12:47:31PM CST
Is there a way to get courier to do destination based masquerading? In
other words, to append one domain to the from addresses if I send mail
to a host in the local network, but another if the destination is
outside the LAN.
So far as I can tell, it always appends the contents of the _me_ file to
my from address.
For example: if I send mail to the outside world, I would like the from
line to show us...@domain.com. However, it I send mail from hosta to
hostb on domain.com, I would like the from line to show
us...@hosta.domain.com. That way, if a user on hostb replies, it will be
sent directly to hosta not to domain.com. If I send mail to the outside
world, hosta.domain.com is usually not visible and replies must go to
domain.com.