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
  Search this Thread
Old 09-12-2019, 04:22 PM   #1
tenraek
LQ Newbie
 
Registered: Mar 2003
Posts: 26

Rep: Reputation: 16
Postfix wont start due to permissions, but permissions look correct.


I'm following the install steps from here to set up the email server of CentOS 7: https://hostpresto.com/community/tut...er-on-centos7/

Status postfix.service output:

Code:
sudo systemctl -l status postfix.service
[sudo] password for tenraek: 
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2019-09-12 14:04:49 PDT; 4min 23s ago
  Process: 6248 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)
  Process: 6245 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 6241 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)

Sep 12 14:04:47 elvis.cprcommunity.net systemd[1]: Starting Postfix Mail Transport Agent...
Sep 12 14:04:48 elvis.cprcommunity.net postfix[6248]: /usr/sbin/postconf: fatal: close /etc/postfix/main.cf.tmp: Permission denied
Sep 12 14:04:49 elvis.cprcommunity.net postfix/postfix-script[6279]: fatal: Postfix integrity check failed!
Sep 12 14:04:49 elvis.cprcommunity.net systemd[1]: postfix.service: control process exited, code=exited status=1
Sep 12 14:04:49 elvis.cprcommunity.net systemd[1]: Failed to start Postfix Mail Transport Agent.
Sep 12 14:04:49 elvis.cprcommunity.net systemd[1]: Unit postfix.service entered failed state.
Sep 12 14:04:49 elvis.cprcommunity.net systemd[1]: postfix.service failed.
ls -al /etc/postfix output:

Code:
drwxr-xr-x.  3 root root   165 Sep 12 14:04 .
drwxr-xr-x. 84 root root  8192 Sep 12 12:30 ..
-rw-r--r--.  1 root root 20876 Oct 30  2018 access
-rw-r--r--.  1 root root 11883 Oct 30  2018 canonical
-rw-r--r--.  1 root root 10106 Oct 30  2018 generic
-rw-r--r--.  1 root root 21545 Oct 30  2018 header_checks
-rw-r--r--.  1 root root 28138 Sep 12 13:52 main.cf
-rw-r--r--.  1 root root  6624 Sep 12 12:30 master.cf
-rw-r--r--.  1 root root  6816 Oct 30  2018 relocated
drwxr-xr-x.  2 root root    42 Sep 12 12:24 ssl
-rw-r--r--.  1 root root 12549 Oct 30  2018 transport
-rw-r--r--.  1 root root 12696 Oct 30  2018 virtual
 
Old 09-13-2019, 10:06 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,814
Blog Entries: 15

Rep: Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661
Permissions match what I see on my CentOS7 install where Postfix is running.

Is it possible you're running SELinux and need to check the directory context related to that?
Run "sestatus" to see how SELinux. If not "disabled" your issue is likely the context settings.
 
1 members found this post helpful.
Old 09-13-2019, 02:53 PM   #3
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,778

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Just an observation.
I don't see the file for which permission was denied in the ls output:
[CODE /usr/sbin/postconf: fatal: close /etc/postfix/main.cf.tmp: Permission denied[/CODE]
 
Old 09-13-2019, 06:45 PM   #4
tenraek
LQ Newbie
 
Registered: Mar 2003
Posts: 26

Original Poster
Rep: Reputation: 16
Turns out is was SELinux causing the issue. Thank you for the assist.
 
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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix wont start due to permission error on directory within spool directory cwhitten71 Linux - Server 7 07-05-2018 02:49 PM
[SOLVED] TLS / SASL authentication, dovecot and postfix - does this config look correct? TonyAR Linux - Server 2 10-14-2010 11:40 AM
Postfix wont send emails to Hotmail (CentOS 5, rejected due to policy reasons) iLinx Linux - Server 2 08-05-2010 12:08 PM
Kernel Deleted due to Upgrade, Cannot Reinstall Kernel due to Dependency Issues Kenji Miyamoto Debian 2 02-17-2007 09:44 AM
Error USB-HUC on booting due in mdk10 due to mx700 Boudewijn Mandriva 4 10-09-2004 08:36 AM

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

All times are GMT -5. The time now is 08:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration