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
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,255
Location
GMT +7.00
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" {
 
Top