DevHeads.net

postfix check error and warning

When I run:
postfix check

I get:
/usr/lib/postfix/sbin/post-install: Error: /etc/postfix/postfix-files
is not a file.
postfix/postfix-script: warning: unable to create missing queue
directories

But as far as I can see postfix does what it should do.
I could ignore what is happening, but I do not like that.

I do not have a file:
/etc/postfix/postfix-files

I do have an empty directory:
/etc/postfix/postfix-files.d/

This is on Debian 9.7.

Comments

Re: postfix check error and warning

By Glenn English at 02/10/2019 - 18:16

Buster

I get exactly the same thing on Buster.

And postfix seems to work here too, and I don't like errors I don't know
what to do about either...

Re: postfix check error and warning

By Viktor Dukhovni at 02/10/2019 - 18:26

Is this the correct setting os "meta_directory" for Debian? Perhaps
the package is built with "meta_directory" != "/etc/postfix", but
the user's main.cf file has a different value?

Or the file is in fact deleted or a symlink.

Re: postfix check error and warning

By Scott Kitterman at 02/10/2019 - 18:22

On Sunday, February 10, 2019 03:16:04 PM ghe wrote:
I also don't get the error there, so I'm not sure what to tell you either.

The package provides the file:

<a href="https://packages.debian.org/sid/amd64/postfix/filelist" title="https://packages.debian.org/sid/amd64/postfix/filelist">https://packages.debian.org/sid/amd64/postfix/filelist</a>

Scott K

Re: postfix check error and warning

By Scott Kitterman at 02/10/2019 - 17:56

On Sunday, February 10, 2019 10:23:55 PM Cecil Westerhof wrote:
postfix-files is provided by the Debian package (and postfix check runs
without any errors on my Debian 9.7 system). Making that finally work
correctly was one of my goals during the development of Debian Stretch (AKA
Debian 9). Assuming you installed from distro packages, and not a source
build, you probably deleted it in error at some point.

The most reliable way to get it back is to purge and reinstall postfix, but
make sure you have backup copies of all your postfix config files first since
that would but things back to the distribution defaults (which includes
/etc/postfix/postfix-files).

Scott K

Re: postfix check error and warning

By Wietse Venema at 02/10/2019 - 17:50

Cecil Westerhof:
Ask the Debiam maintainer.

Postfix as distributed by me requires postfix-files for the pathnames
and permissions of most files.

postfix-files.d is for pcre, *sql*, ldap, etc. plugins.

Wietse

Re: postfix check error and warning

By Scott Kitterman at 02/10/2019 - 17:57

On Sunday, February 10, 2019 04:50:49 PM Wietse Venema wrote:
Answered. I don't know what he did, but Debian is no longer screwing that up
by default.

Scott K