OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Recipient address rewrite at delivery , after content filter

From: mouss (moussml.netoyen.net)
Date: Mon Aug 10 2009 - 13:45:09 CDT


Ovidiu Bivolaru a écrit :
> Hello everyone,
>
> I've Postfix setup as a gateway machine (using content_filter,
> relay_domains and transport_maps). I would like to receive messages for
> "domain.com", process them with content filter using recipients
> domain.com, then at delivery time convert recipient addresses to
> g.domain.com and deliver them to smarthost using either relay_host,
> either transport_maps.
> I was trying to use virtual_alias_maps (domain g.domain.com), but
> recipients address is converted before content_filter (-o
> receive_override_options=no_address_mappings for 10026). Can you help
> me with suggestion on how to convert envelope recipient address from
> userdomain.com to userg.domain.com at delivery time (after
> content_filter) ? Thank you!

do the opposite. set no_address_mapping for 25 and not for 10026.