LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-16-2012, 02:45 PM   #1
Nickalf
Member
 
Registered: Feb 2009
Location: on the InterNET most hours of my life
Distribution: Ubuntu Server v8.04 / v11.10 & Mac OsX (mainly for FCP & video/audio)
Posts: 35

Rep: Reputation: 15
Help: postsuper: fatal: scan_dir_push: open directory defer: Permission denied


Hi all,
I searched for answers but they are old and not really solved.

I installed a new server and created a main.cf but cannot get Postfix to run - get the error:

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

Can you help/guide on how I can fix this problem ?

Thanks,
Nick...

Last edited by Nickalf; 01-16-2012 at 02:49 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-17-2012, 04:31 AM   #2
Toggan
Member
 
Registered: Oct 2011
Distribution: CentOS 5.9
Posts: 39

Rep: Reputation: 6
From what I'm finding, it appears to be an issue with the mail queue not being able to be read by postfix. You will want to review the main.cf file to find the queue directory. By default it appears to be /var/spool/postfix.

Run:

Code:
ls -la /var/spool/
If you find that the postfix directory is owned by root or anything that's not postfix run:

Code:
chown -R postfix /var/spool/postfix
If you find the queue directory is a different folder, simply modify what you see above.
 
1 members found this post helpful.
Old 01-17-2012, 05:17 PM   #3
Nickalf
Member
 
Registered: Feb 2009
Location: on the InterNET most hours of my life
Distribution: Ubuntu Server v8.04 / v11.10 & Mac OsX (mainly for FCP & video/audio)
Posts: 35

Original Poster
Rep: Reputation: 15
Thanx 4 that info
 
Old 11-05-2012, 03:20 PM   #4
Conquistadog
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: 0
This post comes up high in google's results for the topic so I hope someone can respond and add to it. I have the same symptom.

Changing the ownership of /var/spool/postfix to postfix:postfix does indeed allow postfix to start without this error.

But -- then on startup, postfix warns that /var/spool/postfix is not owned by root!

What's really right?
 
Old 11-06-2012, 07:33 AM   #5
Toggan
Member
 
Registered: Oct 2011
Distribution: CentOS 5.9
Posts: 39

Rep: Reputation: 6
It's been awhile since I worked with this issue, and I no longer have the test server that I had before. However, this may not be an ownership, but actually a permissions issue. Try chown'ing the /var/spool/postfix directory to root, but change the permissions to 644, or something where another user like the postfix user can read the contents.
 
1 members found this post helpful.
Old 03-19-2013, 07:31 PM   #6
m_pahlevanzadeh
Member
 
Registered: Sep 2002
Location: Iran/Tehran
Distribution: Debian
Posts: 94

Rep: Reputation: 28
Oh, Postfix have a good solution for solve it:
Code:
/opt/postfix/usr/sbin/postfix -c /opt/postfix/etc/postfix/ set-permissions
Of course i forced to use "-c" because i compiled into /opt/postfix, i didn't use default directory.
After run once, do starting postfix:
Code:
/opt/postfix/usr/sbin/postfix -c /opt/postfix/etc/postfix/ start

Last edited by m_pahlevanzadeh; 03-19-2013 at 07:33 PM.
 
3 members found this post helpful.
Old 02-14-2015, 07:56 AM   #7
navcrowds
LQ Newbie
 
Registered: Feb 2015
Posts: 1

Rep: Reputation: Disabled
Just like to say a big thanks to this old thread, helped me get my postfix started on a centOS 6.5 dist.

Code:
chown -R postfix /var/spool/postfix
followed by

Code:
chmod -r 644 /var/spool/postfix
did the trick after I was getting an postsuper: fatal: scan_dir_push: open directory defer: Permission denied error

big thank you !!
 
Old 09-10-2018, 05:28 PM   #8
taaank
LQ Newbie
 
Registered: Sep 2018
Posts: 1

Rep: Reputation: Disabled
Talking Fix the Zimbra Collaboration permissions

1. As root, run the zmfixperms command to repair any potential permissions problems with files under /opt/zimbra:

/opt/zimbra/libexec/zmfixperms

2. If you need to check /opt/zimbra/store and /opt/zimbra/index as well, you will need to use the -extended option. This will take much longer to run - potentially several hours in large environments - so run it only if necessary. Run this command as root:

/opt/zimbra/libexec/zmfixperms -extended

https://wiki.zimbra.com/wiki/Fix_the...on_Permissions
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PERMISSION DENIED - directory uid0sd Linux - Newbie 3 10-29-2009 01:40 AM
'permission denied' trying to mount a directory leupi Linux - Networking 19 12-04-2005 06:50 PM
root gets 'Permission denied' to directory mikemrh9 Linux - Security 2 11-18-2005 04:15 AM
permission denied to home directory ekdya Debian 3 11-08-2005 04:24 PM
permission denied when opening directory pilot1 Linux - General 1 10-23-2002 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration