gpt4 book ai didi

linux - 如何开始鸽舍?

转载 作者:IT王子 更新时间:2023-10-29 00:46:19 27 4
gpt4 key购买 nike

我正在构建一个网络服务器来托管多个网站。除了邮件服务器,我一切正常。我正在使用 linode 来托管我的 vps,并且我一直在学习他们的教程。仅供引用,我使用的是 Ubuntu 11.10。

这是我一直关注的链接,http://library.linode.com/email/postfix/dovecot-mysql-ubuntu-10.04-lucid .我到了它告诉我重新启动 dovecot 的部分,所以我尝试了“service dovecot restart”。但后来我得到这个“重启:未知实例:”。我以 root 身份登录,所以我没有使用 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”。所以我尝试获取状态,所以我厌倦了“服务鸽舍状态”并获得了“鸽舍停止/等待”

然后我厌倦了“/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

最佳答案

作为一般提示,尝试直接在前台运行 dovecot:

鸽舍-F

原因是前台经常会直接向控制台输出加载错误消息,这通常可以让您快速跟踪通常不会记录的错误(例如配置解析错误)。

关于linux - 如何开始鸽舍?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8319151/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com