Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora SELinux Support (http://www.linux-archive.org/fedora-selinux-support/)
-   -   problems with sending emails from Apache (http://www.linux-archive.org/fedora-selinux-support/54938-problems-sending-emails-apache.html)

"Stanisław T. Findeisen" 02-13-2008 09:07 PM

problems with sending emails from Apache
 
Hello, I am using Fedora 7 x86_64, have these packages installed:

selinux-policy-2.6.4-70.fc7
selinux-policy-targeted-2.6.4-70.fc7

and get these errors:

syslog:

Feb 13 18:18:12 srv-1 kernel: audit(1202923092.221:5): avc: denied {
search } for pid=8423 comm="sendmail" name="postfix" dev=sda1
ino=4935485 scontext=system_u:system_r:httpd_t:s0
tcontext=system_u:object_r:postfix_etc_t:s0 tclass=dir


Apache error log:

[Wed Feb 13 18:15:02 2008] [error] [client 84.10.17.54] File does not
exist: /var/www/html/gnu-linux/favicon.ico

sendmail: fatal: open /etc/postfix/main.cf: Permission denied
[Wed Feb 13 20:27:16 2008] [info] [client 84.10.17.54] (70007)The
timeout specified has expired: core_output_filter: writing data to the
network


I think that occured when PHP application tried to send email from
within Apache HTTP server.


STF

--
fedora-selinux-list mailing list
fedora-selinux-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

Daniel J Walsh 02-13-2008 09:16 PM

problems with sending emails from Apache
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stanisław T. Findeisen wrote:
> Hello, I am using Fedora 7 x86_64, have these packages installed:
>
> selinux-policy-2.6.4-70.fc7
> selinux-policy-targeted-2.6.4-70.fc7
>
> and get these errors:
>
> syslog:
>
> Feb 13 18:18:12 srv-1 kernel: audit(1202923092.221:5): avc: denied {
> search } for pid=8423 comm="sendmail" name="postfix" dev=sda1
> ino=4935485 scontext=system_u:system_r:httpd_t:s0
> tcontext=system_u:object_r:postfix_etc_t:s0 tclass=dir
>
> Apache error log:
>
> [Wed Feb 13 18:15:02 2008] [error] [client 84.10.17.54] File does not
> exist: /var/www/html/gnu-linux/favicon.ico
> sendmail: fatal: open /etc/postfix/main.cf: Permission denied
> [Wed Feb 13 20:27:16 2008] [info] [client 84.10.17.54] (70007)The
> timeout specified has expired: core_output_filter: writing data to the
> network
>
> I think that occured when PHP application tried to send email from
> within Apache HTTP server.
>
> STF
>
> --
> fedora-selinux-list mailing list
> fedora-selinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-selinux-list
Try

setsebool -P httpd_can_sendmail=1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkezbEkACgkQrlYvE4MpobNzTQCfTZUta+WObt Ob1s0B9eFpuj+g
i5YAn1wQFtuOBUo/omhm2+ZROdM71yqI
=teDZ
-----END PGP SIGNATURE-----

--
fedora-selinux-list mailing list
fedora-selinux-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-selinux-list


All times are GMT. The time now is 03:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.