On 09/04/2010, at 8:05 AM, Victor Duchovni wrote:

> Use other tools if possible.  Such brute-force rewriting is much more 
> intrusive and risky than setting myorigin correctly.

So are you suggesting that what I really need to do is something like this:

 1. $myorigin = $mydomain
 2. still use masquerading to catch $lo...@$myhostname and $local
 3. use virtual(5) or generic(5) to rewrite excepted address to 
$lo...@$myhostname

With 3., how do you have it so that the headers are rewritten as 
$lo...@$myhostname, in the generic form, without having to edit the 
configuration file by hand for each host?

Also, how do you rewrite $lo...@localhost? (this still gets delivered to 
/var/mail/) and are there any other cases that would deliver to a local mailbox?

cheers,
James

Reply via email to