嗯,我刚开始在我的vps中设置邮件服务器,这个奇怪的问题就出现了。
我在域注册表中有域和安装mx记录。但我不能在我的服务器上接收电子邮件,但可以从SquirrelMail发送电子邮件。
我检查了telnet服务器25和端口110,但是25连接的连接被拒绝了。
[root@server ~]# telnet 199.175.51.215 110
Trying serverIP ...
Connected to serverIP .
Escape character is '^]'.
+OK Dovecot ready.
quit
Connection closed by foreign host.
[root@server ~]# telnet serverIP 25
Trying 199.175.51.215...
telnet: connect to address serverIP : Connection refused我检查了netstat -plnt命令,这里是out;端口25被发送邮件使用,并分配给本地主机ip。
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 613/sendmail我在我的域名注册中有mx.domain.com记录。
在main.cf中;inet_interfaces = all
请告诉我一些解决办法。
发布于 2017-03-15 12:34:48
您的基本问题似乎是sendmail已经绑定到您告诉postfix绑定到(localhost)的地址之一,这可能会阻止postfix启动smtpd。
你没有提到你使用的发行版,但我可能会从跑步开始:
sudo systemctl stop sendmail或sudo service sendmail stop.
然后尝试重新启动后缀,如果效果良好,则防止sendmail在引导时启动(使用systemctl disable或chkconfig)。
我强烈建议您不要顺便提供对pop3服务器的未加密访问--最好完全阻止对tcp/110的访问,而使用pop3s (tcp/995)。
https://serverfault.com/questions/838416
复制相似问题