How to setup a web server with remote SMTP

Posted by IP on Server Fault See other posts from Server Fault or by IP
Published on 2010-08-23T15:10:10Z Indexed on 2011/01/16 3:55 UTC
Read the original article Hit count: 310

Filed under:
|
|
|

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?

© Server Fault or respective owner

Related posts about iis7

Related posts about smtp