Package: postfix
Version: 3.10.13-0+deb13u1
Severity: normal

Dear Maintainer,

I switched to systemd-resolved recently, and noticed this warning in my logs:

postfix/postfix-script[521104]: warning: not owned by root: 
/var/spool/postfix/etc/resolv.conf

Indeed, the file is not owned by root:
-rw-r--r-- 1 systemd-resolve systemd-resolve 920  4 oct.  22:33 
/var/spool/postfix/etc/resolv.conf

This occurs because postfix-resolvconf.service does:
ExecStart=cp -pLu /etc/resolv.conf /var/spool/postfix/etc/resolv.conf

Note the -p that preserves ownership. I guess --preserve=mode,timestamps should 
be used instead.

Thanks

-- System Information:
Debian Release: 13.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.111+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages postfix depends on:
ii  adduser                3.152
ii  debconf [debconf-2.0]  1.5.91
ii  init-system-helpers    1.69~deb13u1
ii  libc6                  2.41-12+deb13u4
ii  libdb5.3t64            5.3.28+dfsg2-9
ii  libicu76               76.1-4
ii  libnsl2                1.3.0-3+b3
ii  libsasl2-2             2.1.28+dfsg1-9
ii  libssl3t64             3.5.7-1~deb13u3
ii  libtlsrpt0             0.5.0rc1-2
ii  netbase                6.5

Versions of packages postfix recommends:
ii  ca-certificates  20250419
ii  python3          3.13.5-1
ii  ssl-cert         1.1.3

Versions of packages postfix suggests:
ii  bsd-mailx [mail-reader]        8.1.2-0.20220412cvs-1.1
ii  dovecot-core [dovecot-common]  1:2.4.1+dfsg1-6+deb13u7
ii  libsasl2-modules               2.1.28+dfsg1-9
ii  mutt [mail-reader]             2.2.13-1+deb13u1
ii  neomutt [mail-reader]          20250510+dfsg-2
pn  postfix-cdb                    <none>
pn  postfix-doc                    <none>
pn  postfix-ldap                   <none>
pn  postfix-lmdb                   <none>
pn  postfix-mongodb                <none>
pn  postfix-mta-sts-resolver       <none>
pn  postfix-mysql                  <none>
ii  postfix-pcre                   3.10.13-0+deb13u1
pn  postfix-pgsql                  <none>
ii  postfix-sqlite                 3.10.13-0+deb13u1
ii  procmail                       3.24+really3.22-4
ii  systemd-resolved [resolvconf]  257.13-1~deb13u1
pn  ufw                            <none>

-- debconf information excluded

Reply via email to