Introduction
Si vous rencontrez des problèmes d’envoi de mails ou problème avec la fonction PHP mail () avec RedHat, je vous propose cette solution à effectuer en root.
Résolution
Verifions la valeur de httpd_can_sendmail
# /usr/sbin/getsebool httpd_can_sendmail httpd_can_sendmail --> off
La valeur est off, nous allons la passer a ‘on’ grâce à cette commande
# setsebool -P httpd_can_sendmail 1
Verifions de nouveau
# /usr/sbin/getsebool httpd_can_sendmail httpd_can_sendmail --> on
Enjoy !