On 9/26/2011 1:18 PM, Noel Jones wrote:
> On 9/26/2011 1:00 PM, Randy Ramsdell wrote:
>> On 09/22/11 13:45, Randy Ramsdell wrote:
>>> I cannot find the the way to grab all "to's" rewritten to go to a
>>> single "to:". We need to send all mail coming out of our QA
>>> environment and send that to a single, probably, local address.
>>> The list of senders will be in the thousands and so using a
>>> catchall for these has to be configured.
>>>
>>> We will also select a few "to's" where we send these off as normal.
>>>
>>> No external to our network mail we need to be routed.
>>>
>>> So far I read about transport maps and the address rewriting but
>>> don't see a way or the best way to accomplish this.
>>>
>>> Advice appreciated,
>>> Randy Ramsdell
>>
>> When virtual_alias_maps using two maps as suggested.
>>
>> virtual_alias_maps =
>>         hash:/etc/postfix/virtual pcre:/etc/postfix/virtual.pcre
>>
>> This has order correct ?i.e As in the maps are checked sequentially?
>>
>>
> 
> 
> The maps are checked sequentially and recursively. Recursion stops
> when the result is the same as the input key or "not found".

Before someone gets the wrong idea, I should clarify that recursion
is a feature of virtual_alias_maps and not a general feature.  Maps
that are searched recursively are so noted in the docs.


  -- Noel Jones

> 
> For this application, you would need 1-1 "identity" mappings in the
> hash file, and a catchall in the pcre.
> 
> 
>   -- Noel Jones

Reply via email to