OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Address Rewrite with Postfix

From: Magnus Bäck (magnusdsek.lth.se)
Date: Sat Apr 01 2006 - 02:26:40 CST


On Saturday, April 01, 2006 at 09:01 CEST,
     Irwan Hadi <ihblistgmail.com> wrote:

> Currently I'm in the process of consolidating some of our domains.
> Is it possible for Postfix to do the following:
>
> receive email destined to *olddomain.com, and rewrite the email to
> *newdomain.com ?
>
> For example, email from joecustomer.com sent to bobolddomain.com
> will need to be forwarded to bobnewdomain.com ?

http://www.postfix.org/ADDRESS_REWRITING_README.html#virtual
http://www.postfix.org/VIRTUAL_README.html#virtual_alias
http://www.postfix.org/virtual.5.html

Do note that the special form

   example.com example.net

breaks recipient validation so you should not use it. Instead generate a
list of all recipients. This has been discussed a million times before,
so the archives will contain more information.

--
Magnus Bäck
magnusdsek.lth.se