我为我工作的公司的邮件服务负责Debian GNU /
Linux(Wheezy)DomU.
昨天用于这个特定服务器的一个硬盘驱动器死了.
在再次安装Debian之后,Dovecot决定不再监听任何端口(使用netstat -l检查).其他服务(如Postfix和MySQL)可以正常工作.
dovecot -n:
# 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-3-amd64 x86_64 Debian wheezy/sid ext3 auth_mechanisms = plain login disable_plaintext_auth = no first_valid_uid = 150 last_valid_uid = 150 mail_gid = mail mail_location = maildir:/var/vmail/%d/%n mail_uid = vmail namespace inBox { inBox = yes location = prefix = } pass db { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = mail mode = 0666 user = vmail } } service imap-login { inet_listener imaps { port = 993 ssl = yes } } service pop3-login { inet_listener pop3s { port = 995 ssl = yes } } ssl_cert = </etc/ssl/private/mail.crt ssl_key = </etc/ssl/private/mail.key userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } protocol imap { mail_max_userip_connections = 25 }
UID 150是vmail(我仔细检查了文件权限).我没有从源代码安装Dovecot,而是通过官方Debian US镜像安装.在/ var / log / syslog中没有关于Dovecot的消息,除了:
Oct 21 06:36:29 server dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
有任何想法吗?
解决方法
你错过了一个协议指令来告诉Dovecot要服务的协议.
一个例子:
protocols = imap imaps pop3 pop3s