My Dovecot server keeps crashing. When I look at the status I get this error reported
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 395: Expecting ‘{’
Looking at the conf file, it seems the brackets are not balanced. After closing all open brackets, the dovecot is able to run. But I want to know why the conf is messed up like that? I have to fix the brackets everytime dovecot is updated, causing conf to get regenerated (with errors).
Here’s how it looks. It only happens with some entries. I’ve not changed the indentation as it might give you some clue.
I am sorry, I rushed to reply before reading your full message.
@Ilia has posted messages during the last week or so with info and a patch for permanently fixing the issue, would you browse the forums for these @Vipul.K?
Sorry about that. The solution is coming in Virtualmin 6.12. Meanwhile, if your Dovecot config has been manually fixed, run the following command as a shell script, to re-generate entries for all domains, which will not fail even with Virtualmin 6.11.
#!/bin/sh
doms=`virtualmin list-domains --name-only --no-alias`
for dom in $doms; do
virtualmin install-service-cert --domain $dom --remove-domain --service dovecot
virtualmin install-service-cert --domain $dom --add-domain --service dovecot
done