12 messages in net.sourceforge.lists.courier-usersRe: [courier-users] destination based...
FromSent OnAttachments
VincentFeb 24, 2006 10:47 am 
Lindsay HaisleyFeb 24, 2006 10:55 am 
VincentFeb 27, 2006 5:06 am 
Lindsay HaisleyFeb 27, 2006 10:07 am 
Lindsay HaisleyFeb 27, 2006 10:31 am 
VincentMar 1, 2006 5:30 pm 
Gordon MessmerMar 2, 2006 11:59 am 
Jerry AmundsonMar 2, 2006 12:26 pm 
Sergiy ZhukMar 2, 2006 12:38 pm 
VincentMar 2, 2006 4:22 pm 
Francisco ReyesMar 2, 2006 8:55 pm 
Gordon MessmerMar 3, 2006 3:34 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] destination based domain masqueradingActions...
From:Vincent (vs@crel.us)
Date:Feb 27, 2006 5:06:39 am
List:net.sourceforge.lists.courier-users

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.