Sendmail - separate web and mail servers

[I]Hi all,

I’m having a problem with setting up sendmail, in that I am trying to send email to an @domain.com address, from the web server for @domain.com. I think sendmail thinks the domain is local and it should handle mail for it as well as the web, but I want mail sent from that machine (eg, using PHP’s mail() function) to leave the machine and go to the mail server (which is hosted by a third party to me).[/I] [I]

Does anyone know how to achieve this?[/I] [I]

Cheers

[/I]Sorry, scrap all that - problem solved as soon as I had posted - typical!