Doveconf fatal error in configuration file

Resolution of an error in the Dovecot configuration file regarding the unknown protocol sieve is explained.

1.0 Error:

While configuring the Dovecot Mail Delivery Agent, the Dovecot server would not start and the following error messages were printed.

$ sudo systemctl start dovecot
Job for dovecot.service failed because the control process exited with error code. See "systemctl status dovecot.service" and "journalctl -xe" for details.
$ systemctl status dovecot.service
● dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2018-02-05 04:25:20 UTC; 39s ago
     Docs: man:dovecot(1)
           http://wiki2.dovecot.org/
  Process: 3983 ExecStart=/usr/sbin/dovecot (code=exited, status=89)
$ sudo journalctl -xe
...
Feb 05 04:25:20 Example systemd[1]: Starting Dovecot IMAP/POP3 email server...
-- Subject: Unit dovecot.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit dovecot.service has begun starting up.
Feb 05 04:25:20 Example dovecot[3983]: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
Feb 05 04:25:20 Example dovecot[3983]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: protocols: Unknown protocol: si
Feb 05 04:25:20 Example systemd[1]: dovecot.service: Control process exited, code=exited status=89
Feb 05 04:25:20 Example systemd[1]: Failed to start Dovecot IMAP/POP3 email server. 
-- Subject: Unit dovecot.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit dovecot.service has failed.
-- 
-- The result is failed.
Feb 05 04:25:20 Example systemd[1]: dovecot.service: Unit entered failed state.
Feb 05 04:25:20 Example systemd[1]: dovecot.service: Failed with result 'exit-code'.

The syslog had following messages.

...
Feb  5 04:25:20 Example dovecot[3983]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: protocols: Unknown protocol: sieve
Feb  5 04:25:20 Example systemd[1]: dovecot.service: Control process exited, code=exited status=89
Feb  5 04:25:20 Example systemd[1]: Failed to start Dovecot IMAP/POP3 email server. 
Feb  5 04:25:20 Example systemd[1]: dovecot.service: Unit entered failed state.
Feb  5 04:25:20 Example systemd[1]: dovecot.service: Failed with result 'exit-code'.

2.0 Solution

The problem was resolved by installing the dovecot-sieve and dovecot-managesieved packages.

$ sudo apt-get install dovecot-sieve dovecot-managesieved

I’ve been trying to get Postfix and Dovecot set up for days and I think I have resolved all problems except for one that just came up. When I try to restart Dovecot I get the following error message:

doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: ssl enabled, but  
ssl_cert not set
[....] Restarting IMAP/POP3 mail server: dovecotdoveconf: Fatal: Error in configuration 
file /etc/dovecot/dovecot.conf: ssl enabled, but ssl_cert not set

When I check dovecot.conf, there is nothing regarding ssl so I assume the error is referencing the settings in 10-ssl.conf. I noticed that the settings are commented out:

# ssl = no
# ssl_cert = </etc/ssl/dovecot.pem
# ssl_key = </etc/ssl/private/dovecot.pem

I know these were uncommented earlier but if I uncomment now, I get a different error at startup about unexpected value ssl in 10-ssl.conf. From the Dovecot wiki this value must be set even if it is overwritten by a specific protocol elsewhere.

If I leave the ssl values commented out I get the first error message about ssl being enabled but not set.

Earlier I had created a self-signed certificate using OpenSSL and was not receiving any error messages about ssl not being configured. In fact, I was able to login to pops from another client machine and it gave the usual warning about the certificate being untrusted.
I did notice however that the cert referenced an incorrect hostname and this was caused earlier after I rebuilt my VPS and foolishly installed and configured Dovecot with incorrect hostname being set.

Well I purged all files and reinstalled. I have again deleted all keys and regenerated with OpenSSL a couple times but now I cannot even start Dovecot because of this error. I’m stuck and was wondering how I should approach this. Is it possible that something in Postfix referencing Dovecot is causing this?

Some sites say to check your syntax such as ssl_cert = </etc vs ssl_cert = /etc but this has not made a difference. I would also be happy to just temporarily disable ssl to get around the error, but that fails as well.

Just now I tried to create a symbolic link to the prebuilt keys in /etc/dovecot and /etc/dovecot.pem but I get the same message.

Skip to forum content

iRedMail

Works on CentOS, Rocky, Debian, Ubuntu, FreeBSD, OpenBSD

You are not logged in. Please login or register.

Sep 30, 2022: iRedMail-1.6.2 has been released.



  • Spider Email Archiver: Lightweight on-premises email archiving software, developed by iRedMail team.
  • Join our Telegram group (@iredmail_chat) to get help from other iRedMail users.

[ Closed ] doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf

iRedMail → iRedMail Support → doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf

Pages 1

You must login or register to post a reply

1 2018-08-21 14:20:54

  • arvindh
  • Member
  • Offline
  • Registered: 2013-03-24
  • Posts: 12

Topic: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
— iRedMail version (check /etc/iredmail-release):
— Linux/BSD distribution name and version:
— Store mail accounts in which backend (LDAP/MySQL/PGSQL):
— Web server (Apache or Nginx):
— Manage mail accounts with iRedAdmin-Pro?
— [IMPORTANT] Related original log or error message is required if you’re experiencing an issue.
====

Yesterday I issued new letsencrypt certificate to our server. However the SSL was working mail server is not working.

When checked dovecot was not loaded & the following is the log

doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 50: ssl_key: Can’t open file /etc/pki/tls/private/server.key: No such file or directory

But server.key is existed in this folder. I tried pointing to different certificate. The dovecot starts but still SSL error comes up. Is there a way I can recreate server.key or how to fix this?

Attached is the screenshot of SSL folder . Apart from SSL install we didnt changed anything.

—-

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

2 Reply by ZhangHuangbin 2018-08-21 20:49:00

  • ZhangHuangbin
  • ZhangHuangbin
  • iRedMail Developers
  • Offline
  • Registered: 2009-05-06
  • Posts: 30,080

Re: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf

Make sure directory /etc/letsencrypt/live/ and archive/ is accessible by other system users, default is 0700.

Posts: 2

Pages 1

You must login or register to post a reply

iRedMail → iRedMail Support → doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf

Generated in 0.008 seconds (72% PHP — 28% DB) with 9 queries


0

1

Изначально была проблема с конфигом в dovecot.conf.

Делал вот по этому мануалу+официальной вики.

http://workaround.org/ispmail/squeeze/setting-up-dovecot

В самом гайде редактирование конфига идет централизованно в файле dovecot.conf. А у меня в этом же файле не было тех параметров, которые были указаны в мануале. Эти параметры были разбросаны по разным конф. файлам в каталоге conf.d+половину я не смог найти.

Пролистав поиск решил воспользоваться этим ключом, который выгружает все конфиги в этот файл.

dovecot -n > /etc/dovecot/dovecot.conf

довекот ругнулся, (что-то про ssl/tsl, типа он включен, но не выставлен)

После чего в файле dovecot.conf исчезло вообще все, кроме двух строчек.

Я решил выпилить руками каталог /etc/dovecot и реинсталлить dovecot.

В итоге при новой установке создаются только два конф. файла, а основной dovecot.conf, по-прежнему, пустой.

Собственно, вопрос. ЧЯДНТ? Как вернуть все взад и как сделать централизованное управление, как в гайде выше?

п.с. с линуксом работаю впервые.

Hello I try to follow this Postfix/Dovecot tutorial series:

When I run dovecot:

sudo service dovecot restart
sudo service dovecot status

I get: Active: failed

Unlike postfix who is active normally.

I tried: dovecot -F to see what has failed. (suggested in: https://stackoverflow.com/questions/8319151/how-to-start-dovecot)

And it said:

doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf
line 12: ssl_cert: can't open file /etc/dovecot/private/dovecot.pem: Permission denied

I tried to look at the permissions on this file:

sudo ls -l /etc/dovecot/private/dovecot/pem

And got:

lrwxrwxrwx 1 root root 36 nov. 21 14:04 /etc/dovecot/private/dovecot.pem -> /etc/ssl/certs/ssl-cert-snakeoil.pem

I tried to change those permissions:

sudo chmod -R 700 /etc/dovecot/private/

But it hasn’t worked out.

I tried to check if I missed a curly braces while making changes in configurations files.
And so far I haven’t found anything wrong.

Any ideas why it’s not working?

Thanks for you help!

  • #1

I am getting this error:

Code:

doveconf: Fatal: Error in configuration file /main/local/etc/dovecot/dovecot.conf line 1121: Unknown setting: socket
doveconf: Error: managesieve-login: dump-capability process returned 89
doveconf: Fatal: Error in configuration file /main/local/etc/dovecot/dovecot.conf line 1121: Unknown setting: socket

It’s referring to :

Code:

   socket listen {
    master {
      # Master socket provides access to userdb information. It's typically
      # used to give Dovecot's local delivery agent access to userdb so it
      # can find mailbox locations.
      path = /start/run/dovecot/auth-master
      mode = 0600
      # Default user/group is the one who started dovecot-auth (root)
      #user = 
      #group = 
    }
    client {
      # The client socket is generally safe to export to everyone. Typical use
      # is to export it to your SMTP server so it can do SMTP AUTH lookups
      # using it.
      path = /start/run/dovecot/auth-client
      #path = /start/run/dovecot/auth-master
      mode = 0660
      #mode = 0600
      user = postfix
      group = postfix
    }
  }

I don’t know what is wrong with this?

  • #2

Did you upgrade Dovecot recently? Then make sure that it still uses the right configuration files.

I only noticed this during an emergency server update (so didn’t have time to deeper look into it) but after upgrading both Postfix and Dovecot I also suddenly started noticing weird errors; both environments wouldn’t restart at all. As it turned out all my configuration files (

main.cf

,

master.cf

and

dovecot.conf

respectively) were reset to default. Or put differently; got overwritten by the factory versions.

As said I was short on time so I didn’t look into this matter any further; I assumed something occurred during the upgrade, but lacked the time to do further testing. Even so; is it possible that this has also happened at your end?

  • Thread Starter

  • #3

ShelLuser said:

Did you upgrade Dovecot recently? Then make sure that it still uses the right configuration files.

I only noticed this during an emergency server update (so didn’t have time to deeper look into it) but after upgrading both Postfix and Dovecot I also suddenly started noticing weird errors; both environments wouldn’t restart at all. As it turned out all my configuration files (

main.cf

,

master.cf

and

dovecot.conf

respectively) were reset to default. Or put differently; got overwritten by the factory versions.

As said I was short on time so I didn’t look into this matter any further; I assumed something occurred during the upgrade, but lacked the time to do further testing. Even so; is it possible that this has also happened at your end?

Well, I upgraded my FreeBSD 8.1 system to FreeBSD 8.4. I then was promoted for upgrades for software packages. This included the Postfix and Dovecot. My Postfix config seems to be working properly. I can receive e-mails. I am having most of the problems with Dovecot 2.2.10 I upgraded to that version. Ever since I gotten weird errors. I changed the config settings a bit and did get the Dovecot to start running. However, it never ran properly… when I try sending out an e-mail I would get the error message of failure to relay the e-mail.

Right now I fiddled with the config settings… I looked up on the internet and found out my config file is messed up.
For instance at

Service Auth { }

the brackets the ending part was way past my

socket listen [ }

So, I looked at a config file example and changed the brackets and this is where I get this error now. I can’t start the server back up. I double checked to see if

socket listen

is a possible setting and verified that it is.

What my Dovecot was originally configured was by following this: http://www.purplehat.org/?page_id=7
That is my original configuration. However, after upgrading Dovecot it detected that I have an old outdated config file that is using settings that are no longer supported or where changed to something different. So, it automatically upgraded the config file to the corrected settings.

what would be the directory where I can see example config files?

outofcontrol


  • #1

This morning our server refuses to start Dovecot and Exim showing in Server Status that Exim is in pending state, IMAP (2.3), lmtp and POP (2.3) are down. Attempting to restart Exim appears successful, but Server Status still shows pending.

When attempting to restart IMAP Service we get these errors:

Code:

Reference found where even-sized list expected at /usr/local/cpanel/Cpanel/ServiceManager/Base.pm line 972. Waiting for “dovecot” to start ………Waiting for authProg,authdaemond,imapd,pop3,couriertls,couriertcpd,imap-login,pop3-login,dovecot/lmtp,dovecot,dovecot-auth,dovecot-wrap to shutdown ... not running. ………failed.

Cpanel::Exception::Services::StartError Service Status
undefined status from Cpanel::ServiceManager::Services::Dovecot

Service Error
(XID njyw8p) The “dovecot” service failed to start.

Startup Log
Nov 09 07:42:56 our.server.com systemd[1]: Started Dovecot Imap Server.
Nov 09 07:42:56 our.server.com dovecot[23211]: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf
Nov 09 07:42:56 our.server.com dovecot[23211]: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:94: ssl_protocols has been replaced by ssl_min_protocol
Nov 09 07:42:56 our.server.com dovecot[23211]: doveconf: Error: Could not find a minimum ssl_min_protocol setting from ssl_protocols = !SSLv2 !SSLv3: Unrecognized protocol 'SSLv2'
Nov 09 07:42:56 our.server.com dovecot[23211]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 392: Time interval '30' is missing units (add e.g. 's' for seconds)
Nov 09 07:42:56 our.server.com systemd[1]: dovecot.service: main process exited, code=exited, status=89/n/a
Nov 09 07:42:56 our.server.com systemd[1]: Unit dovecot.service entered failed state.
Nov 09 07:42:56 our.server.com systemd[1]: dovecot.service failed.

Log Messages
Nov 9 07:42:56 ourservercom dovecot: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 392: Time interval '30' is missing units (add e.g. 's' for seconds)
Nov 9 07:42:56 ourservercom dovecot: doveconf: Error: Could not find a minimum ssl_min_protocol setting from ssl_protocols = !SSLv2 !SSLv3: Unrecognized protocol 'SSLv2'

Comparing the Dovecot to a slightly older cpanel server reveals the Dovecot config files are very different. We have tried resaving the IMAP configuration from cpanel and have tried editing the config file manually to resolve the issues, with no progress made.

Is it possible the upgrade to v100.0.2 of cpanel was not successful?


Edit to add Exim details. After a lengthy delay, Exim finally sends out a failed message with this:

Code:

TCP Transaction Log: 
<< 220-our.server.com ESMTP Exim 4.94.2 #2 Tue, 09 Nov 2021 07:52:58 -0800 
<< 220-We do not authorize the use of this system to transport unsolicited, 
<< 220 and/or bulk e-mail.
>> EHLO localhost
<< 250-our.server.com Hello localhost [127.0.0.1]
<< 250-SIZE 52428800
<< 250-8BITMIME
<< 250-PIPELINING
<< 250-PIPE_CONNECT
<< 250-AUTH PLAIN LOGIN
<< 250-STARTTLS
<< 250 HELP
>> AUTH PLAIN <token-removed>
<< 435 Unable to authenticate at present
exim: ** [435 Unable to authenticate at present != 2]
: Died

Any suggested course of action?

  • #2

Looks like this is the primary issue:

Nov 09 07:42:56 our.server.com dovecot[23211]: doveconf: Error: Could not find a minimum ssl_min_protocol setting from ssl_protocols = !SSLv2 !SSLv3: Unrecognized protocol ‘SSLv2’
Nov 09 07:42:56 our.server.com dovecot[23211]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 392: Time interval ’30’ is missing units (add e.g. ‘s’ for seconds)
Nov 09 07:42:56 our.server.com systemd[1]: dovecot.service: main process exited, code=exited, status=89/n/a

Instead of editing the file manually can you do this from WHM under Mailserver configuration? and apply the settings from there.

cPanelAnthony


  • #3

Thanks for your assist, Andrew!

  • #4

I just had the same error too. On closer inspection, it looks like /scripts/builddovecotconf is generating a config from the /var/cpanel/templates/dovecot2.2/ templates rather than 2.3, so the resulting configuration was invalid for dovecot.

I’ve restored dovecot.conf from backup, but really hope that this won’t happen again the next time the configuration is rebuilt!

cPanelAnthony


  • #5

I just had the same error too. On closer inspection, it looks like /scripts/builddovecotconf is generating a config from the /var/cpanel/templates/dovecot2.2/ templates rather than 2.3, so the resulting configuration was invalid for dovecot.

I’ve restored dovecot.conf from backup, but really hope that this won’t happen again the next time the configuration is rebuilt!

Can you confirm which operating system and cPanel version this is on?

  • #6

Can you confirm which operating system and cPanel version this is on?

Thanks cPanelAnthony! It is running CentOS v7.9.2009 virtuozzo, v100.0.3. I also opened support request #94384356.

Your colleague in cPanel support has identified the root cause — for some reason /var/cpanel/conf/dovecot/main and /var/cpanel/conf/dovecot/main.cache contained this attribute:

_use_target_version: '2.2'

This should be changed to 2.3, or perhaps removed entirely. Rebuilding the config will then use the correct templates. It’s not at all clear why this suddenly became a problem today though, since the main file hadn’t been changed for many years.

Last edited: Nov 16, 2021

cPanelAnthony


  • #7

Thank you for this update! It’s very useful to have this information.

Модератор: xM

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.

Аватара пользователя

Graf

сержант
Сообщения: 205
Зарегистрирован: 2008-10-29 18:44:32
Контактная информация:

Dovecot — ошибка при старте

Приветствую!

При старте dovecot жалуется на все вхождения во всех конфигах:

Код: Выделить всё

doveconf: Fatal: Error in configuration file ........: Unknown setting: mail_plugins

для примера кусок из 20-lmtp.conf:

Код: Выделить всё

protocol lmtp {
   mail_plugins = $mail_plugins quota
}

С dovecot впервой столкнулся. Вроде, переменная глобальная, а где обозначена не найду.
За ранее, спасибо.

Отправлено спустя 38 минут 18 секунд:
Да, забыл:


Хостинговая компания Host-Food.ru

Хостинг HostFood.ru

 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/


Аватара пользователя

xM

ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

xM » 2016-05-13 12:31:58

А у вас mail_plugins прописана выше цитируемого места в конфиге?


Аватара пользователя

Graf

сержант
Сообщения: 205
Зарегистрирован: 2008-10-29 18:44:32
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

Graf » 2016-05-13 13:06:17

xM писал(а):А у вас mail_plugins прописана выше цитируемого места в конфиге?

Нет, ибо во всех статьях, что я читал, ни где mail_plugins не прописывался. И на самой вики писано:

The mail_plugins setting lists all plugins that Dovecot is supposed to load from the mail_plugin_dir directory at program start.

Плюс ко всему, в каком-то из конфигов, было писано, что в качестве параметров нужно писать список плагинов разделенные пробелом, иначе по умолчанию будет использоваться глобальные параметры (как-то так). Т.е., как я понял, переменная mail_plugins является глобальной и где-то прописана с параметрами по умолчанию, но где — не нашёл. Тем не менее, добавление в dovecot.conf строки mail_plugins = quota
ошибку не исправило :(
Или я вообще всё не правильно понял? :)


Аватара пользователя

Alex Keda

стреляли…
Сообщения: 35413
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

Alex Keda » 2016-05-13 14:27:35

Закомментить и забыть ;)

Убей их всех! Бог потом рассортирует…


Аватара пользователя

xM

ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

xM » 2016-05-13 15:03:09

Graf писал(а): mail_plugins = quota

Пропишите эту глобальную переменную в начале конфига, а в protocol lmtp эту строку удалите.
Тогда она будет действовать глобально.
Если же это вам не нужно, скорректируйте ваш фрагмент до

Отправлено спустя 10 минут 45 секунд:

Graf писал(а): is supposed to load

Это не значит, что он их сам ищет, это значит что вы должны ему перечислить то, что предполагаете загрузить.


Аватара пользователя

Graf

сержант
Сообщения: 205
Зарегистрирован: 2008-10-29 18:44:32
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

Graf » 2016-05-13 15:05:19

xM писал(а): Пропишите эту глобальную переменную в начале конфига, а в protocol lmtp эту строку удалите.

для чистоты эксперимента файл 20-lmtp.conf состоит из одной строки mail_plugins = quota, результат:

Код: Выделить всё

doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/20-lmtp.conf line 1: Unknown setting: mail_plugins

Отправлено спустя 1 минуту 16 секунд:

Alex Keda писал(а): Закомментить и забыть ;)

это конечно же выход, а как юзать плагины иначе? :)


Аватара пользователя

xM

ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

xM » 2016-05-13 15:19:20

Что выдаёт то? ;-)
Для FreeBSD должно быть


Аватара пользователя

Graf

сержант
Сообщения: 205
Зарегистрирован: 2008-10-29 18:44:32
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

Graf » 2016-05-13 15:57:36

xM писал(а): Что выдаёт то? ;-)

Код: Выделить всё

# doveconf | grep '(mail_plugin_dir|mail_plugins)'
mail_plugin_dir = /usr/lib64/dovecot
mail_plugins = 

Код: Выделить всё

# ls -l /usr/lib64/dovecot/
итого 4032
drwxr-xr-x 2 root root    4096 май 12 18:51 auth
drwxr-xr-x 2 root root    4096 май 12 18:51 dict
drwxr-xr-x 2 root root    4096 май 12 18:52 doveadm
-rw-r--r-- 1 root root     960 май 12 18:51 dovecot-config
-rwxr-xr-x 1 root root     978 май 12 18:51 lib01_acl_plugin.la
-rwxr-xr-x 1 root root   83416 май 12 18:51 lib01_acl_plugin.so
-rwxr-xr-x 1 root root    1047 май 12 18:52 lib02_imap_acl_plugin.la
-rwxr-xr-x 1 root root   17368 май 12 18:52 lib02_imap_acl_plugin.so
-rwxr-xr-x 1 root root    1032 май 12 18:52 lib02_lazy_expunge_plugin.la
-rwxr-xr-x 1 root root   15264 май 12 18:52 lib02_lazy_expunge_plugin.so
...
...

причем список параметров вывел только после удаления каталога conf.d и комент его инклуды в dovecot.conf.
как только вписываю в dovecot.conf строку mail_plugins = qouta, то:

Код: Выделить всё

# doveconf | grep '(mail_plugin_dir|mail_plugins)'
mail_plugin_dir = /usr/lib64/dovecot
mail_plugins = qouta

как только включаю conf.d

Код: Выделить всё

# doveconf | grep '(mail_plugin_dir|mail_plugins)'
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/20-lmtp.conf line 1: Unknown setting: mail_plugins

ни-и-ичё не понимаю! (с) «Следствие ведут колобки»


Аватара пользователя

xM

ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

xM » 2016-05-13 16:02:08

Ну так нет у вас там quota plugin, как же Dovecot ее вызовет?
Разбирайтесь с установленным пакетом что у вас там и почему.
Или вы список порезали просто?
Что-то вроде там есть?

Код: Выделить всё

-rw-r--r--  1 root  wheel   115284 27 апр 12:52 lib10_quota_plugin.a
-rwxr-xr-x  1 root  wheel    74848 27 апр 12:52 lib10_quota_plugin.so*


Аватара пользователя

Graf

сержант
Сообщения: 205
Зарегистрирован: 2008-10-29 18:44:32
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

Graf » 2016-05-13 16:08:51

xM писал(а): Ну так нет у вас там quota plugin, как же Dovecot ее вызовет?

есть :)

Код: Выделить всё

# ls -l /usr/lib64/dovecot/ | grep quota
-rwxr-xr-x 1 root root     990 май 12 18:52 lib10_quota_plugin.la
-rwxr-xr-x 1 root root   78696 май 12 18:52 lib10_quota_plugin.so
-rwxr-xr-x 1 root root    1061 май 12 18:52 lib11_imap_quota_plugin.la
-rwxr-xr-x 1 root root   11584 май 12 18:52 lib11_imap_quota_plugin.so
-rwxr-xr-x 1 root root    1026 май 12 18:52 lib20_quota_clone_plugin.la
-rwxr-xr-x 1 root root    8992 май 12 18:52 lib20_quota_clone_plugin.so

просто я не весь список запостил, а просто показал, что данный каталог существует и там плагины есть :)


Аватара пользователя

xM

ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

xM » 2016-05-13 16:14:33

Дебажить попробовать тогда — авось что покажет.


Аватара пользователя

Graf

сержант
Сообщения: 205
Зарегистрирован: 2008-10-29 18:44:32
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

Graf » 2016-05-13 16:17:59

xM писал(а): Дебажить попробовать тогда — авось что покажет.

А как? Он ж не запускается, пока в конфигах ошибка.

Код: Выделить всё

# dovecot -F
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/20-lmtp.conf line 1: Unknown setting: mail_plugins


Аватара пользователя

xM

ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

xM » 2016-05-13 16:27:06

Graf писал(а): А как? Он ж не запускается, пока в конфигах ошибка.

Ах, ну да, точно. Тогда думайте что там у вас в пингвиньем царстве неладно. :-)


Аватара пользователя

Graf

сержант
Сообщения: 205
Зарегистрирован: 2008-10-29 18:44:32
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

Graf » 2016-05-13 16:30:15

xM писал(а): Ах, ну да, точно. Тогда думайте что там у вас в пингвиньем царстве неладно. :-)

Спасибо за участие! :)
Катаю письмо разработчикам, может снизойдут…


Аватара пользователя

xM

ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

xM » 2016-05-13 16:32:09

В список рассылки лучше. Тимо отвечает обычно.


FiL

ст. лейтенант
Сообщения: 1374
Зарегистрирован: 2010-02-05 0:21:40

Dovecot — ошибка при старте

Непрочитанное сообщение

FiL » 2016-05-13 19:22:40

A что говорит
dovecot —version
и
dovecot —build-options


Аватара пользователя

Graf

сержант
Сообщения: 205
Зарегистрирован: 2008-10-29 18:44:32
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

Graf » 2016-05-13 19:29:10

FiL писал(а):A что говорит
dovecot —version
и
dovecot —build-options

Код: Выделить всё

# dovecot --version
2.2.24 (a82c823)

# dovecot --build-options
Build options: ioloop=epoll notify=inotify ipv6 openssl io_block_size=8192
Mail storages: shared mdbox sdbox maildir mbox cydir imapc pop3c raw fail
SQL drivers: mysql sqlite
Passdb: checkpassword ldap passwd passwd-file shadow sql
Userdb: checkpassword ldap nss passwd prefetch passwd-file sql


Аватара пользователя

xM

ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

xM » 2016-05-13 19:35:27

На всякий случай вы ещё раз попробуйте, но слово quota напишите правильно. :roll:


Аватара пользователя

Graf

сержант
Сообщения: 205
Зарегистрирован: 2008-10-29 18:44:32
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

Graf » 2016-05-13 20:01:04

xM писал(а): но слово quota напишите правильно

Ух, ты, очипятался %)
Но, «хрен редьки не слаще», не помогло :(

Отправлено спустя 19 минут 21 секунду:
Да, я ещё вот что заметил. Если вписывать все параметры прямиком в dovecot.conf без подключения conf.d, то жалоб нет

dovecot.conf писал(а):
protocol lmtp {
mail_plugins = quota
}
protocol imap {
mail_plugins = $mail_plugins acl quota
}
#!include conf.d/*.conf

Код: Выделить всё

# doveconf | grep '(mail_plugin_dir|mail_plugins)'
mail_plugin_dir = /usr/lib64/dovecot
mail_plugins = 
  mail_plugins = quota
  mail_plugins = " acl quota"

но как только подключаю conf.d, всё — Unknown setting: mail_plugins на все конфиги в каталоге conf.d, где есть mail_plugins
т.е. переменные (функции) в дополнительных конфигах не видятся (не понимаются) получается…8-[ ]


Аватара пользователя

xM

ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

xM » 2016-05-14 0:16:47

Graf писал(а): вписывать все параметры прямиком в dovecot.conf без подключения conf.d

И что мешает?
Очевидно, что у вас где-то в подключаемых модулях ошибки.


FiL

ст. лейтенант
Сообщения: 1374
Зарегистрирован: 2010-02-05 0:21:40

Dovecot — ошибка при старте

Непрочитанное сообщение

FiL » 2016-05-14 16:40:06

Гы. Проверяйте скобки в первых инклюдах.


Аватара пользователя

Graf

сержант
Сообщения: 205
Зарегистрирован: 2008-10-29 18:44:32
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

Graf » 2016-05-16 11:49:35

FiL писал(а):Гы. Проверяйте скобки в первых инклюдах.

Думаю, со скобками все норм, оно бы тогда писало что-то типа такого:

Код: Выделить всё

doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-auth.conf line 129: Unexpected '}'

тем более я тестировал имея только один конфиг в /etc/dovecot/conf.d/ с одной строкой.

xM писал(а): И что мешает?

Наверное, в крайнем случае, так и сделаю. Запихну все в один. Да, главное не запутаться. :)

Написал в список рассылки, ждёмс…


Аватара пользователя

f_andrey

майор
Сообщения: 2651
Зарегистрирован: 2007-12-26 1:22:58
Откуда: СПб
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

f_andrey » 2016-05-16 12:02:57

Graf писал(а): Написал в список рассылки, ждёмс…

Ну раз нашли список рассылки, то прочли бы правили оформления сообщений об ошибках, а там ясно написано

Use dovecot -n output when showing your configuration


Аватара пользователя

xM

ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

xM » 2016-05-16 13:13:07

Graf писал(а): Наверное, в крайнем случае, так и сделаю. Запихну все в один. Да, главное не запутаться.

У меня относительно навороченный конфиг Dovecot 2 занимает 240 строк всего-то.
Запутаться там сложно, поскольку структура довольно таки спокойно читаема и понимаема.


Аватара пользователя

Graf

сержант
Сообщения: 205
Зарегистрирован: 2008-10-29 18:44:32
Контактная информация:

Dovecot — ошибка при старте

Непрочитанное сообщение

Graf » 2016-05-16 13:17:15

f_andrey писал(а): Ну раз нашли список рассылки, то прочли бы правили оформления сообщений об ошибках, а там ясно написано

Так в том-то и всё и дело, что не будет ничего работать и показываться пока есть ошибки в конфигах, по крайней мере, в моем случае.

Код: Выделить всё

# dovecot -n
# 2.2.24 (a82c823): /etc/dovecot/dovecot.conf
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/20-lmtp.conf line 2: Unknown setting: mail_plugins

Отправлено спустя 1 минуту 12 секунд:

xM писал(а): У меня относительно навороченный конфиг Dovecot 2 занимает 240 строк всего-то.

Спасибо, успокоил :)


Понравилась статья? Поделить с друзьями:
  • Doom 3 bfg edition ошибка opengl
  • Doom 3 bfg edition error during initialization как исправить
  • Doom 2016 ошибка при запуске 0xc000007b
  • Doom 2016 ошибка fatal error
  • Doom 2016 как изменить яркость