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 - 16:05:33 CDT


On 09/04/2010, at 12:08 AM, Victor Duchovni wrote:

> Seems to me that $myorigin = $mydomain achieves the result more cleanly.
> Mail for root can be handled via virtual(5) and generic(5).

That’s a fair point, but this is a much simpler and cleaner (configuration management-wise) solution. I think $myorigin = $mydomain still doesn’t handle the case where you send mail to $local$myhostname without the use of masquerading?

>> in /etc/postfix/virtual have an entry similar to this
>>
>> /(.*)/ $1somedomain.com
>>
>>
>> Hopefully that?s the right way to do the second one.
>
> This looks fragile.

Yeah, I went back to using masquerade_classes as it was a significantly tidier approach. If I did ever have need to go down the virtual approach, I’d probably have write some decent regexp to cover my behind.

cheers,
James