0

telnet localhost pop3 正在尝试 ::1... 正在尝试 127.0.0.1... telnet:无法连接到远程主机:连接被拒绝

网络统计 -l

tcp 0 0 *:www :
tcp 0 0 localhost.localdoma:ipp :
tcp 0 0 *:smtp :
tcp 0 0 localhost.localdo:mysql :

当我运行这个服务 dovecot start 我得到了

start: 拒绝发送消息,1 个匹配规则;type="method_call", sender=":1.553" (uid=1000 pid=26250 comm="start) interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply= 0 目的地="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))

在 Dovecot.conf 上

protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/var/spool/mail/%d/%n
mail_access_groups = mail
first_valid_uid = 106
first_valid_gid = 106
protocol imap {

}

protocol pop3 {
listen=*:110
pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
  postmaster_address = samer@aiu.com
  mail_plugins = quota
  log_path = /var/log/dovecot-deliver.log
  info_log_path = /var/log/dovecot-deliver.log
}

auth default {
mechanisms = digest-md5 plain
passdb sql {
args = /etc/dovecot/dovecot-mysql.conf
}
userdb sql {
args = /etc/dovecot/dovecot-mysql.conf
}
user = root
}
4

2 回答 2

2

如果您在命令行上收到此消息:

start: Rejected send message, 1 matched rules; type="method_call", sender=":1.553" (uid=1000 pid=26250 comm="start) interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))

这表明您没有以 root 身份执行 service dovecot restart。因此,请确保您这样做:

sudo service dovecot restart
于 2013-07-29T07:05:14.220 回答
0

该指令protocols = imap imaps pop3 pop3s应该足以使用 dovecot 激活 pop3。你可以加

listen = *

确保 dovecot 会监听所有可用的接口。您可以通过 验证这一点netstat -apn | grep 110。启动 dovecot 时是否有任何故障?你能发布鸽舍相关的日志吗?

默认情况下,dovecot 将日志记录到 syslog,您可以显式指定日志文件:

# Log file to use for error messages, instead of sending them to syslog.
# /dev/stderr can be used to log into stderr.
log_path = /var/log/dovecot.log

# Log file to use for informational and debug messages.
# Default is the same as log_path.
info_log_path = /var/log/dovecot.info.log
于 2012-03-18T09:23:55.417 回答