The SMTP Service included in IIS is not a mail server, it is a
mail forwarding agent for mail-enabled Web Applicatons. It can
send and receive mail and relay mail from other SMTP hosts.
If you work on code at home, on your own server, then port it to the
hoster via FTP, TS or some other means you may need to have the
SMTP service setup. Most of my apps use some kind of email feedback
code that checks if I am on a dev server or not. The following
directions will help you set up the server and then depending upon your
agreement with the hoster you can either send the mail or just have it
dump to the mail queue. Either way you can easily simulate that portion
of your application without writing special code or finding some other
These instructions are for one virtual server even though you
can host multiple smtp virtual servers.
- Right click on myComputer and select manage.
- Expand the Services and Applications node of the tree.
- Select Internet Information Services
- Right click on SMTP Virtual Services
- Select the Delivery tab of the property sheet
- At the bottom of the screen select the Advanced button
- In the Masquerade domain enter "imposter"
- In the Fully-Qualified domain name enter your servers domain
- In the Smart Host textbox enter the IP address of your remote Mail
- Leave the two checkboxes unchecked when using imposter account
- Everything else should just be left as default
- Close the property sheet
- Right click on Domains.
- Click on new and select Remote
- Enter the domain name for the ISP
Once you have it configured you can stop the service so nothing really
goes out; but now when you test the email it will go to the queue which
means that it is working.
The queues for the smtp are located at c:\inetpub\mailroot and you can
check the queue for messages waiting to be sent.