postfix-users May 2014 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: recipient dependent maps

Re: recipient dependent maps

From: Marcus <mvfreelancer_at_nospam>
Date: Thu May 01 2014 - 15:57:58 GMT
To: postfix users <postfix-users@postfix.org>

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)?
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