我有运行 VirtualBox v4.1.18 的 Debian7,以及运行 CentOS 7 的客户虚拟机,该虚拟机运行 Dovecot。我能够从本地主机(即从虚拟机到其自身)和其他客户机远程登录到 995,并且我可以使用简单命令进行基本身份验证,但我无法从主机远程登录到客户机。以下是输出
firewall-cmd --list-all
public (default, active)
interfaces: eth0 eth1
sources:
services: dhcpv6-client imaps pop3s smtp ssh
ports: 465/tcp 587/tcp 995/tcp
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
我也为该主机在 VirtualBox 管理器上转发了 995。我可以顺利通过 ssh 进入该盒子...我可以访问端口 465/587...我已验证我的主机没有消耗 995...我已多次重启虚拟机和主机....
这是我的dovecot.conf
:
fs
auth_mechanisms = plain login
disable_plaintext_auth = no
listen = *
mail_location = maildir:/var/mail%d/%n
mail_privileged_group = mail
mbox_write_locks = fcntl
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
protocols = pop3
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
driver = passwd
}
我该怎么做才能修复这个问题或者进一步诊断?
编辑:
重启后,我将主机端口从 995 更改为其他端口,并能够成功远程登录到 dovecot 服务。Debian7 上是否有东西阻止了 995?不确定...