🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#1702
From: Noah Meyerhans
Date: Thu, 22 Oct 2026 15:10
36 lines
3769 bytes
On Thu, Oct 22, 2026 at 03:30:34PM +0200, H.-Dirk Schmitt wrote:
>    In difference to my ssl related configuration is:
>    ssl = yes
>    ssl_server_cert_file = /etc/dovecot/private/c42-client.cert.pem
>    ssl_server_key_file = /etc/dovecot/private/c42-client.key.pem
>    ssl_server_ca_file = /etc/ssl/certs/c42-srv-ca.crt
>    ssl_min_protocol = TLSv1.2
>    ssl_server {
>      cert_file = /etc/ssl/c42/c42-client.cert.pem
>      dh_file = /etc/dovecot/dh.pem
>      key_file = /etc/ssl/private/c42-client.key.pem
>    }

I think that's it.  I only had the top-level ssl_server_* settings, I
did not have the ssl_server block.  When I added that, I encountered the
reported failure:

# cat /etc/dovecot/conf.d/10-ssl.conf
ssl = yes
ssl_server_cert_file = /etc/tls/example.net.crt
ssl_server_key_file = /etc/tls/example.net.key
ssl_min_protocol = TLSv1.2
ssl_server {
    key_file = /etc/tls/example.net.key
}

# generate-test-mail.sh | runuser -u vmail -g vmail -- /usr/lib/dovecot/deliver -e -f mailer-daemon -a testuser -d testuser
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 8: key_file: open(/etc/tls/example.net.key) failed: Permission denied


Is it not sufficient for your configuration to list the ssl_server_*
settings and omit the ssl_server block?  The docs don't indicate a need
to define an ssl_server block in a normal configuration:
https://doc.dovecot.org/2.4.5/core/config/ssl.html#configuration-overview

noah
Technical Details
Message-ID: <NR2Ay-7cKh-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NPFG1-6oGN-7@gated-at.bofh.it> <NPGLL-6peO-1@gated-at.bofh.it> <NQ29z-6B53-3@gated-at.bofh.it> <NQ29z-6B53-1@gated-at.bofh.it> <NR2Ay-7cKh-9@gated-at.bofh.it> <NPFG1-6oGN-7@gated-at.bofh.it> <NR2Ay-7cKh-9@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.corradoroberto.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: Thu, 22 Oct 2026 17:10:02 +0200
Message-ID: <NR2Ay-7cKh-7@gated-at.bofh.it>
References: <NPFG1-6oGN-7@gated-at.bofh.it> <NPGLL-6peO-1@gated-at.bofh.it> <NQ29z-6B53-3@gated-at.bofh.it> <NQ29z-6B53-1@gated-at.bofh.it> <NR2Ay-7cKh-9@gated-at.bofh.it> <NPFG1-6oGN-7@gated-at.bofh.it> <NR2Ay-7cKh-9@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Oct 22 15:03: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-Keywords: moreinfo
X-Debian-Pr-Source: dovecot
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
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/1998119
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 36
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: 1151242@bugs.debian.org
X-Original-Date: Thu, 22 Oct 2026 11:01:26 -0400
X-Original-Message-ID: <atolRujZQqLoe8bv@doom.morgul.net>
X-Original-References: <179235451622.2921125.14584634707677205463.reportbug@nermal.server.computer42.org> <atU7jN_fCH4l-03X@doom.morgul.net> <9683261521837dc48f76e5b527194949f04d65bd.camel@computer42.org> <atZ7lEIXcd0USNFt@doom.morgul.net> <e54daa44ab8fbd409c714d92bdb5d0525c851539.camel@computer42.org> <179235451622.2921125.14584634707677205463.reportbug@nermal.server.computer42.org> <e54daa44ab8fbd409c714d92bdb5d0525c851539.camel@computer42.org>