LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 03: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 03:49 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-17-2012, 05: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, 06: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, 04: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, 08: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, 08:31 PM   #6
m_pahlevanzadeh
Member
 
Registered: Sep 2002
Location: Iran/Tehran
Distribution: Debian
Posts: 94

Rep: Reputation: 27
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 08:33 PM.
 
2 members found this post helpful.
Old 02-14-2015, 08: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 !!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:40 AM
'permission denied' trying to mount a directory leupi Linux - Networking 19 12-04-2005 07:50 PM
root gets 'Permission denied' to directory mikemrh9 Linux - Security 2 11-18-2005 05:15 AM
permission denied to home directory ekdya Debian 3 11-08-2005 05:24 PM
permission denied when opening directory pilot1 Linux - General 1 10-23-2002 09:27 PM


All times are GMT -5. The time now is 08:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration