Posted in Red Hat/Centos 7

Problème RedHat avec SMTP

Problème RedHat avec SMTP Posted on 27/07/2016

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 !