Re: postfix on centos 7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> Am 06.09.2018 um 21:49 schrieb Larry Martell <larry.martell@xxxxxxxxx>:
> 
> On Thu, Sep 6, 2018 at 3:42 PM, Phil Perry <pperry@xxxxxxxxxx> 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

Any logs? 

# sestatus

<do your testing from the command line with mail>

# ausearch -m avc --start recent

--
LF

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux