Bonjour,
j’ai un souci sur le serveur pour envoyer des mails avec la fonction mail() de php:
$ tail -f /var/log/maillog
Mar 23 10:18:52 trilby postfix/sendmail[202640]: fatal: execv /usr/libexec/postfix/smtpd: Permission denied
$ tail -f /var/log/messages
Mar 23 10:19:53 trilby setroubleshoot[202702]: SELinux is preventing /usr/sbin/sendmail.postfix from execute access on the file smtpd. For complete SELinux messages run: sealert -l 4370a3e3-dadb-4adb-93b5-03d6b05172a1
Le problème provient de SELinux mais pourtant j’ai bien autoriser l’envoi de mail par httpd:
setsebool -P httpd_can_sendmail 1
Pour le moment, je tourne sur smtp, mais j’aimerais fixer ceci.