iis服务器助手广告广告
返回顶部
首页 > 资讯 > 操作系统 >Linux下配置Dovecot常见错误及解决办法
  • 592
分享到

Linux下配置Dovecot常见错误及解决办法

authdovecotimap-loginLinuxMySQLpassdbsprotocoluserdb解决方法错误 2022-05-13 11:05:59 592人浏览 八月长安
摘要

Error: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: protocols: Unknown protocol

Error: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: protocols: Unknown protocol: sieve

Groupware Error: The connection was refused. Please check the host and port number.

Dovecot Service ist nicht gestartet

root@groupware:~# /etc/init.d/dovecot restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service dovecot restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop dovecot ; start dovecot. The restart(8) utility is also available.
dovecot stop/waiting
root@groupware:~# service dovecot restart
stop: Unknown instance: 
dovecot stop/waiting
root@groupware:~# /usr/sbin/dovecot -F -c /etc/dovecot/dovecot.conf
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:26: protocols=managesieve has been renamed to protocols=sieve
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:26: 'imaps' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:97: ssl_cert_file has been replaced by ssl_cert = <file
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:98: ssl_key_file has been replaced by ssl_key = <file
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:261: namespace private {} has been replaced by namespace { type=private }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:268: namespace shared {} has been replaced by namespace { type=shared }
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 707: Unknown setting: sieve_global_path
root@groupware:~# 

doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:797: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:908: passdb sql {} has been replaced by passdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:969: userdb sql {} has been replaced by userdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:998: auth_user has been replaced by service auth { user }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1131: protocol managesieve {} has been replaced by protocol sieve { }
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 1136: Unknown setting: managesieve_loGout_fORMat

doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: protocols: Unknown protocol: sieve

Lösung

apt-get install dovecot-sieve dovecot-managesieved

Error: dovecot: imap-login: Fatal: Can't load ssl_cert: There is no valid PEM certificate. (You probably forgot '<' from ssl_cert=</etc/ssl/certs/ssl-cert-snakeoil.pem)

root@groupware:~# cat /var/log/mail.err May 2 18:25:53 groupware dovecot: imap-login: Fatal: Can't load ssl_cert: There is no valid PEM certificate. (You probably forgot '<' from ssl_cert=</etc/ssl/certs/ssl-cert-snakeoil.pem) May 2 18:25:53 groupware dovecot: master: Error: service(imap-login): command startup failed, throttling

Lösung

ssl_cert =< /etc/ssl/certs/ssl-cert-snakeoil.pem
ssl_key =< /etc/ssl/private/ssl-cert-snakeoil.key

 

Error: dovecot: auth: Fatal: Unknown database driver 'Mysql'

May  3 10:42:42 groupware dovecot: auth: Fatal: Unknown database driver 'mysql'
May  3 10:42:42 groupware dovecot: master: Error: service(auth): command startup failed, throttling

Lösung

apt-get install dovecot-mysql

Error: dovecot: auth: Fatal: net_connect_unix(auth-worker) in directory /run/dovecot failed: Permission denied

May  3 10:47:37 groupware dovecot: auth: Fatal: net_connect_unix(auth-worker) in directory /run/dovecot failed: Permission denied (euid=65534(nobody) egid=65534(nogroup) missing +r perm: /run/dovecot/auth-worker, dir owned by 0:0 mode=0755)
May  3 10:47:37 groupware dovecot: master: Error: service(auth): command startup failed, throttling

Lösung

service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-master {
    group = mail
    mode = 0660
    user = vmail
  }
  user = nobody
}

 

Error: dovecot: auth: Fatal: No passdbs specified in configuration file. PLAIN mechanism needs one

dovecot: auth: Fatal: No passdbs specified in configuration file. PLAIN mechanism needs one

Lösung

passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}

Error: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: mail_plugin_dir: access(/usr/lib/dovecot/modules/lda) failed: No such file or directory

Lösung

mail_plugin_dir = /usr/lib/dovecot/modules

 

Error: Couldn't drop privileges: Mail access for users with UID 150 not permitted (see first_valid_uid in config file, uid from userdb lookup).

May  3 13:35:34 groupware dovecot: imap(schwarzkopf9@sensortherm.de): Error: user schwarzkopf9@sensortherm.de: Couldn't drop privileges: Mail access for users with UID 150 not permitted (see first_valid_uid in config file, uid from userdb lookup).
May  3 13:35:34 groupware dovecot: imap(schwarzkopf9@sensortherm.de): Error: Internal error occurred. Refer to server log for more information.

Lösung

Datei /etc/dovecot/conf.d/10-mail.conf

first_valid_uid = 150
last_valid_uid = 150

Error: dovecot: lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=150(vmail) egid=8(mail) missing +r perm: /var/run/dovecot/auth-userdb, dir owned by 0:0 mode=0755)

May  3 14:07:52 groupware dovecot: lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=150(vmail) egid=8(mail) missing +r perm: /var/run/dovecot/auth-userdb, dir owned by 0:0 mode=0755)
May  3 14:07:52 groupware dovecot: lda: Fatal: Internal error occurred. Refer to server log for more information.

Lösung

Datei /etc/dovecot/conf.d/10-master.conf

service auth {
  unix_listener auth-userdb {
    mode = 0600
    user = vmail 
    #group = 
  }

}

Error: sieve: execution of script /home/vmail/before.sieve failed, but implicit keep was successful

dovecot: lda(schwarzkopf20@sensortherm.de): Error: sieve: execution of script /home/vmail/before.sieve failed, but implicit keep was successful

Lösung: /etc/dovecot/conf.d/15-lda.conf

lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes

--结束END--

本文标题: Linux下配置Dovecot常见错误及解决办法

本文链接: https://www.lsjlt.com/news/9366.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • Spring集成Swagger常见错误及解决办法
    目录概览问题一原因解决办法问题二原因解决办法概览 在当下几乎所有的公司都采用了前后端分离的开发模式,Swagger作为了在API在线文档工具,几乎是后端开发的必备组件,最近公司的有...
    99+
    2024-04-02
  • PHP常见错误及解决方法
    PHP作为一种非常流行的服务器端脚本语言,被广泛应用于Web开发。然而,在编写PHP代码时,常常会遇到一些错误,这些错误可能由语法错误、逻辑错误、运行时错误等引起。本文将针对常见的PH...
    99+
    2024-03-12
    解决方法 php错误 常见问题
  • PHP 常见错误及其解决方法
    PHP是一种广泛应用于Web开发的编程语言,由于其易学易用的特点,越来越多的开发者开始使用PHP进行开发工作。然而,在PHP开发过程中,可能会出现各种错误,导致程序无法正常运行。本文将介绍PHP开发过...
    99+
    2023-09-18
    php 开发语言
  • 常见的CDN配置错误怎么解决
    DNS解析错误:确保CDN配置中的域名正确解析到CDN服务商提供的IP地址。检查DNS记录是否正确配置,如果有问题,可以尝试重新...
    99+
    2024-04-24
    CDN
  • Golang中常见错误及解决方法详解
    Golang中常见错误及解决方法详解 写Go语言程序时,常常会遇到一些错误,如果不及时发现和解决,会影响程序的执行流程和结果。本文将介绍一些在Golang中比较常见的错误,同时给出具体...
    99+
    2024-02-28
    错误处理 解决方法 golang错误 go语言 编译错误
  • 常见的HTTP403错误原因及解决方法
    HTTP403错误:了解常见的禁止访问问题及解决方案 引言:在互联网上,我们经常会遇到各种错误代码。其中,HTTP403错误是一种常见的错误,它通常表示用户没有权限访问所请求的资源。本...
    99+
    2024-02-24
    解决方案 http 禁止访问
  • tomcat常见错误及解决方法有哪些
    在使用Tomcat时,常见的错误及解决方法包括:1. 端口占用错误:Tomcat默认使用8080端口,如果该端口被其他程序占用,则会...
    99+
    2023-09-13
    tomcat
  • 常见的JavaScript内存错误及解决方法
    目录1.计时器的监听2.事件监听3.Observers4. Window Object5. 持有DOM引用前言: JavaScript 不提供任何内存管理操作。相反,内存由 Java...
    99+
    2024-04-02
  • C++ 函数内存分配的常见错误及其解决方法
    函数内存分配的常见错误包括:1) 裸指针悬垂;2) 内存泄漏;3) 野指针;4) 释放无效指针。解决方法:1) 使用智能指针;2) 使用raii;3) 使用内存池。 C++ 函数内存分...
    99+
    2024-04-22
    c++ 内存分配 作用域 内存占用
  • VMWare网络配置的常见报错及其解决方法
    VMWare网络配置的常见报错及其解决方法 文章目录 网络配置1. 首先查看我们电脑的IP地址.2. 编辑网络编辑器3. 修改本地电脑的VMnet8的IP4. 更改虚拟机网卡设置 网络设置的常见错误及解决...
    99+
    2023-08-23
    网络 服务器 linux
  • PHP方法调用的常见错误及解决方法
    PHP方法调用的常见错误及解决方法 在PHP开发中,方法调用是一个非常常见的操作。然而,由于开发人员可能会犯一些常见的错误,导致程序出现问题。本文将介绍一些常见的方法调用错误以及相应的...
    99+
    2024-02-29
    错误 方法 php 作用域
  • 常见的Golang注释错误及其解决方法
    Golang中常见注释错误及解决方法 引言:在编程过程中,注释是非常重要的一部分,它可以提供对代码逻辑的解释、功能的说明以及协作开发时的沟通等作用。然而,即使是注释这样简单的东西,也可能会出现一些错误。本文将...
    99+
    2024-01-29
  • Python HTTP请求的常见错误及解决方法
    错误 404:未找到资源 错误 404 是最常见的HTTP错误之一,表示服务器无法找到请求的资源。这可能是由于以下原因造成的: 请求的URL不正确。 请求的资源已被删除或移动。 服务器配置错误。 要解决此错误,您需要检查请求的U...
    99+
    2024-02-23
    Python HTTP请求 错误 解决方法
  • YOLOV5配置至运行(本人亲装遇见常见的错误及解决方案)
    现在是2023年3月26日,由于最近有个比赛需要用到yolov5但是本人从前从未接触此方面知识,想着先给他跑起来再说。于是本人亲自装在自己电脑上,准备跑一下,并且和大家一样踩了很多坑,搜了很多资料,安...
    99+
    2023-10-25
    python 深度学习 pytorch
  • Ubuntu常见问题及解决办法
        在刚开始使用Ubuntu系统时,总会遇到各种各样的小问题,这里整理了一些遇到的问题及解决办法,不断更新中!!! 目录 一、创建文件夹权限不够 1.1 问题描述  1.2 解决办法 二、Command 'vim' not foun...
    99+
    2023-09-24
    ubuntu linux 服务器
  • 关于react中的常见错误及解决
    目录最近在做react项目的时候遇到了几个报错,这几个报错在react项目还算常见,因此记录下来解决方法。 ’type’ is missing in prop...
    99+
    2024-04-02
  • Golang中除法操作的常见错误及解决方法
    Golang中除法操作的常见错误及解决方法 在Golang中,除法操作是我们在日常编程中经常会遇到的运算之一。然而,有时候在进行除法操作的过程中,我们可能会遇到一些常见的错误,这些错误...
    99+
    2024-02-22
    错误 golang 除法
  • PHP中常见的错误类型解析及解决方法
    《PHP中常见的错误类型解析及解决方法》 PHP作为一种广泛应用的服务器端脚本语言,常常会遇到各种错误。在开发过程中,遇到错误是不可避免的,了解这些错误的类型、原因以及解决方法对于开发...
    99+
    2024-04-02
  • 常见的 Python 错误及其解决方案
    此文整理了一些常见的 Python 错误及其解决方案。 1、SyntaxError: invalid syntax 说明:无效的语法是最常见的错误之一,通常是由于编写代码时违反了 Python 的语...
    99+
    2023-08-31
    python 开发语言
  • Go语言函数的常见错误及解决方法
    标题:Go语言函数的常见错误及解决方法 Go语言作为一种简洁高效的编程语言,函数是其重要的组成部分。在编写函数时,不可避免地会遇到一些常见的错误,本文将介绍一些常见的函数错误以及它们的...
    99+
    2024-03-10
    返回值错误 参数错误 空指针异常 go语言 string类
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作