负载平衡器后端后台服务器的Postfixconfiguration

我有两个web服务器( ws1.example.comws2.example.com ),在本地安装postfix作为邮件依赖(使用mandrillapp),用户通过www.example.com访问它们,这是一个负载平衡器

ws1上 ,configuration是

主机名

ws1 

主机名-f

 ws1.example.com 

/ etc / hosts文件

 127.0.0.1 localhost 127.0.1.1 ws1.example.com ws1 

/etc/postfix/main.cf中

 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = static:[email protected]:abc smtp_sasl_security_options = noanonymous myhostname = ws1.example.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = ws1, ws1.example.com, localhost relayhost = [smtp.mandrillapp.com]:587 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all 

显然它工作,但我想知道,如果上述configuration设置有任何潜在的问题?

更新 :我的关注是ws1.example.comws2.example.com不能parsing在我的DNS。

所以,正如我在这里理解你的电子邮件stream程图

 wsX.example.com --> smtp.mandrillapp.com --> external mailserver 

现在, 外部邮件服务器上的垃圾邮件检查程序通常会使用最后一个smtp服务器信誉来帮助确定此电子邮件是否为垃圾邮件。 因此,在这种情况下,外部邮件服务器只是检查smtp.mandrillapp.com声誉忽略到达smtp.mandrillapp.com之前发生的电子邮件。

但是一些高级的垃圾邮件检测程序会考虑整个邮件stream来确定你的邮件是不是垃圾邮件。 所以,他们可以检查域wsX.example.com是否存在。 所以为了安全播放,我build议你为wsX.example.comparsing为负载平衡器的IP添加Alogging。 作为以前解决scheme的替代scheme,您应该更改smtp_helo_name 参数以匹配example.com

这一小步将帮助您确保您的电子邮件将到达用户邮箱。 我为什么必须解决ws1.example.com的一个担心就是一些spamchecker会检查你的helo名字。 一些相关文章的摘录

邮件服务器为什么坏的HELO被阻塞的常见原因是:

*服务器宣布自己是“本地主机”。

*服务器宣布自己是一个IP地址。

*服务器宣布自己是一个不存在的主机名。