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

All questions related to servers
Post Reply
mister_v
Posts: 173
Joined: Thu Mar 04, 2010 9:19 pm

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

Post 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.
chris
Site Admin
Posts: 176
Joined: Mon Jul 21, 2008 9:52 am

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

Post 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
mister_v
Posts: 173
Joined: Thu Mar 04, 2010 9:19 pm

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

Post 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.
chris
Site Admin
Posts: 176
Joined: Mon Jul 21, 2008 9:52 am

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

Post 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.
Post Reply