On Fri, Feb 24, 2006 at 12:55:06PM -0600, Lindsay Haisley wrote:
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".
Ok. Thanks for the reply. I use mutt for my primary mailer also.
I have also found no way to make the MTA rewrite the _From_ line based
on destination on machines we have running postfix. It would be
convenient to not have to customize every client on every machine for it.
Also, we sometimes send mail from the command line or from a script
using the standard _mail_ utility. I have not found any command line
options to set the From line with mail.
I have also started researching exim. It appears that it has this
ability, so I am going to evaluate it further as a possible choice of
MTA also.
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.