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

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 ?
LVL 2
MathiauAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PapertripCommented:
[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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MathiauAuthor Commented:
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
PapertripCommented:
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
MathiauAuthor Commented:
Appreciated.
0
MathiauAuthor Commented:
reinstalled postfix and everything working fine now.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.