On 1/18/2012 10:35 AM, João Pagaime wrote:
> Hello
> 
> as strange as it may seem I need to forward all email coming to
> DOM.com to DOM1.com and DOM2.com, regardless of the destination
> address at DOM.com
> 
> I almost got away  with a configuration like this at " /etc/postfix/virtual"
> 
> @DOM.com        @DOM1.com, @DOM2.com

wildcard rewriting bypasses recipient validation and is strongly
discouraged.

> 
>  unfortunately postfix  only does writing on the   first domain (as
> documented: "This  works only for the first address in a multi-address
>    lookup result."
> 
> can someone help out with this configuration? maybe some regexp?

Use a simple script to generate virtual_alias_maps from a list of
valid recipients.

us...@example.com  us...@example1.com us...@example2.com
us...@example.com  us...@example1.com us...@example2.com
...



  -- Noel Jones

Reply via email to