首页 > 系统相关 >Linux下配置Dovecot常见错误及解决办法

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

时间:2023-03-03 20:58:22浏览次数:44  
标签:解决办法 doveconf Linux auth etc Error conf dovecot Dovecot

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

[email protected]:~# /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
[email protected]:~# service dovecot restart
stop: Unknown instance: 
dovecot stop/waiting
[email protected]:~# /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
[email protected]:~# 

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)

[email protected]:~# 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([email protected]): Error: user [email protected]: 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([email protected]): 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([email protected]): 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

标签:解决办法,doveconf,Linux,auth,etc,Error,conf,dovecot,Dovecot
From: https://www.cnblogs.com/2023chatgpt/p/17176924.html

相关文章

  • 常用Linux shell命令汇总,总有一条你需要
    对于经常使用linux系统的博主来说,基本常用的shell命令是少不了的,总结一下,哪天不会了,可以来翻看下O(∩_∩)O。对你有用记得收藏哦!欢迎补充!1.检查远程端口是否对bash开放:......
  • vscode连接远程linux服务器免输密码
    在VScode中安装Remote-ssh插件连接到远程服务器1、打开本地cmd,输入以下命令生成密钥id_rsa.pub,一直回车,默认生成到C:\Users\jae.sshssh-keygen-trsa2、打开远程服务......
  • linux最小化安装后添加图形界面
    linux支持图形界面,如果装成了最小化系统该怎样添加图形界面呢?首先要知道的是,要想从最小化安装到图形界面绝对要装很多包,我们不可能一个包一个包的去装,大多数小伙伴应该也记......
  • linux最小化安装后添加图形界面
    linux支持图形界面,如果装成了最小化系统该怎样添加图形界面呢?首先要知道的是,要想从最小化安装到图形界面绝对要装很多包,我们不可能一个包一个包的去装,大多数小伙伴应该也记......
  • AttributeError: module 'openai' has no attribute 'ChatCompletion'的解决办法
    原因openai库版本过旧解决办法(二选一)pipinstall-Uopenai下载安装包放入你的项目根目录下,改名格式zip为whl(即:openai-0.27.0-py3-none-any.zip→openai-0.27.0-py3-......
  • linux安装nginx1.18
    1.安装依赖包sudoyum-yinstallgcczlibzlib-develpcre-developensslopenssl-devel2.下载并解压安装包cd/usr/local//下载tar包sudowgethttp://nginx.org......
  • Linux- 环境变量
                ......
  • linux防火墙管理
    安装systemctl:yuminstalliptables-services设置开机启动systemctlenableiptables.service如果报错:FailedtostartIPv4firewallwithiptables.因为centos7默认......
  • 【mysql】Linux下定时备份数据shell脚本
    mysql_full_bak.sh#!/bin/bash#全量备份(建议一周一次)#时间参数DATE=$(date+%Y-%m-%d)DATETIME=$(date+%Y%m%d%H%M%S)#数据库的地址HOST=localhost#数据库的......
  • linux上文件复制的python代码实现3.py
    每次都需要打开代码修改要复制的文件路径台麻烦,所以改用位置参数#文件的复制3.pyimportsysdefcopy(source,destination): file_read1=open(source,mode="rb") file_......