2017-05-23 14:26 GMT+02:00 Cecil Westerhof <cldwester...@gmail.com>:

> 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!
> ​
>
​[...]​


> ​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?​
>

​I tried to work with strace. I saw this in the output:
stat("/var/spool/postfix/quick-start", 0x7fff36221440) = -1 ENOENT (No such
file or directory)
clone(child_stack=NULL,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f76a34db9d0) = 5844
wait4(-1, postsuper: fatal: scan_dir_push: open directory hold: No such
file or directory

I then created it:
    -rw-r--r-- 1 postfix root        0 May 23 16:00 quick-start

Then the no such file does not happen. Instead 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
    postfix/postfix-script: starting the Postfix mail system
    postfix/postfix-script: fatal: mail system startup failed

Something else goes wrong, but it is not said what.

Also the first thing postfix does after seeing the file is there, is
removing it. So in the next run the old error is back.

And after removing it postfix quits:
stat("/var/spool/postfix/quick-start", {st_mode=S_IFREG|0644, st_size=0,
...}) = 0
stat("/bin/rm", {st_mode=S_IFREG|0755, st_size=64424, ...}) = 0
clone(child_stack=NULL,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fba591899d0) = 6416
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6416
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6416, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 6416
clone(child_stack=NULL,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fba591899d0) = 6417
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6417
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6417, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 6417
clone(child_stack=NULL,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fba591899d0) = 6418
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 6418
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6418, si_uid=0,
si_status=1, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 6418
clone(child_stack=NULL,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fba591899d0) = 6421
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6421
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6421, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 6421
exit_group(1)                           = ?
+++ exited with 1 +++
​
​Anyone an idea what could be the problem?​

-- 
Cecil Westerhof

Reply via email to