While helping out a friend on a PHP installation, came across this issue.
Everything worked fine on his development server. But on his deployment server, the mail function returned false and hence no mails were sent out.
After some debugging found that the issue was with permission for httpd on sendmail.
vim /var/log/maillog had error NOQUEUE: SYSERR(apache): /etc/mail/sendmail.cf: line 0: cannot open: Permission denied
After spending some time on Google, came across this command.
# getsebool -a | grep sendmail
httpd_can_sendmail --> off
So the issue was that the apache user did not have permissions to send mails using sendmail.
Ran the following command
# togglebool httpd_can_sendmail
and everything worked fine.
something regarding programming and installations...
Human knowledge belongs to the world!
Subscribe to:
Post Comments (Atom)
Why Your New External Drive is Breaking Your macOS Builds
Picture this: you're running dangerously low on disk space, so you invest in a brand new external drive. Time to migrate your developmen...
-
VMware Fusion provides a nice functionality of sharing folder from host (Mac OSX) to guest (Ubuntu). But then, it seems they are more focus...
-
Recently, while investigating a production issue, I needed to deploy the production Docker image locally for debugging purposes. However, I ...
-
I frequently encounter architectural decisions that seem counterintuitive from an operational perspective. Recently, while containerizin...
No comments:
Post a Comment