|
|
环境:RHEL3_U4 postfix-2.2.2
内网ip 192.168.0.1
外网vip1:218.108.50.1 邮件域:mx1.mail.com
vip2:218.108.50.2 邮件域:mx2.mail.com
main.cf的相关配置:
- myhostname = mx1.mail.com
- mydomain = mail.com
- myorigin = $myhostname
- mydestination = $myhostname, localhost, $mydomain, mx2.$mydomain
- smtp_helo_name = $mydestination
- smtpd_helo_required = yes
复制代码
看postfix.org上说可以用mydestination实现最简单的虚拟域,不知道那样配置对不对
但我从其他server直接- telnet mx1.mail.com 25
- Trying 218.108.50.1...
- Connected to mx1.mail.com (218.108.50.1).
- Escape character is '^]'.
- 220 mx1.mail.com ESMTP Postfix
- helo xxx
- 250 mx1.mail.com
复制代码
- telnet mx2.mail.com 25
- Trying 218.108.50.2...
- Connected to mx2.mail.com (218.108.50.2).
- Escape character is '^]'.
- 220 mx1.mail.com ESMTP Postfix
- helo xxx
- 250 mx1.mail.com
复制代码
不知道为何两个的helo信息都是mx1.mail.com,
我是想telnet哪个域名,helo信息就是哪个域名,哎
我没用mysql等什么的,不知道大家还有其他方法实现么? |
|