Postfix以奇怪的方式发送和接收。

我有一个电子邮件服务器,在CentOS 6.5,32位系统上运行,Postfix和Dovecot运行在它们的所有依赖项上。 假设我的域名是www.anw.com

我已经按照这个顺序为我的域创build了Alogging

  www.anw.com 37.143.374.15 # points to my web server anw.com 37.143.374.15 # points to my web server mail.anw.com 227.80.74.199 # points to my mail server 

我也创build了一个MX服务器

  mail.anw.com 227.80.74.199 

现在,使用postfix我创build了两个帐户,即[email protected][email protected]使用squirrelmail我可以发送和接收这些帐户之间没有任何问题。 我也可以将电子邮件发送到任何电子邮件帐户,如雅虎和谷歌,但我不能收到从谷歌或雅虎发送的电子邮件。

在/etc/postfix/main.cf中查看下面的设置和相关的注释:

myhostname(您的邮件服务器的主机名)mydomain = dailytech24.com(您的域名)myorigin = $ mydomain inet_interfaces = all(如果您只有IPv4,则需要更改)mydestination mynetworks

您的Postfix只在Loopback接口( 127.0.0.1 )上进行侦听。 编辑/etc/postfx/main.cf文件并使用公共IP地址更新inet_interfaces参数。

 inet_interfaces = MY.IP.AD.DR,127.0.0.1 

您将不得不重新启动Postfix服务。

 # service postfix restart