Dovecot fails to start after DirectAdmin upgrade to 1.60.x

elvinas

Verified User
Joined
Jun 11, 2018
Messages
7
Error message:
Code:
Updating dovecot configuration files...
ensuring ssl_dh for dovecot: /etc/dovecot/dh.pem
Restarting dovecot.
Shutting down dovecot: [FAILED]
Starting dovecot: doveconf: Fatal: Error in configuration file /etc/dovecot/conf/sni/DOMAIN.com.conf line 1: Expecting '{'
[FAILED]
Dovecot configuration files have been updated successfully.

The configuration file:
Code:
local_name DOMAIN.com www.DOMAIN.com {
  ssl_cert = </usr/local/directadmin/data/users/USER/domains/DOMAIN.com.cert.combined
  ssl_key = </usr/local/directadmin/data/users/USER/domains/DOMAIN.com.key
}

Some output for the context:
Code:
[root@live sni]# /usr/local/directadmin/directadmin o
Compiled on 'CentOS 6.0 64-Bit'
Compile time: Feb 27 2020 at 11:17:02
Timestamp: '1582827363'
Compiled with IPv6
gettext support: no

[root@live sni]# /usr/local/directadmin/directadmin v
Version: DirectAdmin v.1.60.4

[root@live custombuild]# ./build version
2.0.0 (rev: 2448)

[root@live custombuild]# ./build options
Nginx Unit: no
Apache: 2.4.41
mod_ruid2: no
ModSecurity: no
htscanner: no
Dovecot: 2.3.10
Dovecot configuration: yes
AWstats: no
Exim: 4.93.0.4
exim.conf update: yes, release 4.5
BlockCracking: no
Easy Spam Fighter: no
SpamAssassin: no
ClamAV: no
MariaDB: 10.2.31
MySQL backup: yes
MySQL backup directory: /usr/local/directadmin/custombuild/mysql_backups
MySQL compress backups: no
PHP (default): 5.6 as php-fpm
PHP (additional): 7.2 as php-fpm
PHP (additional, 3rd): 7.4 as php-fpm
phpMyAdmin: 4.9.5-all-languages
ProFTPD: no
Pure-FTPd: 1.0.49
RoundCube webmail: 1.4.3
Replace "php.ini" with './build all' and './build php_ini': no
Auto updates/notifications: no
Run "clean" every time: yes
Run "clean_old_webapps" every time: yes
Run "clean_old_tarballs" every time: yes
Show texts in bold: yes
SquirrelMail: 1.4.23-20190509_0200
Zend Guard Loader: no
ionCube loader: no
Suhosin: no
 
Hello,

Try to rebuild dovecot:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build dovecot
./build dovecot_conf

and

Code:
echo "action=rewrite&value=mail_sni" >> /usr/local/directadmin/data/task.queue && /usr/local/directadmin/dataskq d800

I would expect to see double-quotes in the line, e.g.:

Code:
local_name "DOMAIN.com www.DOMAIN.com" {
 
Hello,

Try to rebuild dovecot:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build dovecot
./build dovecot_conf

and

Code:
echo "action=rewrite&value=mail_sni" >> /usr/local/directadmin/data/task.queue && /usr/local/directadmin/dataskq d800

I would expect to see double-quotes in the line, e.g.:

Code:
local_name "DOMAIN.com www.DOMAIN.com" {

I have the same problem. I tried to rebuild dovecot but problem persists. Every time I execute
echo "action=rewrite&value=mail_sni" >> /usr/local/directadmin/data/task.queue && /usr/local/directadmin/dataskq d800
quotes disappear and I have to add them manually or dovecot won't start.
Directadmin is 1.61.3 on CentOS 7
 
Back
Top