Sendmail循环中继configuration

我试图configuration我的邮件服务器,以循环方式使用Linux和sendmail 8.13.8来传递邮件到中继服务器。

我想要实现以下内容:

比方说,我运行mail.example.com作为邮件服务器,并有relay1,relay2,relay3和relay4准备好实际的邮件传递。

五封邮件到达mail.example.com:

mail 1 => relay1.example.com mail 2 => relay2.example.com mail 3 => relay3.example.com mail 4 => relay4.example.com mail 5 => relay1.example.com

等等。

我试图通过定义多个智能主机来设置它,但是似乎只有在主机之前的主机出现故障时才会激活辅助主机。

显然不是这样。 这应如何正确完成?

在你的sendmail.mc中:

定义(SMART_HOST,relay1:relay2:relay3:relay4)dnl

然后根据你的发行版的说明创buildsendmail.cf并重新启动sendmail。 在Debian中,你只需键入sendmailconfig 。 在CentOS中,键入/etc/mail/make然后service sendmail restart

如果继电器有MXlogging,则可能需要将它们括在方括号中