I am trying to send an email from a normal php file directly to an internal MS Exchange mail server which is set to only accept email from port 25. SMTP is only allowed to go through the MS Exchange server because of router access lists.
So what we have is a web server (linux) running php5 and we are using the normal php mail() function. But, what we need to do is relay the email to the MS Exchange server.
So the kicker here is this: We cannot figure out how the hell to get the email to bounce over to the MS exchange server... from the web server.
Is this something we need to manage within php.ini or directly in our php file, or something that needs to get handled elsewhere.
So is the problem that using mail() does not use port 25, and is therefore not accepted by the MS Exchange server?
If your linux web server could email from 25 would that solve your problem, or have I not understood?
If it's just the port which is the issue SwiftMailer is probably able to send from a port of your choosing.