Programming and accessibility tips

from the Cynthia Network

SELinux »

Allow a web server to send mail with SELinux

It is sometimes useful to have online forms which send results to an email address. On distributions on Linux that have SELinux installed and enabled, permission for a webserver to send email may be restricted.

You can use the setsebool tool to set values of Boolean variables that can be configured in SELinux. SELinux has a collection of configurable http settings. The following command will allow webservers to send mail:

setsebool httpd_can_sendmail 1

The -P option will make the change permanent as follows:

setsebool -P httpd_can_sendmail 1

Computer science help

Programming

User

By Bill Hollingsworth
© 2016 by Cynsight, LLC.
Cynthia™ is a trademark of Cynsight, LLC.

^