OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: redirect local(8) delivery to $local$mydomain ?

From: James Lever (jjamver.id.au)
Date: Thu Apr 08 2010 - 18:21:12 CDT


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 $local$myhostname and $local
 3. use virtual(5) or generic(5) to rewrite excepted address to $local$myhostname

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

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

cheers,
James