OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: [Newbie] redirect incoming mail to external mail => rewrite headers too

From: Mihira Fernando (mihiratheacegmail.com)
Date: Fri Dec 07 2007 - 12:09:56 CST


Olivier Hoareau wrote:
> Hi !
>
> I am a newbie in Postfix, I just intalled it on Fedora Core 6 with
> dovecot and MySQL support (virtual domains).
>
> I want to redirect all the incoming mail for a specific user to a
> specific external email :
>
[snip]
> It was working with canonical_maps (I think) but the problem is the
> headers are not rewritten and if the "redirectto" email is for example
> an-external-accountgmail.com, GMail servers drop the incoming message
> because it was sent to <someuser>domain1.tld. So I want postfix to
> rewrite all header containing <someuser>domain1.tld to
> an-external-accountgmail.com, in order for gmail to not drop the message
>
> Is it possible ?
>
> thx in advance,
>
> Olivier H.
>
You can use virtual_alias_maps for this.

http://www.postfix.org/postconf.5.html#virtual_alias_maps

Mihira.
--
Random Quotes From Megas XLR
Coop: You see? The mysteries of the Universe are revealed when you break stuff.
Jamie: When in doubt, blow up a planet.
Kiva: It's an 80 foot robot, if we can't see it, absolutely it's not here.
Glorft Technician: Unnecessary use of force in capturing the Earthers has been
approved.