Dovecot config file suddenly bricked, missing curly bracket.

Since yesterday 13.9. around 12:00 CET, my Mails were not arriving. I detected, Dovecot was not running. The config file was bricked.

Should have looked like this: local_name www.theDomain.com { ssl_cert = </home/theDomain.com/ssl.cert ssl_cert = </home/theDomain.com/ssl.combined ssl_key = </home/theDomain.com/ssl.key } local_name autoconfig.theDomain.com { ssl_cert = </home/theDomain.com/ssl.cert ssl_key = </home/theDomain.com/ssl.key ssl_cert = </home/theDomain.com/ssl.combined ssl_key = </home/theDomain.com/ssl.key ssl_cert = </home/theDomain.com/ssl.cert ssl_key = </home/theDomain.com/ssl.key ssl_ca = </etc/webmin/webmin/theDomain.com.chain ssl_cert = </home/theDomain.com/ssl.combined ssl_key = </home/theDomain.com/ssl.key ssl_key = </home/rideit.bike/ssl.key }

but looked like this (curly bracket was missing):

local_name www.theDomain.com { ssl_cert = </home/theDomain.com/ssl.cert ssl_cert = </home/theDomain.com/ssl.combined ssl_key = </home/theDomain.com/ssl.key local_name autoconfig.theDomain.com { ssl_cert = </home/theDomain.com/ssl.cert ssl_key = </home/theDomain.com/ssl.key ssl_cert = </home/theDomain.com/ssl.combined ssl_key = </home/theDomain.com/ssl.key ssl_cert = </home/theDomain.com/ssl.cert ssl_key = </home/theDomain.com/ssl.key ssl_ca = </etc/webmin/webmin/theDomain.com.chain ssl_cert = </home/theDomain.com/ssl.combined ssl_key = </home/theDomain.com/ssl.key ssl_key = </home/rideit.bike/ssl.key }

I did not update or install anything, i didn´t touch the server anyhow. So I assume its either a faulty script while updating lets encrypt, or its a faulty update script (I have auto-update on for security updates.

However, for your information.

Cheers...

Status: 
Closed (fixed)

Comments

Ilia's picture
Submitted by Ilia on Mon, 09/14/2020 - 05:50

Hi,

The server where it happened, what Webmin and Virtualmin versions are installed?

Webmin: 1.953 Virtualmin: 6.10

Ilia's picture
Submitted by Ilia on Mon, 09/14/2020 - 07:59

This issue has been fixed in Webmin 1.955 and Virtualmin 6.12.

Please upgrade.

Yum tells me: "No update exists from version 6.10.gpl-2" but Webmin Update suddenly popped up from gui.

mod_ssl-2.4.6-93.el7.vm.x86_64 FAILED http://GPL:GPL@software.virtualmin.com/gpl/rhel/7/x86_64/mod_ssl-2.4.6-9... [Errno 12] Timeout on http://GPL:GPL@software.virtualmin.com/gpl/rhel/7/x86_64/mod_ssl-2.4.6-9... (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror. usermin-1.803-1.noarch.rpm FAILED http://GPL:GPL@software.virtualmin.com/gpl/universal/usermin-1.803-1.noa... [Errno 12] Timeout on http://GPL:GPL@software.virtualmin.com/gpl/universal/usermin-1.803-1.noa... (28, 'Connection timed out after 30001 milliseconds') Trying other mirror. wbm-virtual-server-6.12.gpl-1. FAILED http://GPL:GPL@software.virtualmin.com/gpl/universal/wbm-virtual-server-... [Errno 12] Timeout on http://GPL:GPL@software.virtualmin.com/gpl/universal/wbm-virtual-server-... (28, 'Connection timed out after 30001 milliseconds') Trying other mirror. wbm-virtualmin-nginx-2.17-1.no FAILED http://GPL:GPL@software.virtualmin.com/gpl/universal/wbm-virtualmin-ngin... [Errno 12] Timeout on http://GPL:GPL@software.virtualmin.com/gpl/universal/wbm-virtualmin-ngin... (28, 'Connection timed out after 30001 milliseconds') Trying other mirror. wbm-virtualmin-nginx-ssl-1.14- FAILED http://GPL:GPL@software.virtualmin.com/gpl/universal/wbm-virtualmin-ngin... [Errno 12] Timeout on http://GPL:GPL@software.virtualmin.com/gpl/universal/wbm-virtualmin-ngin... (28, 'Connection timed out after 30001 milliseconds') Trying other mirror. mod_ssl-2.4.6-93.el7.vm.x86_64 FAILED http://GPL:GPL@software.virtualmin.com/gpl/rhel/7/x86_64/mod_ssl-2.4.6-9... [Errno 12] Timeout on http://GPL:GPL@software.virtualmin.com/gpl/rhel/7/x86_64/mod_ssl-2.4.6-9... (28, 'Connection timed out after 30002 milliseconds') Trying other mirror. usermin-1.803-1.noarch.rpm FAILED http://GPL:GPL@software.virtualmin.com/gpl/universal/usermin-1.803-1.noa... [Errno 12] Timeout on http://GPL:GPL@software.virtualmin.com/gpl/universal/usermin-1.803-1.noa... (28, 'Connection timed out after 30001 milliseconds') Trying other mirror. wbm-virtual-server-6.12.gpl-1. FAILED http://GPL:GPL@software.virtualmin.com/gpl/universal/wbm-virtual-server-... [Errno 12] Timeout on http://GPL:GPL@software.virtualmin.com/gpl/universal/wbm-virtual-server-... (28, 'Connection timed out after 30001 milliseconds') Trying other mirror. wbm-virtualmin-nginx-2.17-1.no FAILED http://GPL:GPL@software.virtualmin.com/gpl/universal/wbm-virtualmin-ngin... [Errno 12] Timeout on http://GPL:GPL@software.virtualmin.com/gpl/universal/wbm-virtualmin-ngin... (28, 'Connection timed out after 30001 milliseconds') Trying other mirror. ^C

Ilia's picture
Submitted by Ilia on Mon, 09/14/2020 - 12:20

Please fix your /etc/yum.repos.d/virtualmin.repo to contain:

[virtualmin]
name=RHEL/CentOS $releasever - $basearch - Virtualmin
baseurl=http://software.virtualmin.com/vm/6/gpl/centos/$releasever/$basearch/
enabled=1
gpgkey=https://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin-6
gpgcheck=1

[virtualmin-universal]
name=Virtualmin Distribution Neutral Packages
baseurl=http://software.virtualmin.com/vm/6/gpl/universal/
enabled=1
gpgkey=https://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin-6
gpgcheck=1

My .repo file looks like this since ever, but also suddenly the update was successful. Do I need the GPL:GPL@ ? [virtualmin] name=RHEL/CentOS/Scientific $releasever - $basearch - Virtualmin baseurl=http://GPL:GPL@software.virtualmin.com/gpl/rhel/$releasever/$basearch/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin gpgcheck=1

[virtualmin-universal] name=Virtualmin Distribution Neutral Packages baseurl=http://GPL:GPL@software.virtualmin.com/gpl/universal/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin gpgcheck=1

Ilia's picture
Submitted by Ilia on Tue, 09/15/2020 - 04:06

No. Use this example:

[virtualmin]
name=RHEL/CentOS $releasever - $basearch - Virtualmin
baseurl=http://software.virtualmin.com/vm/6/gpl/centos/$releasever/$basearch/
enabled=1
gpgkey=https://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin-6
gpgcheck=1

[virtualmin-universal]
name=Virtualmin Distribution Neutral Packages
baseurl=http://software.virtualmin.com/vm/6/gpl/universal/
enabled=1
gpgkey=https://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin-6
gpgcheck=1

Ok, changed it. Also got the new virtualmin-release package version 6.xx Thanks a lot

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.