Gradually migrate from one SMTP server to another

Posted by Bart van Wissen on Server Fault See other posts from Server Fault or by Bart van Wissen
Published on 2012-10-12T11:23:05Z Indexed on 2012/11/05 5:03 UTC
Read the original article Hit count: 500

Filed under:
|

I maintain an application that sends out a ton of e-mail on a daily basis. Soon, we will have to migrate to another SMTP-server for that, which has an ip address that has no reputation with respect to email delivery. So instead of just flipping the switch, I would like to start by sending a small percentage of all mail through the new server, and then gradually increase that percentage until we reach 100%.

It wouldn't be very hard to implement something in the application itself, but I would like to know if there is an easier, more reliable out-of-the-box-type solution for this.

My first thought was to use round-robin DNS for this, but the servers require different credentials, use different protocols (one uses SASL, the other doesn't) and even different port numbers, so I think that rules out the DNS based solution.

Is there any way, for example, to configure Postfix to send 1 out of x e-mails to relay host A and the rest to relay host B? Or perhaps a different MTA?

© Server Fault or respective owner

Related posts about postfix

Related posts about smtp