【发布时间】:2016-11-30 23:11:11
【问题描述】:
我正在尝试将 Sendmail 配置为侦听 ec2 服务器上的 110 POP3。我需要它用于时事通讯应用程序,以便它可以检查反弹。当我尝试在端口 110 上 telnet 时出现连接错误。
root:/# telnet sub.domain.com 110
Trying 5?.??.?.?0...
telnet: Unable to connect to remote host: Connection refused
root:/# telnet sub.domain.com 25
Trying 5?.??.?.?0...
Connected to sub.domain.com.
Escape character is '^]'.
220 ip-172-31-54-114.ec2.internal ESMTP Sendmail 8.14.4/8.14.4/Debian-4.1ubuntu1; Wed, 30 Nov 2016 10:24:50 GMT; (No UCE/UBE) logging access from: [5?.??.?.?0](FORGED)-ec2-5?-??-?-?0.compute-1.amazonaws.com [5?.??.?.?0] (may be forged)
^]
telnet> quit
Connection closed.
当我在端口 25 上 lsof 时,我可以看到它正在工作,但在 110 上却没有。
root:/# lsof -n -i :25
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sendmail- 4279 root 4u IPv4 2349285 0t0 TCP *:smtp (LISTEN)
root:/# lsof -n -i :110
root:/#
我是否需要编辑 sendmail.mc 文件,之前我注释掉了以下几行,以便 smtp 可以监听所有 IP。
dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
我在 sendmail.cf 和 sendmail.mc 中搜索了对 pop3/port110 配置的任何引用,但什么也没看到。
【问题讨论】: