2012-03-18 90 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