?
Solved

PostFix & SELinux fatal: chdir /var/spool/postfix: Permission denied

Posted on 2011-10-03
5
Medium Priority
?
2,764 Views
Last Modified: 2012-05-12
i am attempting to get postfix to send emails, but of course SELinux, I beleive, is being difficult.

i have tried using various commands:

postfix set-permissions

chmod 755 /var/spool/postfix

#   ls -ld /var/spool/postfix
drwxr-xr-x. 16 root root 4096 Jun 25 06:50 /var/spool/postfix

Open in new window


but i still receive the same error on my server. I would like to keep SELinux on if possible..

Oct  3 12:04:49 www01 postfix/sendmail[22486]: fatal: chdir /var/spool/postfix: Permission denied

Open in new window


This is under CentOS 6 x64.

any thoughts from the pro's ?
0
Comment
Question by:Mathiau
  • 3
  • 2
5 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 1000 total points
ID: 36905119
[root@broken ~]# getsebool -a|grep postfix
allow_postfix_local_write_mail_spool --> off
[root@broken ~]# setsebool allow_postfix_local_write_mail_spool on
[root@broken ~]# getsebool -a|grep postfix
allow_postfix_local_write_mail_spool --> on
[root@broken ~]#

Open in new window

0
 
LVL 2

Author Comment

by:Mathiau
ID: 36913359
after i ran those commands postfix wouldn't start, i am going to reinstall postfix, i am sure i messed something up with the other stuff i had tried, will let you knoiw.
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36913378
Yeah that is probably a good idea if you tried a bunch of other things before that.  Setting that SE boolean should be all you need, once you have a clean install of course.
0
 
LVL 2

Author Comment

by:Mathiau
ID: 36994631
Appreciated.
0
 
LVL 2

Author Comment

by:Mathiau
ID: 37035412
reinstalled postfix and everything working fine now.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
MS Outlook undoubtedly is the most widely used email client.Its user-friendliness, cost effectiveness, and availability with Microsoft Office Suite make it the most popular email application.  Its compatibility with Microsoft applications like Exch…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Suggested Courses
Course of the Month16 days, 23 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question