I'm having some trouble with setting up a SMTP server on a windows server 2003 machine, while trying to send emails using PHP through the internet, but to domain email addresses.
Common info:
- Machine has Windows Server 2003 Server
- Machine on a domain (mydomain.com)
- Machine is not a domain controller
- Machine accesses a domain controller through the internet (WAN with a corporate VPN link by the internet provider setup on the machine's gateway - adsl modem/router)
- Email addresses use the same suffix (mydomain.com)
- Do not have access to domain controller configuration
First Scenario
- TCP/IP DNS: 1st 192.168.200.xxx 2nd 8.8.8.8
- Direct access to domain controller is functional
- PHP mail using localhost to a [email protected] won't work, because the remote mail server rejects emails from internal traffic (apparently!?!)
Second Scenario
- TCP/IP DNS: 1st 8.8.8.8 2nd 192.168.200.xxx (switched)
- Direct access to domain controller is not functional, only local accounts work
- PHP mail using localhost to a [email protected] does work, because the remote mail server is accessed through its internet/external address.
So, what I needed is to have both (1) access to the domain controller and (2) PHP mail using localhost to a [email protected] account working.
Any pointers? Thanks in advance