Page 1 of 1

postsuper: fatal: scan_dir_push: open directory defer: Permission denied

Posted: Sun Mar 14, 2021 8:10 pm
by mister_v
I got a problem with postfix,
got the following message in /var/log/mail.err

Code: Select all

postsuper: fatal: scan_dir_push: open directory defer: Permission denied
I don't know what it is.

Re: postsuper: fatal: scan_dir_push: open directory defer: Permission denied

Posted: Sun Mar 14, 2021 8:25 pm
by chris
It looks like postfix does not have access to one or more directories.
Somehow the rights must have been changed.

You can try:

Code: Select all

chown -R postfix /var/spool/postfix
or

Code: Select all

postfix set-permissions

Re: postsuper: fatal: scan_dir_push: open directory defer: Permission denied

Posted: Sun Mar 14, 2021 8:41 pm
by mister_v
Tries to change the owner

Code: Select all

chown -R postfix /var/spool/postfix
did not solve the problem.
the system is not sending mails either.

Re: postsuper: fatal: scan_dir_push: open directory defer: Permission denied

Posted: Sun Mar 14, 2021 8:53 pm
by chris
If it can't write the mails, it can't process the mail to send them.

an extreme solution is to delete the dir

Code: Select all

rm -fr /var/spool/postfix
and do a reinstall

Code: Select all

apt-get reinstall postfix
it will recreate the dir with the correct file-settings.