Setting up a test SMTP Server

smtpwindows-server-2003

I'm really a total newbie to this, so excuse the basicness (?) of the question.

I have a default installation of Windows Server 2003, and I want to test an e-mailing application.

  1. What's the process for setting up an SMTP server on that box? Does Windows Server 2003 provide one, or can I install a free one? Which one?
  2. I want to test my app in terms of delivering the e-mail to the SMTP server, but I don't actually need the e-mails to go out. Is there a way to have the SMTP server behave as it normally would, except just don't send out the e-mails?

cheers

andy

Best Answer

  1. As Matt alluded to, use the "Manage Your Server" screen to add the SMTP role as per these instructions.
  2. You could use Windows Firewall on that server to block all outgoing traffic over port 25. Better yet, block all outbound port 25 traffic from your server's IP address at the gateway's firewall. This keeps you from crippling the server's network connection completely.

You could read up a bit on SMTP security on Windows Server 2003 with the following Microsoft KB Article 324285 (sorry, you'll have to find that one on your own; Server Fault only allows new users to post one URL per post). That article shows that you can grant or deny access to the SMTP virtual server based on IP addresses. This could be yet another alternative way of restricting mail flow to only those few places that you want to allow.

Related Topic