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 am trying to set up an SMTP server on a virtual private server. I have typically hosted applications with hosting companies in the past.

I am using SMTP on a website to send mail but need to configure IIS's SMTP Server to allow me to send the mail. I have a couple of questions around this:

  1. What settings do I need to set to enable me to hit mail.myDomain.com and provide a user name and password for the mail to send?
  2. What security issues do I need to be aware of and how do I lock down the SMTP server?
<monorail
  useWindsorIntegration="true"
  checkClientIsConnected="true"
  smtpHost="mail.myDomain.com"
  smtpUsername="myUsername" smtpPassword="XXX"
>
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Under the properties for SMTP Server in IIS 6.0 Manager, you will need the following:

General Tab:

Set the IP address that mail.myDomain.com resolves to.

Access Tab:

Access Control (Authentication): You can use Basic, or use Integrated Windows Authentication and allow the account associated with your IIS Application Pool (assuming web server is on same computer). Using basic may not be a significant issue assuming the web site and SMTP server are co-hosted. Otherwise you might want to consider TLS Encryption.

Connection Control/Relay Restrictions (Connection and Relay): Here you can specifically allow sending/relaying only from the IP address(es) of your server, preventing sending by third parties.

Delivery Tab

(Advanced): If you are sending to a broad range of users, you will likely need to ensure that your masquerade domain is set. An extra step will be ensuring that the IP address of your SMTP server will show as the masquerade domain on a reverse lookup. Your provider will likely need to help with this. Failure to address this could result in mail being rejected by the receiving server.

share|improve this answer
    
Thanks for the reply. How do I set the username and password on the mail server account to send mail under? Thanks again, B –  Burt Nov 21 '09 at 18:12

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.