SMTP (Windows 2008, IIS 7.5 and IIS 6.0)
(Simple Mail Transfer Protocol)
- SMTP Setup for Windows 2008 (IIS 7.5)
The SMTP server for IIS7 is just a management tool. Basically, there is
only one real SMTP service which is in IIS6. The IIS7 SMTP Server is
just another way to manage the old IIS6 SMTP and doesn't act as a
separate email service.
configure SMTP E-Mail IIS 7.
http://technet.microsoft.com/en-us/library/cc754007(WS.10).aspx - SMTP
E-mail Feature Requirements (IIS 7)
- SMTP Setup for Windows 2008 (IIS 6.0)
4.2.1. Check & Possible Install SMTP Server
- Start, Administrative Tools, "Internet Information Services (IIS)
- If you don't have this option proceed:
How to install the Management Tool in IIS 7.
Start, Administrative Tools, Server Manager
Go to the "Features Summary"area.
If you don't see "SMTP" listed then continue
Click "Add Feature".
- If you don't see an "SMTP" server listed under the server name
then you need to install SMTP Server v6.0.
Skip the next step if you have a SMTP server!
- Right click on the Server Name and choose: New, SMTP Virtual
(follow the prompts)
- Start SMTP Server
Start, Administrative Tools, Internet Information Services (IIS) v6.0
If SMTP is not running then right click on the SMTP Server and click
- SMTP Service - Set to Automatic
Set the SMTP Service to Automatic so it will start after a reboot.
Start, Administrative Tools, Services
Right click on "Simple Mail Transfer Protocol Service" and choose
Startup Type: Automatic
- Configure SMTP Server: (Connection & Relay)
Start, Administrative Tools, "Internet Information Services (IIS)
Right click on "SMTP Virtual Server" and choose "Properties"
Click the "Access" tab.
Click "Connection", select "All except the list below", Click "OK".
(List should be empty)
Click "Relay", select "Only the list below"
Click "Add", "Single Computers", 127.0.0.1 (This will allow just
this local server to email.)
- Note: To send emails via SMTP use localhost or send through another
server using the IP address:
Test sending an Email via DOS:
(Note: Do these steps while you are on the server!)
Try not to use the "backspace" key. It does not remove the prior typed
telnet localhost 25<enter>
helo localhost<enter> (Note: aka 127.0.0.1)
mail from:firstname.lastname@example.org<enter> (Note: any email address)
rcpt to:email@example.com<enter> (Note: Send email to yourself!)
To: <To display email address><enter>
From: <From display email address><enter>
Subject: a test message<enter>
Sending a test email from my server<enter>
<enter>.<enter> (Note: there is a period between the enter keys.)
Connecting To localhost...Could not open connection to the host, on port
25: Connect failed
Fix: Make sure the SMTP server is running.
550 5.7.1 Unable to relay for firstname.lastname@example.org
Fix: Add 127.0.0.1 to the "Access", "Relay" list of servers. Or other IP
address, domain etc… as needed