Mailinglist Archive: opensuse-bugs (6221 mails)

< Previous Next >
[Bug 1087753] Dovecot fails to start, complaining "Can't open log file /var/log/dovecot.log: Permission denied"
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 03 Apr 2018 09:24:02 +0000
  • Message-id: <>

--- Comment #3 from Tristan Miller <psychonaut@xxxxxxxxxxxxxxxxx> ---
(In reply to Christian Boltz from comment #1)
The Dovecot AppArmor profile indeed assumes that Dovecot uses syslog for

I suppose this is a recent (and unannounced?) change.

Can you please paste the relevant lines from /var/log/audit/audit.log or, if
in doubt, attach the whole file?

type=AVC msg=audit(1522747195.548:1944): apparmor="ALLOWED" operation="mknod"
profile="/usr/sbin/dovecot" name="/var/log/dovecot.log" pid=7033 comm="dovecot"
requested_mask="c" denied_mask="c" fsuid=0 ouid=0
type=AVC msg=audit(1522747195.548:1945): apparmor="ALLOWED" operation="open"
profile="/usr/sbin/dovecot" name="/var/log/dovecot.log" pid=7033 comm="dovecot"
requested_mask="ac" denied_mask="ac" fsuid=0 ouid=465
type=AVC msg=audit(1522747195.552:1946): apparmor="ALLOWED"
operation="file_perm" profile="/usr/sbin/dovecot" name="/var/log/dovecot.log"
pid=7033 comm="dovecot" requested_mask="w" denied_mask="w" fsuid=0 ouid=465
type=AVC msg=audit(1522747195.556:1947): apparmor="DENIED" operation="capable"
profile="/usr/lib/dovecot/log" pid=7036 comm="log" capability=1

Also, did you specify /var/log/dovecot.log in your dovecot config, or is
this part of the default config now?

It's specified in /etc/dovecot/dovecot.conf. I don't know if it's part of the
default config. Very likely I was the one that put it there back when I first
installed Dovecot a year or two ago.

I can live with using syslog for logging, so for me the solution is to simply
uncomment the log_path setting from dovecot.conf.

You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >