httpd can't send mails
Daniel J Walsh
dwalsh at redhat.com
Mon Jul 2 18:18:10 UTC 2007
Bruno Wolff III wrote:
> On Mon, Jul 02, 2007 at 18:17:39 +0200,
> dragoran <drago01 at gmail.com> wrote:
>
>> I tryed to send mails using a php scripts that calls mail() but when I
>> do it I get this avc:
>> audit(1183392777.651:14): avc: denied { read } for pid=25048
>> comm="sendmail" name="[79366]" dev=eventpollfs ino=79366
>> scontext=user_u:system_r:system_mail_t:s0
>> tcontext=user_u:system_r:httpd_t:s0 tclass=file
>> the boolean "httpd_can_sendmail" is enabled (true).
>> I restarted the httpd and sendmail service after doing so... but still
>> no success.
>> Any ideas?
>>
If you use
# grep http /var/log/audit/audit.log | audit2allow -M myhttp
# semodule -i myhttp.pp
Does the mail work?
>
> man httpd_selinux
> is a good place to start.
>
> --
> fedora-selinux-list mailing list
> fedora-selinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-selinux-list
>
More information about the fedora-selinux-list
mailing list