WarpZero RSS WarpZero@Twitter WarpZero@LinkedIn Michael Marth@Facebook Monday, 21-May-2012 01:52:02 EDT
   
warpzero.com

° Home
° News & Updates
° Howto & Knowledge Base
° External Resources
° Contact us
° Search
° Site Validated
° Site Map




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.




  1. 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.

  2. 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

  3. Restart sendmail

  4. 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.

Linux Counter
Apache
IBM Canada
Cisco Systems
RedHat
Linux
 
 Published: Wednesday, 10-Nov-2010 05:18:30 EST