Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

What you want to look to set up is SMTP-AUTH. We do exactly what you're looking to achieve by creating what we call "proxy accounts" which are nothing more than dummy accounts to satisfy the SMTP-AUTH requirement while protecting the SMTP server from becoming an open relay.

Here is some PHP that describes how to specify an SMTP-AUTH connection: http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

From the Mail server product web site, I do not see SMTP-AUTH mentioned but I see how to setup MailEnable for smtp-auth here:

http://www.mailenable.com/kb/content/view.asp?ID=ME020335

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.