On Tuesday, May 23, 2017 11:51:53 PM Bill Cole wrote:
> On 23 May 2017, at 13:43, Cecil Westerhof wrote:
> > 2017-05-23 19:30 GMT+02:00 Viktor Dukhovni
> > 
> > <postfix-us...@dukhovni.org>:
> >>> On May 23, 2017, at 1:22 PM, Cecil Westerhof
> >>> <cldwester...@gmail.com>
> >> 
> >> wrote:
> >>> There are still some things I should look after, like:
> >>>     warning: unable to create missing queue directories
> >>> 
> >>> But it is probably not the most urgent.
> >> 
> >> Actually, that *is* your most urgent problem.  Without these
> >> Postfix cannot work, regardless of the rest of the configuration
> >> The $queue_directory must have various requisite subdirectories
> >> with correct ownership.  If the queue_directory has POSIX ACLs
> >> or some other barrier to creation of the required sub-directories,
> >> then Postfix is unusable.
> > 
> > ​I do not understand. It looks OK to me.
> > The queue directory is /var/spool/postfix​ and the way to it looks
> > OK (to
> > me).
> > 
> >     drwxr-xr-x 31 root root 4.0K May 22 16:47 /
> >     drwxr-xr-x 13 root root 4.0K May 22 12:03 /var
> >     drwxr-xr-x 10 root root 4.0K May 22 13:59 /var/spool
> >     drwxr-xr-x 20 root root 4.0K May 23 16:53 /var/spool/postfix​
> > 
> > ​The directory itself looks also OK to me:
> > ​    drwx------ 2 postfix root     4.0K May 23 19:10 active
> > 
> >     drwx------ 2 postfix root     4.0K May 23 18:54 bounce
> >     drwx------ 2 postfix root     4.0K May 22 14:00 corrupt
> >     drwx------ 3 postfix root     4.0K May 23 17:36 defer
> >     drwx------ 3 postfix root     4.0K May 23 17:36 deferred
> >     drw-r--r-- 2 postfix root     4.0K May 23 17:10 dev
> >     drwxr-xr-x 3 root    root     4.0K May 23 19:10 etc
> >     drwx------ 2 postfix root     4.0K May 22 14:00 flush
> >     drwx------ 2 postfix root     4.0K May 23 16:39 hold
> >     drwx------ 2 postfix root     4.0K May 23 19:10 incoming
> >     drwxr-xr-x 3 root    root     4.0K May 23 17:10 lib
> >     drwx-wx--T 2 postfix postdrop 4.0K May 23 19:10 maildrop
> >     drwxr-xr-x 2 root    root     4.0K May 23 17:36 pid
> >     drwx------ 2 postfix root     4.0K May 23 19:10 private
> >     drwx--s--- 2 postfix postdrop 4.0K May 23 19:10 public
> >     drwx------ 2 postfix root     4.0K May 22 14:00 saved
> >     drwx------ 2 postfix root     4.0K May 23 16:39 trace
> >     drwxr-xr-x 3 root    root     4.0K May 23 16:53 usr
> > 
> > Or am I missing something?
> 
> Looks wrong to me. The presence of dev, etc, lib, and usr directories
> implies that you are running some part of Postfix chrooted to that
> directory. That would be consistent with processes looking for
> directories and not finding them. Don't chroot Postfix. Fix master.cf
> and you should eliminate your issues.
> 
> Note: The Debian customized Postfix has been packaged in the past (and
> may still be) to run services chrooted. I assume this means that it CAN
> work that way, but the place to seek help with HOW that works would be
> the Debian wizards who decided to package it that way.

Here's a working /var/spool/postfix from a chrooted Debian install:

ls -l /var/spool/postfix/
total 72
drwx------ 2 postfix root     4096 May 17 07:30 active
drwx------ 2 postfix root     4096 Feb 13  2015 bounce
drwx------ 2 postfix root     4096 Feb 13  2015 corrupt
drwx------ 2 postfix root     4096 Feb 13  2015 defer
drwx------ 2 postfix root     4096 Feb 13  2015 deferred
drwxr-xr-x 2 root    root     4096 May 19 01:36 dev
drwxr-xr-x 3 root    root     4096 May 19 01:36 etc
drwx------ 2 postfix root     4096 Feb 13  2015 flush
drwx------ 2 postfix root     4096 Feb 13  2015 hold
drwx------ 2 postfix root     4096 May 17 07:30 incoming
drwxr-xr-x 4 root    root     4096 Apr 30  2015 lib
drwx-wx--T 2 postfix postdrop 4096 May 17 07:30 maildrop
drwxr-xr-x 2 root    root     4096 Oct  3  2015 pid
drwx------ 2 postfix root     4096 May 19 01:36 private
drwx--s--- 2 postfix postdrop 4096 May 19 01:36 public
drwx------ 2 postfix root     4096 Feb 13  2015 saved
drwx------ 2 postfix root     4096 Feb 13  2015 trace
drwxr-xr-x 3 root    root     4096 Feb 13  2015 usr

Except for dev the look the same to me (on the basis of a quick it's past 12AM 
here, so don't trust it too much, that's why I'm giving you the data, basis).

Given some of the historical legacy of divergence between Debian and upstream 
Postfix (which will be substantially less in Debian 9 (Stretch) that releases 
next month), I would find it surprising if you could copy from any non-Debian 
derivative distro and have it work.  My recommendation would be to purge the 
postfix install you have now, do a fresh install, and then consider the 
specific things you want to migrate from the old configuration.  That will 
almost certainly work better than playing whack-a-mole.

Taking it out of the chroot, if you prefer, is a simple matter of changing the 
appropriate column in /etc/postfix/master.cf.

Scott K

Reply via email to