Unable to send Email using PHP scripts under a High Security Site if sendmail
Article ID: 2511, created on Oct 29, 2007, last review on May 10, 2014
Pro Control Panel Linux
Knowledge ID 1286
Product : WEBppliance for Linux
Version : 3.5.0
Topic : FAQ
Title Unable to send Email using PHP scripts under a High Security Site if sendmail
Summary Unable to send Email using PHP scripts under a High Security Site if sendmail option is Disabled.
Details The PHP mail() function internally uses the sendmail binary to send emails.
For High Security Site, php scripts are chrooted to the virtual domain filesystem at /home/virtual/domainname and hence use the sendmail binary at /home/virtual/domainname/usr/sbin/sendmail to send emails.
This sendmail binary is removed from the virtual domain filesystem when sendmail option is disabled for a site, and hence the PHP scripts under a High Security are unable to send emails.
This issue has been resolved in Webppliance Pro 3.5.16, now the sendmail binary is not removed for a site even if sendmail option is disabled.
Also, this problem is not observed for PHP scripts under Low Security Sites and Sites in 3.1 compatibility mode, as they use the main sendmail binary at /usr/sbin/sendmail which is always available.