- 论坛徽章:
- 2
|
邮件服务器ip: 192.168.12.222
客户端服务器ip: 192.168.12.123
postfix配置:
myhostname = mail.abc.com
mydomain = abc.com
myorigin = $mydomain
mydestination = $myhostname,$mydomain
mynetworks = 192.168.12.0/24
relay_domains = $mydomain
inet_interfaces = all
客户端hosts:
192.168.12.222 mail.abc.com
客户端机器telnet发邮件:
telnet 192.168.12.222 25
ehlo 192.168.12.123
mail from:<test@abc.com>
rcpt to:<root@mail.abc.com>
data
hahaha
.
quit
以上方法成功收到邮件
mail发邮件:
mail -s test root@mail.abc.com </etc/hosts
以上方法在邮件服务器上是可以发送的, 但客户端机器上不行
邮件服务器和客户端iptables均已关闭
客户端mailq信息:
t7G8i1sp023416 133 Sun Aug 16 16:44 <root@localhost.localdomain>
(Deferred: Name server: mail.abc.com.: host name lookup failu)
<root@mail.abc.com>
提示域名无法解析, 可是hosts里明明有啊
弄了半天了, 实在搞不定,才来求助. |
|