OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Single domain and two destinations via Postfix

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Wed Mar 11 2009 - 15:24:29 CDT


LuKreme wrote:
> On 11-Mar-2009, at 09:14, Noel Jones wrote:
>> You can optionally use a pcre smtp_generic_maps to rewrite the
>> recipient back to the original domain.
>> main.cf
>> smtp_generic_maps = pcre:/etc/postfix/smtp_generic.pcre
>>
>> smtp_generic.pcre:
>> /^(.*)new\.example\.com$/ $1example.com
>
>
> This would need to be on new.example.com, right?
>

No, this is on the existing gateway. Generic rewriting is for
outgoing mail.
http://www.postfix.org/ADDRESS_REWRITING_README.html#generic

   -- Noel Jones