Sendmail 未侦听任何端口

Ash*_*wal 4 email-server sendmail centos port centos6

我在 CentOS 6 上使用 VPS 主机。

我已经安装了Sendmail,但它没有监听任何端口。我检查过,IPTables 被禁用(或者我猜是停止了; service iptables status命令返回iptables: Firewall is not running.

这是netstat -plnt输出

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address      Foreign Address    State       PID/Program name
tcp        0      0 0.0.0.0:22         0.0.0.0:*          LISTEN      1538/sshd
tcp        0      0 127.0.0.1:25       0.0.0.0:*          LISTEN      1186/master
tcp        0      0 0.0.0.0:3306       0.0.0.0:*          LISTEN      11274/mysqld
tcp        0      0 :::22              :::*               LISTEN      1538/sshd
tcp        0      0 ::1:25             :::*               LISTEN      1186/master
tcp        0      0 :::80              :::*               LISTEN      14173/httpd
Run Code Online (Sandbox Code Playgroud)

在 sendmail.mc 中,我已将DAEMON_OPTIONS('Port=smtp,Addr=127.0.0.1, Name=MTA')dnl Addr编辑为 0.0.0.0 ,并使用 重新创建.cf文件m4,但这似乎并没有解决问题。

我该怎么办?

lg.*_*lg. 9

CentOS 6 附带 Postfix 作为默认邮件服务器,您可以看到它正在运行 (tcp :25 1186/master)。尝试停止 Postfix ( service postfix stop) 然后启动 sendmail ( service sendmail start)。