Hi!
We currently uses the routing of e-mails through different internet links (multiples mx to send e-mails).
I use the script below for this purpose, that changes the parameter hostname of postfix, and in my firewall I rotate a source for output for a specific link)
/etc/postfix/random.pl
01...