I am trying to connect to external SMTP servers with a PHP script. If I log in as root and telnet to "mymailserver.com" on port 25 it works fine. However my script comes back unable to connect to mymailserver.com:25 (Network is unreachable) ... fsockopen error 101
this points to some sort of odd firewall issue or something to do with my php config? I'm at a total loss here.
Upon further investigation it looks like something to do with php is blocking it. I can telnet, I can run the script as root with PHP CLI and it works, but running it from the web fails. The request isn't getting sent out to that port, checked it with wireshark. Any suggestions out there?
this points to some sort of odd firewall issue or something to do with my php config? I'm at a total loss here.
Upon further investigation it looks like something to do with php is blocking it. I can telnet, I can run the script as root with PHP CLI and it works, but running it from the web fails. The request isn't getting sent out to that port, checked it with wireshark. Any suggestions out there?
Last edited: