複数の Web サイトをホストする Web サーバーを構築しています。メールサーバー以外はすべて機能しています。vps をホストするために linode を使用しており、そのチュートリアルに従っています。参考までに、Ubuntu 11.10 を使用しています。
これが私がたどってきたリンクhttp://library.linode.com/email/postfix/dovecot-mysql-ubuntu-10.04-lucidです。dovecotを再起動するように言われるところまで来ましたので、「service dovecot restart」してみました。しかし、その後、「restart: Unknown instance:」というメッセージが表示されます。ルートとしてログインしているので、sudo は使用していません。
それがうまくいかなかったので、「/etc/init.d/dovecot restart」を試したところ、「dovecot start/running, process 4760」が表示されました。そこで、「/etc/init.d/dovecot status」を試してみると、「dovecot stop/waiting」が表示されます。
そこで、「service dovecot start」を試したところ、「dovecot start/running, process 4781」が表示されました。ということでステータスを取得してみたところ「service dovecot status」で疲れて「dovecot stop/waiting」になりました
その後、「/etc/init.d/dovecot start」に飽きて、「dovecot start/running, process 4794」が表示されます。というわけでステータス取得に疲れたので「/etc/init.d/dovecot status」に疲れて「dovecot stop/waiting」を取得。
プロセスを強制終了するのに疲れたキックと笑いのために、「service dovecot start」を実行したときに取得した PID を使用しました。これはコマンド「kill -9 4444」で、「bash: kill: (4805)」を取得します。 - そのようなプロセスはありません」
私は何か間違ったことをしていますか?
--編集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 = postmaster@[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