Re: randmap() lookup with percentage

2019-02-26 Thread Wietse Venema
If randmap could nest, then one could say randmap:{smtp1,randmap:{smtp1,randmap:{smtp1,randmap:{smtp1,smtp2 and approximate the desired ratio with 15/16. But it does not nest, because 'randmap' is like 'static' combined with multiple choice. That's enough humor for now. Wietse

Re: randmap() lookup with percentage

2019-02-26 Thread Viktor Dukhovni
On Tue, Feb 26, 2019 at 04:01:15PM +0100, Tom Sommer wrote: > > # Picks smtp1 90% of the time, smtp2 10% of the time. > > randmap:{smtp1,smtp1,smtp1,smtp1,smtp1,smtp1,smtp1,smtp1,smtp1,smtp2} > > True, that is a way - although a litte bit of a workaround; setting 93% > is a little bit of a mess :

Re: randmap() lookup with percentage

2019-02-26 Thread Wietse Venema
Wietse: > # Picks smtp1 90% of the time, smtp2 10% of the time. > randmap:{smtp1,smtp1,smtp1,smtp1,smtp1,smtp1,smtp1,smtp1,smtp1,smtp2} Tom Sommer: > True, that is a way - although a litte bit of a workaround; setting 93% > is a little bit of a mess :) I didn't think that such a high level of pr

Re: randmap() lookup with percentage

2019-02-26 Thread Tom Sommer
On 2019-02-26 15:51, Wietse Venema wrote: Tom Sommer: I have a feature request for a lookup table like randmap(), but with the option to control a percentage or a count of mails sent to the transport. Even if the percentage was just a "chance" of selection, it would be nice. So you could do :

Re: randmap() lookup with percentage

2019-02-26 Thread Wietse Venema
Tom Sommer: > I have a feature request for a lookup table like randmap(), but with the > option to control a percentage or a count of mails sent to the > transport. > > Even if the percentage was just a "chance" of selection, it would be > nice. > > So you could do : > > sender_dependent_defa

randmap() lookup with percentage

2019-02-26 Thread Tom Sommer
I have a feature request for a lookup table like randmap(), but with the option to control a percentage or a count of mails sent to the transport. Even if the percentage was just a "chance" of selection, it would be nice. So you could do : sender_dependent_default_transport_maps = randmap:{