SMTP (Windows 2008, IIS 7.5 and IIS 6.0)
(Simple Mail Transfer Protocol)
SMTP
- 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.
http://technet.microsoft.com/en-us/library/cc772058%28WS.10%29.aspx -
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)
v6.0 Manager"
- 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
Server
(follow the prompts)
- Start SMTP Server
Start, Administrative Tools, Internet Information Services (IIS) v6.0
Manager
If SMTP is not running then right click on the SMTP Server and click
"Start"
- 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
"Properties"
Startup Type: Automatic
- Configure SMTP Server: (Connection & Relay)
Start, Administrative Tools, "Internet Information Services (IIS)
v6.0 Manager"
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
key!
telnet localhost 25<enter>
helo localhost<enter> (Note: aka 127.0.0.1)
mail from:test@abc.com<enter> (Note: any email address)
rcpt to:someone@somewhere.com<enter> (Note: Send email to yourself!)
data<enter>
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.)
Error:
Connecting To localhost...Could not open connection to the host, on port
25: Connect failed
Fix: Make sure the SMTP server is running.
Error:
550 5.7.1 Unable to relay for thomasma@us.ibm.com
Fix: Add 127.0.0.1 to the "Access", "Relay" list of servers. Or other IP
address, domain etc… as needed