[CentOS] postfix on centos 7

Thu Sep 6 19:42:35 UTC 2018
Phil Perry <pperry at elrepo.org>

On 06/09/18 20:15, Larry Martell wrote:
> When I try and send mail I see this in the maillog:
> 
> Sep  6 11:59:48 postfix/sendmail[11059]: fatal: open
> /etc/postfix/main.cf: Permission denied
> 
> But /etc/postfix/main.cf is world readable:
> 
> $ ls -l /etc/postfix/main.cf
> -rw-r--r--. 1 root root 27176 Jun  9  2014 /etc/postfix/main.cf

How are you trying to send mail? Is it by chance through a web based 
application?

If so, you may need to set the SELinux boolean httpd_can_sendmail.

Otherwsie, check/restore default SELinux labelling for /etc/postfix/main.cf