Received: from smtp-42af.mail.infomaniak.ch (smtp-42af.mail.infomaniak.ch [IPv6:2001:1600:7:10::42af]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id D4A90225C74 for <~alpine/users@lists.alpinelinux.org>; Tue, 3 Jun 2025 10:04:41 +0000 (UTC) Received: from smtp-4-0001.mail.infomaniak.ch (unknown [IPv6:2001:1600:7:10::a6c]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4bBRCB49zGz2d3; Tue, 3 Jun 2025 12:04:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fala.red; s=20230620; t=1748945078; bh=WzNGM30QZSwpHhRUgTMjxRJehm2cjo3JlykurX49884=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=qrxfMyCLaBRhIybBn8bEnPoGFGhMmiHh8KcEOIo/zVY1KVvyU30PqszDVYlAXRZvo R6L2JK10jGhihi46uyeXObG6Czyis6EpTFD21imimIL3e2sufD0hvqrnMKX45ZPLFI ws+6ZKG3uNJSMOGRO7D9UK0GJ0BleKKEB0OYsTstvULd2jVHgnv6Zr+hpgeIZC4taj Qygv2Ss5L+wg8rM6O9gcvSYp7mjvONHcOeQ5J+/AxvGdipTZnyOS6/AHCCd3NY5zHY kV8gz9wEga7G3oc/MqdPCJfjMHVNjPAWPPfzNMhGtRHf/CEbZOWjnhFYpZ9IFFotFf 2gC/deHmX5oKg== Received: from unknown by smtp-4-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4bBRC92SY9zvFw; Tue, 3 Jun 2025 12:04:37 +0200 (CEST) Date: Tue, 3 Jun 2025 12:04:36 +0200 From: Faustin Lammler To: Martin Steigerwald Cc: ~alpine/users@lists.alpinelinux.org Subject: Re: Dovecot 2.4 with Alpine 3.22 warning: dovecot.conf removed and configuration syntax changed Message-ID: Reply-To: faustin@fala.red References: <7813744.EvYhyI6sBW@lichtvoll.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="EewCJ/kzF1b5y7MJ" Content-Disposition: inline In-Reply-To: <7813744.EvYhyI6sBW@lichtvoll.de> User-Agent: Mutt/2.2.14 (2025-02-20) X-Infomaniak-Routing: alpha --EewCJ/kzF1b5y7MJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Martin! Thanks for the detailed report. Apparently someone already reported in https://gitlab.alpinelinux.org/alpine/aports/-/issues/17228, you might want to add some details there if needed. Regards, Martin Steigerwald , 02/06/2025 =E2=80=93 18:52:51 (+0200): > Hi! >=20 > On upgrading my private mail server with 3.21 to 3.22 with "apk upgrade -- > available" Dovecot was not started cause of: >=20 > % service dovecot start > * dovecot: `/etc/dovecot/dovecot.conf' is not readable > * ERROR: dovecot failed to start >=20 > That file was gone! >=20 > I restored it from backup. >=20 > And then I had to convert it to 2.4 format. >=20 > First off I added >=20 > dovecot_config_version =3D 2.4.1 > dovecot_storage_version =3D 2.4.1 >=20 > at the beginning of dovecot.conf. It needs to be the first configuration= =20 > statement. >=20 > Then I went through >=20 > https://doc.dovecot.org/2.4.1/installation/upgrade/2.3-to-2.4.html >=20 > and other parts of the documentation of Dovecot and the configuration fil= e=20 > example referenced in above link. >=20 > I started dovecot on command line to test changes as I did not see the=20 > configuration syntax errors reported in "/var/log/messages" or "/var/log/ > mail.log". The mail server uses Rsyslog. >=20 > Updating the configuration is not trivial. It is not completely explained= =20 > with examples in one page. I needed to review other parts of the Dovecot= =20 > 2.4.1 documentation to dig out configuration examples on how things are= =20 > supposed to look now. >=20 > All in all the configuration seems to be more complex and more verbose=20 > now: Sections need to be named, "passwd" section needs to have a "fields"= =20 > group with what was in "args" before, names of configuration directories= =20 > have been changed, configuration directives like "mail_location" have bee= n=20 > split up. Oh, and SSL cert file options have been renamed as well and do= =20 > not take input redirection with "<" anymore. If you still try Dovecot=20 > treats the contents of the file as filename. So just remove that "<"=20 > there. While some options may be clearer now I am not really sure I=20 > whether I like most of those changes, but it is what it is. >=20 > It took me a bit more than half an hour for a simple private server=20 > configuration in a single file in "/etc/dovecot/conf.d". Cause the versio= n=20 > declaration needs to be the first statement I now seem to have to modify > "/etc/dovecot/dovecot.conf" as well. If there is a way around that please= =20 > let me know. I'd prefer to leave "dovecot.conf" untouched. >=20 > So if you upgrade, plan accordingly. >=20 > And make sure you have a backup / snapshot. >=20 > At least in the future due to setting the configuration file format=20 > version such surprises should not happen anymore. >=20 > It is currently not mentioned in Alpine 3.22 release notes=C2=B2 but IMHO= =20 > should be. >=20 > I can open a bug report about the missing configuration file and also=20 > about the release notes mentioning Dovecot configuration file syntax=20 > change, if you advice on which packages / components to report to. I am= =20 > still quite new to Alpine Linux. >=20 > [1] Over the years Postfix has been much more comfortable for me than=20 > Dovecot regarding configuration updates. >=20 > [2] https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.22.0 >=20 > Best, > --=20 > Martin >=20 >=20 --=20 Faustin GPG: F652 BCD1 1AA8 8975 F010 48A5 390A 2F27 832A 5C79 --EewCJ/kzF1b5y7MJ Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE9lK80RqoiXXwEEilOQovJ4MqXHkFAmg+yLQACgkQOQovJ4Mq XHmEkA/9FwqavdePA6QAcYTnlLLVngGsedKJuTViZPX6pV3z6Dkfk0rsb6VzB7qS GBMLagXCNnCUXlhXHC5FBODLHnwcsyqKKS4M412ogkfcDUsPHvpMe9RpO7WQJfKm lSpv4JPseAtKHOi7jwAMaLj+K9t5umsJdIMpQyp7uwnY88JNaJXs/nkpllmbB7Au /vGChhcnhB/vph2C10gCvs7XR8xn2DcmojSO6EY+ktgKOcqyN7KhMzKUtGJBk7u6 fkr2xdG1agDmYERvsfGb8ImV7O2rB0PgSmgEXBAUxDbT9nB0t/nO1T0DABwU9NxZ E5POafkOrvsWT/fCjmdxReWhqJleqEk1reqTlNnM+RmVlGrkEY08Xdsu64dDxe2p pkp7loV05zqOkl3kXqb/n+my/Pen4989M13UJdpOcp0TH1MOVKB1korybdjg5pVB rYchb+nHeXINfEVi/Zlp8jO1M/gK3DE8FmNWdQ0jjVBz2eMnz+zr0M0aO6Iv23Dp E6aGffqXr5gCYUSMH0tmvrlUGHyhlxde+MLPvqRETkBa2CX8oHe9TCjgTxHWFZgU IJb6whzqIlY/0Ffq5oeDUMkCyJSTn6cSOGEQyOvm4TonA8WQaXldkjXuI0WdaR21 2TfEaOUSARltOFnXfE6Y7oSNVvKXNL8EsK8mRYdmSZ37VBuuOys= =3xAa -----END PGP SIGNATURE----- --EewCJ/kzF1b5y7MJ--