telnet localhost pop3 尝试:: 1 ... 试试127.0.0.1 ...... telnet:无法连接到远程主机:连接被拒绝
netstat -l </ p>
tcp 0 0 *:www : LISTEN
tcp 0 0 localhost.localdoma:ipp : LISTEN
tcp 0 0 *:smtp : LISTEN
tcp 0 0 localhost.localdo:mysql : LISTEN
当我运行这项服务时,我得到了dovecot
开始:拒绝发送消息,1个匹配的规则; type =&#34; method_call&#34;,sender =&#34;:1.553&#34; (uid = 1000 pid = 26250 comm =&#34; start)interface =&#34; com.ubuntu.Upstart0_6.Job&#34;构件=&#34;开始&#34;错误名称=&#34;(未设置)&#34; requested_reply = 0 destination =&#34; com.ubuntu.Upstart&#34; (uid = 0 pid = 1 comm =&#34; / sbin / init&#34;))
在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
}
答案 0 :(得分: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用户身份重新启动服务dovecot。所以一定要确保:
sudo service dovecot restart
答案 1 :(得分: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