Friday, October 2, 2009

Episode 16: Is it possible to have 2 or more SMART_HOST's configured for redundancy in Sendmail?

It is possible to set up multiple smart hosts in Sendmail. The syntax required in the /etc/mail/ file is:

define(SMARTHOST `[]:[]:[]')

The square brackets are to ensure that Sendmail does not do a Domain Name Service MX lookup. After editing the /etc/mail/ file, the /etc/mail/ file must be regenerated.

For Red Hat Enterprise Linux 2.1, use:

m4 /etc/mail/ > /etc/

For Red Hat Enterprise Linux 3, use:

make -C /etc/mail

Note: If you are running a Domain Name Server (DNS), an alternative to specifying multiple smart hosts is to set up your DNS server to have multiple MX records under the smart host's host name and have the DNS server 'round robin' the MX records. This configuration, however, is out the scope of this Knowledgebase article

No comments:

Post a Comment