Possible Duplicate:
postfix: force server to send mail outside of localhost
I have full control over a virtual dedicated server. The problem is the mail server resides elsewhere. I have a problem that when sending mail via php's mail function if the address shares the same domain name as the webserver it looks at the localhost, doesn't find the address, and rejects it. How can I configure my system to look outside for the mail server? Is this a hosts issue?