2017-05-23 13:38 GMT+02:00 Wietse Venema <wie...@porcupine.org>:

> The opendir() call fails, because the kernel returns a 'Permission
> denied' (EACCES) error condition.
>
> Check the permissions of
>
> /
> /var
> /var/spool
> /var/spool/postfix
> /var/spool/postfix/defer
>
> Except for the last directory, all above directories must have
> read and execute permission for everyone.
>
> drwxr-xr-x  23 root     wheel  512 May 17  2016 /
> drwxr-xr-x  25 root     wheel  512 Mar  2  2016 /var
> drwxr-xr-x   9 root     wheel  512 May  1  2011 /var/spool
> drwxr-xr-x  19 root     wheel  512 Dec 25  2013 /var/spool/postfix
> drwx------  18 postfix  wheel  512 Aug 18  2011 /var/spool/postfix/defer
>

​There where some differences. I brought it up to date:
    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 18 root    root 4.0K May 22 14:00 /var/spool/postfix/
    drw-r--r--  2 postfix root 4.0K May 22 14:00 /var/spool/postfix/defer
​

​The group is root instead of wheel, but I suppose that should not be a
problem. Or is it?
​
​Now I get:
    postfix: dict_lookup: html_directory = (notfound)
    postfix: mac_parse: /usr/share/doc/postfix/html
    postfix: dict_eval: const  /usr/share/doc/postfix/html
    postfix: dict_update: html_directory = /usr/share/doc/postfix/html
    postsuper: fatal: scan_dir_push: open directory hold: No such file or
directory
    postfix/postfix-script: fatal: Postfix integrity check failed!
​
​While it first was:
    postfix: dict_lookup: html_directory = (notfound)
    postfix: mac_parse: /usr/share/doc/postfix/html
    postfix: dict_eval: const  /usr/share/doc/postfix/html
    postfix: dict_update: html_directory = /usr/share/doc/postfix/html
    postsuper: fatal: scan_dir_push: open directory defer: Permission denied
    postfix/postfix-script: fatal: Postfix integrity check failed!

So I get:
    No such file or directory

Instead of:
    Permission denied​

​But it is there:
    drwxr-xr-x 2 postfix root 4.0K May 23 10:48 /usr/share/doc/postfix/html

And all the permissions are correct:
    drwxr-xr-x   31 root root 4.0K May 22 16:47 /
    drwxr-xr-x   10 root root 4.0K May 22 11:55 /usr/
    drwxr-xr-x  266 root root  12K May 23 11:17 /usr/share/
    drwxr-xr-x 2004 root root  68K May 23 12:02 /usr/share/doc/
    drwxr-xr-x    3 root root 4.0K May 23 10:48 /usr/share/doc/postfix/
​
​I also created a dummy.html in the directory:
    -rw-r--r-- 1 postfix root 0 May 23 14:22 index.html

But that did not help either. Are there certain files that need to be
there?​


-- 
Cecil Westerhof

Reply via email to