我正在構建一個Web服務器來託管多個網站。除了郵件服務器,我得到了所有的工作。我使用linode來託管我的vps,我一直在關注他們的教程。僅供參考,我使用的是Ubuntu 11.10。如何啓動dovecot?
這是我一直在關注的鏈接http://library.linode.com/email/postfix/dovecot-mysql-ubuntu-10.04-lucid。我起牀到它告訴我重新啓動dovecot的部分,所以我嘗試了「service dovecot restart」。但後來我得到這個「重啓:未知的實例:」。我以root身份登錄,所以我沒有使用sudo。
由於沒有工作,我嘗試「/etc/init.d/dovecot restart」,我得到「dovecot啓動/運行,進程4760」。所以我嘗試「/etc/init.d/dovecot status」,然後得到「dovecot stop/waiting」。
所以我嘗試「服務dovecot開始」,我得到「dovecot啓動/運行,進程4781」。所以我試圖獲得狀態,所以我累了「服務鴿舍狀態」,並得到「鴿舍停止/等待」
然後,我累「/etc/init.d/dovecot start」,我得到「dovecot啓動/運行,過程4794「。所以我厭倦了獲得狀態,所以我厭倦了「/etc/init.d/dovecot status」並且得到了「dovecot stop/waiting」
只是爲了踢腿和咯咯我累死了過程,我用了PID我得到了當我做「服務dovecot開始」,這是命令「kill -9 4444」,我得到這個「bash:kill:(4805) - 沒有這樣的進程」
我做錯了什麼?
--edit 1--
以下是在/ var/log/syslog的被發現的日誌所涉及的dovecot
dovecot: master: Dovecot v2.0.13 starting up (core dumps disabled)
dovecot: ssl-params: Generating SSL parameters
dovecot: ssl-params: SSL parameters regeneration completed
dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
dovecot: config: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
dovecot: anvil: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
kernel: init: dovecot main process (10276) terminated with status 89
kernel: init: dovecot main process (10289) terminated with status 89
kernel: init: dovecot main process (10452) terminated with status 89
kernel: init: dovecot main process (2275) terminated with status 89
kernel: init: dovecot main process (3028) terminated with status 89
kernel: init: dovecot main process (3216) terminated with status 89
kernel: init: dovecot main process (3230) terminated with status 89
kernel: init: dovecot main process (3254) terminated with status 89
kernel: init: dovecot main process (3813) terminated with status 89
kernel: init: dovecot main process (3845) terminated with status 89
kernel: init: dovecot main process (4664) terminated with status 89
kernel: init: dovecot main process (4760) terminated with status 89
kernel: init: dovecot main process (4781) terminated with status 89
kernel: init: dovecot main process (4794) terminated with status 89
kernel: init: dovecot main process (4805) terminated with status 89
- 編輯2(在/ etc/dovecot的/ dovecot的。 CONF) -
以下是dovecot.conf文件
protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n/Maildir
ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_key_file = /etc/ssl/private/dovecot.pem
namespace private {
separator = .
prefix = INBOX.
inbox = yes
}
protocol lda {
log_path = /home/vmail/dovecot-deliver.log
auth_socket_path = /var/run/dovecot/auth-master
postmaster_address = [email protected][mydomainname.com]
mail_plugins = sieve
global_script_path = /home/vmail/globalsieverc
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
auth default {
user = root
passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
userdb static {
args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
}
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
- 編輯3(/var/log/mail.log) -
下面是什麼在/var/log/mail.log
dovecot: master: Dovecot v2.0.13 starting up (core dumps disabled)
dovecot: ssl-params: Generating SSL parameters
postfix/master[9917]: daemon started -- version 2.8.5, configuration /etc/postfix
dovecot: ssl-params: SSL parameters regeneration completed
postfix/master[9917]: terminating on signal 15
postfix/master[10196]: daemon started -- version 2.8.5, configuration /etc/postfix
dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
dovecot: config: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
dovecot: anvil: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
postfix/master[2435]: daemon started -- version 2.8.5, configuration /etc/postfix
postfix/master[2435]: terminating on signal 15
postfix/master[2965]: daemon started -- version 2.8.5, configuration /etc/postfix
我跟着同一個教程,我有同樣的問題,你有沒有找到一個解決方案? – Allisone
但我也想知道...在教程中,他們提到了dovecot-sql.conf,但只有一個dovecot-sql.conf.ext(這是一個示例文件還是放置配置行的新位置?) – Allisone
這是怎麼回事?與編程? – tink