|
|
Forward mail to multiple mail servers
This document will help provide the necessary information needed to configure sendmail to forward mail to multiple mail servers using aliases within DNS.
- Create a "CNAME" record within your DNS and reference both mail servers
ie
mail_relay.mydomain.com. IN CNAME mail1.mydomain.com.
mail_relay.mydomain.com. IN CNAME mail2.mydomain.com.
"mail_relay.mydomain.com" when configured will resolve to either "mail1 or mail2" in a round-robin fashion.
- Edit your "sendmail.cf" file and look for a "DS" reference. By default this parameter is not configured. By changing this parameter you are instructing your server to relay its mail to an alternate mail system. In this case: mail_relay.mydomain.com.
DS mail_relay.mydomain.com
- Restart sendmail
- Any messages sent will either go to mail1 or mail2.
NOTE: Make sure that you allow this server to relay through both of your mail servers otherwise "mail1 and mail2" will drop the messages.
|
|
|