Dovecot stopped working… the error on restart was:
Starting Dovecot Imap: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: Missing '}' (section started at /etc/dovecot/dovecot.conf:183)
This error was a missing closing bracket:
local_name somedomain.co.uk {
ssl_cert = </home/somedomain/ssl.combined
ssl_key = </home/somedomain/ssl.key
I added the closing bracket in manually, restarted Dovecot and it works:
local_name somedomain.co.uk {
ssl_cert = </home/somedomain/ssl.combined
ssl_key = </home/somedomain/ssl.key
}
BUT… the error occurred again, the bracket was removed and Dovecot stopped.
Why would Dovecot have this mistake and what is re-creating it so I can permanently fix?
It started happening shortly after running a yum update on Monday 27th July 2020.
There’s a thread about this:
I have had dovecot crashing frequently due to two causes.
One: I find that dovecot has crashed, and the error is a random missing curly bracket on one of the virtual server configs. I had not touched the config anytime this has happened. I thought it was happening when a letsencrypt cert was renewed, but it has also happened when there was no renewal. I edit the config where the ending curly bracket has randomly disappeared and put it back in, and the problem is fixed, until the next time it…
It’s related to the SSL updates. I’ve taken to checking dovecot.conf while having my coffee every morning. I’m even thinking about making it immutable for the time being until whatever buggy code is causing the problem is fixed.
Richard
Thanks for posting that link! Will monitor it.
Ilia
July 31, 2020, 11:46am
4
This issue must be fixed in Virtualmin 6.11!
Is this the update?
wbm-virtual-server-6.11.gpl-1.noarch.rpm
The 6.11 update didn’t quite do it, unfortunately.
As of yesterday, Jamie and Ilia were working on a patch. I applied it and it seemed to work, but I think it was more for diagnostic purposes than final code.
CentOS Linux 7.8.2003
Webmin 1.954
Usermin 1.803
Virtualmin 6.11
Authentic theme 19.53-2
I’m conscious that I might be repeating existing posts and I know there has been some work done on this, thought I would give my feedback having applied the latest updates and in case anything still needs to be sorted.
Updated to the above versions last night - because there was also a certbot update I then did an SSL renew to make sure all was working.
Checked my email client this morning - it seem…
It also seems that duplicate entries or *.ca entries in dovecot.conf
are contributing to the errors. Manually tidying up that file may be a stopgap.
Richard
toli
August 4, 2020, 11:09am
7
After latest updates issue still exist. Debian 9 Virtualmin 6.11.
Maybe restart of dovecot or certbot is needed?
synio
August 8, 2020, 9:59am
8
I’m also having this problem om 2 different servers. Fully updated systems. It is very annoying. Hopefully it can be fixed quickly.
system
Closed
September 7, 2020, 9:59am
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.