🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1297

Bug#1151242: dovecot-sieve: Permission problem with ssl_key_file on e.g. sievec

#1297
From: Noah Meyerhans
Date: Sun, 18 Oct 2026 21:40
42 lines
3641 bytes
Control: tags -1 + moreinfo

On Sun, Oct 18, 2026 at 10:15:16PM +0200, H.-Dirk Schmitt wrote:
> Package: dovecot-sieve
> Version: 1:2.4.5+dfsg1-4
> Severity: important
> 
> There is still a serious bug in dovecot 2.4.4 with the ssl_key_file.
> If e.g. sievec is invoked.
> 
> → doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf
> line 76: key_file: open(/etc/ssl/private/XXXXXX.key.pem) failed: Permission
> denied
> 
> The same occurs in for every mail deliverd to any user account using mailsieve
> and a lot of error mails are produced degrading the mail-service for the users.
> 
> The problem is upstream discussed in
> https://dovecot.org/mailman3/archives/list/dovecot@dovecot.org/thread/KT7LWWQWEMLKKLKXICBGPG7OGOQIJWEV/
> There is also a weird configuration hack mentioned to mitigate the dovecot bug.
> The bug is that the key_file isn't read before the privileges are dropped e.g.
> for the sieve processing.
> 
> This bug was solved in dovecot 2.4.5.

I'm a bit confused.  You reported this bug against version 2.4.5, but
also claim that it's fixed in 2.4.5.  Do you happen to know exactly
where/what the fix is?  The mailing list thread doesn't seem to identify
it a specific commit as containing the fix.

> I mitigated the problem here with a no-change forky backport for the moment.
> 
> Please upgrade the trixie version from 2.4.4 to 2.4.5 to solve the problem for
> other users.

Trixie contains 2.4.1 (with a bunch of backported bugfixes, not 2.4.4).
Unfortunately dovecot minor versions contain incompatible changes, so we
cannot simply upgrade between them with trixie point releases.  We will
need to identify the specific commit so we can introduce a targeted fix
into trixie's version.

noah
Technical Details
Message-ID: <NPGLL-6peO-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NPFG1-6oGN-7@gated-at.bofh.it> <NPFG1-6oGN-7@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Noah Meyerhans <noahm@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1151242: dovecot-sieve: Permission problem with ssl_key_file on e.g. sievec
Date: Sun, 18 Oct 2026 23:40:01 +0200
Message-ID: <NPGLL-6peO-1@gated-at.bofh.it>
References: <NPFG1-6oGN-7@gated-at.bofh.it> <NPFG1-6oGN-7@gated-at.bofh.it>
X-Original-To: "H.-Dirk Schmitt" <dirk@computer42.org>, 1151242@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Oct 18 21:37:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Noah Meyerhans <noahm@debian.org>, 1151242@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: dovecot@packages.debian.org
X-Debian-Pr-Message: followup 1151242
X-Debian-Pr-Package: dovecot-sieve
X-Debian-Pr-Source: dovecot
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Debian-User: noahm
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997444
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 42
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 18 Oct 2026 17:35:08 -0400
X-Original-Message-ID: <atU7jN_fCH4l-03X@doom.morgul.net>
X-Original-References: <179235451622.2921125.14584634707677205463.reportbug@nermal.server.computer42.org> <179235451622.2921125.14584634707677205463.reportbug@nermal.server.computer42.org>