LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack 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.
 
Old 01-17-2012, 04:31 AM   #2
Toggan
Member
 
Registered: Oct 2011
Distribution: CentOS 5.9
Posts: 39

Rep: Reputation: 4
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.
 
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: 4
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.
 
Old 03-19-2013, 07:31 PM   #6
m_pahlevanzadeh
Member
 
Registered: Sep 2002
Location: Iran/Tehran
Distribution: Debian
Posts: 94

Rep: Reputation: 26
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.
 
1 members found this post helpful.
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


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

Main Menu
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