SMTP smarthost round-robin balancing

email-serverload balancingsmarthostsmtp

Our SMTP provider requires to distribute emails evenly between four different hosts. I understand that the standard way to distribute this kind of load is utilizing DNS round robin feature, but the problem is that provider's mailservers should be addressed using symbolic names not IPs. What is the best way to handle this? Will setting multiple CNAME records work or should I use any internal Sendmail/Postfix/Exim/etc balancing capability (which I am currently not aware of)?

Best Answer

Your provider's an idiot. They should give you one server name to plug into your MTA and do their own load balancing. I'd be inclined just to throw one name into my relayhost directive and be done with it. You could define a local name with the A records of all your provider's machines (taken from resolving the names they've given you), but it makes no sense to have to do so, because every time your provider decides to add more servers to their cluster you have to make a config change.