So, I ended up starting from scratch, just to make sure I only had the minimal install on there, and that there weren't any conflicting packages.
SELinux was still keeping me from connecting to the external mail server, however.
I would receive warnings like this:
[Warning]: stream_socket_client(): unable to connect to mail.mydomain.com:25 (Permission denied) (Transport/StreamBuffer.php:263)
I found that I needed to allow HTTPD scripts and modules to connect to the network by setting an SELinux boolean for
I did this by running the following command:
setsebool -P httpd_can_network_connect on
If you don't use the
-P flag, the change is not saved to the policy file, and will not persist through reboots.
Just thought I'd post this for anyone else that runs into a similar issue. I believe that
httpd_can_network_connect not being set to
on was causing the
sendmail error as well.