Article ID: 6998, created on Dec 10, 2009, last review on May 10, 2014

  • Applies to:
  • Plesk 8.6 for Linux/Unix


There is a PHP script to send eMails. For example:

echo "OK";

Where someperson@domain.tld is valid email address.

In case SELinux mode is Enforcing mail message will not be sent when call the script via http://domain.tld/testmail.php

~# getenforce

If SELinux mode is Permissive, then mail message will be sent.

~# getenforce


php mail() function cannot call qmail-inject due to SELinux restriction. The following notification is shown in system log in both cases:

Aug 26 20:22:21 plesk server: type=1400 audit(1251336141.066:6165): avc: denied { read } for pid=21983 comm="qmail-inject" name="me" dev=md3 ino=7340271 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:etc_mail_t:s0 tclass=file
Aug 26 20:22:21 plesk server: type=1400 audit(1251336141.149:6166): avc: denied { write } for pid=21986 comm="" name="trigger" dev=md3 ino=7340196 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:mail_spool_t:s0 tclass=fifo_file

The problem may be reproduced with following schema:

1. Disabled SELinux
2. Install Parallels Panel 8.4
3. Upgrade Parallels Panel to version 8.6
4. Enable SELinux


The problem has been fixed in Parallels Panel since version 9.0. SELinux polities are applies correctly during upgrading to version 9.x.

As a workaround for Parallels Panel 8.6 the following steps are recommended:

1. Enable SELinux mode Enforcing:

~# setenforce 1

2. Download and reinstall package psa-selinux. The package is available on website the URL and choose version of Parallels Panel 8.6.0, then enter directory that matches your operating system and architecture.The package is located in directory /base. For example for Parallels Panel 8.6.0, CentOS5, 32bit the file is

Do not use the URL above, choose your operating system and architecture.

Reinstall the package:

~# rpm -U --force /PATH/TO/FILE/

b8ef5052d936e902043e41759118114e a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 9fa0130c84cac4b292697ade62270a40 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF