I have 2 severs, both running server 2008 (R2)
One is the web server, one is running as a mail server.
The setup I want is that any mail sent from apps (php, asp and asp.net) on the web server are sending mail through the mail server's SMTP server...but this seems to be proving trickier than i'd hoped.
The mail server is running MailEnable, and the web server IIS7 (maybe 7.5)
What i don't want is to setup an open relay SMTP server on the web server, as this is going to be open to abuse (even if I just allow relay from local address).
the problem is, there doesn't appear to be a way to specify credentials in php so if I point it at the mail server, then the mail server has to be set as an open relay, which is almost worse.
Any ideas how I should be doing this?