On Tue, Feb 04, 2020 at 09:45:50AM -0500, Wietse Venema wrote: > BTW You don't need random.pl. Postfix 3 has randmap built-in. > > /etc/postfix/main.cf > foo_maps = randmap:{A,A,A,B,B}
Demo: $ yes . | head -n 10000 | postmap -q - "randmap:{A,A,A,B,B}" | sort | uniq -c 5957 . A 4043 . B The standard deviation for 10000 binomial trials with p=0.6 is ~49, so this is pretty much the sort of variation from the mean one would expect. -- Viktor.