recently i started using an exchange hosting company to host my email and i changed my MX records so that email to email@example.com
goes to their server. everything is working fine except for email sent from my web server (www.mydomain.com
specifically... i have a contact page (www.mydomain.com/contact.html
) on my website that uses a php script to send email to firstname.lastname@example.org
. it worked just fine before i started using the exchange host. actually the script still sends a message to the local 'info' account.
in sendmail i added 'email@example.com' as an alias to the local 'info' user but this has not made any difference.
i think the problem is that somehow the web server has no idea that the exchange server exists -- even though the MX records point to it.
any ideas how to fix this? thanks in advance!