[CentOS] postfix on centos 7

Larry Martell larry.martell at gmail.com
Thu Sep 6 19:49:51 UTC 2018


On Thu, Sep 6, 2018 at 3:42 PM, Phil Perry <pperry at elrepo.org> wrote:
> 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?

No just testing from the command line with mail. But I will need to be
able to send mail from a PHP app.

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

OK - I just did that - thanks!

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

That looks correct:

-rw-r--r--. root root system_u:object_r:postfix_etc_t:s0 /etc/postfix/main.cf



More information about the CentOS mailing list