在一次软件更新之后,我遇到了一个后缀/信使的问题,在这个更新中,快递员不再监听IPv4端口。以下是netstat输出:
ubuntu@ip-10-x-x-x:~$ sudo netstat -plnt
sudo: unable to resolve host ip-10-0-4-32
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 1178/perl
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 3841/master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1078/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 3841/master
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 1173/amavisd-new (m
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 3841/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1127/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 3841/master
tcp6 0 0 :::110 :::* LISTEN 1854/couriertcpd
tcp6 0 0 :::143 :::* LISTEN 4172/couriertcpd
tcp6 0 0 ::1:783 :::* LISTEN 1178/perl
tcp6 0 0 :::22 :::* LISTEN 1078/sshd
tcp6 0 0 :::993 :::* LISTEN 4124/couriertcpd
tcp6 0 0 :::995 :::* LISTEN 1883/couriertcpd如您所见,端口110、143、993和995只在IPv6接口上打开。这会导致多个邮件客户端的连接问题。
以下是我的配置文件:
在/etc/postfix/main.cf中,我有
inet_interfaces = all
inet_protocols = ipv4在/etc/速递/imapd-ssl.dist中,我有:
SSLPORT=0.0.0.0.993
SSLADDRESS=0.0.0.0在/etc/信使/imap.dist中,我有:
PORT=0.0.0.0.143
ADDRESS=0.0.0.0我当然做到了:
sudo /etc/init.d/courier-imap restart
sudo /etc/init.d/courier-imap-ssl restart没有运气..。
作为临时修复,我已经为这个主机的IPv6地址添加了一个公共DNS条目,而邮件现在似乎要来了。
发布于 2020-11-04 16:08:51
端口/SSLPORT只应是端口号110、143、993或995
https://serverfault.com/questions/964763
复制相似问题