2012-03-18 46 views
0

远程登录本地主机POP3 尝试:: 1 ... 尝试127.0.0.1 ... 远程登录不工作POP3:无法连接到远程主机:拒绝连接达夫科特与后缀

的netstat -l

TCP 0 0 *:万维网 LISTEN
TCP 0 0 localhost.localdoma:IPP LISTEN
TCP 0 0 *:SMTP 大号ISTEN
TCP 0 0 localhost.localdo:mysql的 LISTEN

当我运行此服务的dovecot开始我得到

开始:拒绝发送消息,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目录/初始化”))

上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 = [email protected] 
    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

属于serverfault.com – Thor 2012-03-18 09:12:52

回答

0

该指令protocols = imap imaps pop3 pop3s应足以激活与达夫科特的pop3。您可以添加

listen = * 

,以确保dovecot的将侦听所有可用的接口,你可以通过验证这一点。开始dovecot时是否有失败?你能发布鸽舍相关日志吗?

默认情况下,达夫科特记录到系统日志,你可以明确指定的日志文件:

# 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 
+0

我这样做:netstat -apn | grep 110 但没有什么它就像鸽舍没有运行 – 2012-03-18 13:13:43

+0

并没有关于dovecot在mail.log或mail.err – 2012-03-18 13:21:08

+0

你确定这是dovecot日志而不是postfix? (我已经扩大了我的答案关于日志记录) – Thor 2012-03-18 14:27:33

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 restart。所以请确保你这样做:

sudo service dovecot restart