On 5/1/2014 10:57 AM, Marcus wrote:
> Noel Jones:
>> Or maybe a PCRE map that replies to both "*" and not-local domains,
>> leaving only the local domains for the slow map.
> 
> Can PCRE reply be non-static or pseudo-random (if you will)?

No. But it can respond very quickly to a list (or a !not list),
allowing you to avoid unwanted lookups to the slow map.

if !/@example\.com$/
if !/@example\.org$/
if !/@example\.edu$/
/./  :
endif
endif
endif




  -- Noel Jones


> I'm after something that works as following...
> Sometimes 'example.com' is sent down 'foo' and other times it's
> sent down 'bar' and there's no set rule that defines when "foo" or
> "bar" are used, it's just "random".
> 
> # Begin /etc/postfix/rand_transport.pcre
> example.com    foo:
> example.com    bar:
> # End
> 

Reply via email to