all groups > iis smtp nntp > december 2005 >
You're in the

iis smtp nntp

group:

SMTP server in IIS 5.1


SMTP server in IIS 5.1 Stuart McCoy
12/24/2005 3:37:41 PM
iis smtp nntp:
I'm trying to setup the SMTP server is IIS and for some reason I can't
create any virtual servers in the MMC for IIS. In fact, I can't even see
the SMTP server listed in the MMC at all. Both FTP and HTTP are running
just fine. The SMTP service is running but I found this error message in
the system event logs. Any ideas on how I can get the server running?

Event Type Error
Event Source smtpsvc
Event Category None
Event ID 1004
Date 12232005
Time 101426 PM
User NA
Computer MARS
Description
Virtual server 1 was unable to register itself and the local delivery sink
with the event binding database. Server events and local delivery will not
function properly for this virtual server.

For more information, see Help and Support Center at
httpgo.microsoft.comfwlinkevents.asp.
Data
0000 54 01 04 80 T..?

Re: SMTP server in IIS 5.1 Stuart McCoy
12/27/2005 3:26:11 PM
I should add that the link provided in the System Error and Events log
provides no useful information:

We're sorry
There is no additional information about this issue in the Error and
Event Log Messages or Knowledge Base databases at this time. You can use the
links in the Support area to determine whether any additional information
might be available elsewhere.


[quoted text, click to view]

Re: SMTP server in IIS 5.1 Al Mulnick
12/27/2005 5:35:18 PM
Hazard a guess: permissions or an install problem. Perhaps a configuration
issue with the NIC.
http://support.microsoft.com/default.aspx?scid=kb;en-us;297261 is one place
to consider when looking, but I think a better place is to start by telling
us exactly what you did to get this far and what exactly you're working with
(OS, version, etc)

Al

[quoted text, click to view]

Re: SMTP server in IIS 5.1 Stuart McCoy
12/27/2005 9:02:32 PM
Yeah, I guess knowing I'm trying this in Windows XP Pro SP2 might be
helpful. What I did to install the SMTP server was to go to Add/Remove
Software in Control Panel and select SMTP. The install goes smoothly and
seems to work properly. In c:\inetpub I have a new mailroot directory with
subfolders for badmail, drop, mailbox, pickup, queue, route, and sorttemp.
A new service is added for SMTP and it starts and stops just fine. When I
go to the IIS node in the MMC I can see my HTTP and FTP serves just fine but
there is no node for the newly installed SMTP server so there is no way for
me to configure it. The Error and Events log ha an entry which I've already
included in an earlier post. I just tried the suggestion in the Knowledge
Base article Q297261 but there was no change. I had the File and Printer
Sharing for Microsoft Networks service installed and running properly.

[quoted text, click to view]

Re: SMTP server in IIS 5.1 Al Mulnick
12/28/2005 10:18:48 PM
If they start/stop/run fine, then perhaps you just need to register them?
From:
http://groups.google.com/group/microsoft.public.inetserver.iis.smtp_nntp/browse_thread/thread/b95bf4000b180f12/2a559a5734e03b35%232a559a5734e03b35?sa=X&oi=groupsr&start=1&num=3
Also here is another reason why this issue may occur: some dll getting
unregistered.
1. Go to a command prompt on the IIS server.
2. Go the following directory at the command prompt
%systemroot%\system32\inetsrv
3. Type in the following commands
regsvr32 inetmgr.dll
regsvr32 smtpsnap.dll
4. Then close and reopen IIS manager console



[quoted text, click to view]

Re: SMTP server in IIS 5.1 Stuart McCoy
1/1/2006 9:42:46 PM
Thanks for your help. Reinstalling all of IIS seemed to celar the problem
up. The server appears to be running but now my page which sends teh SMTP
request gives me a error:

Error Type:
CDO.Message.1 (0x80040213)
The transport failed to connect to the server.
/newland/message_sent.asp, line 14

Not sure what's causing this but I think I can take it from here. I don't
think I have all the proper security permissions set on my IIS server
folders since the reinstall and it's possible I don't have something
configured correctly in the SMTP snap-in though with the spartan settings
available using IIS on Windows XP I don;t know where I could have gone
wrong.


[quoted text, click to view]

Re: SMTP server in IIS 5.1 Al Mulnick
1/2/2006 7:28:27 AM
Well, I haven't seen your code, but this might help if you get stuck
http://www.iis-resources.com/modules/newbb/viewtopic.php?topic_id=1452&forum=4

Cheers,

Al
[quoted text, click to view]

Re: SMTP server in IIS 5.1 Stuart McCoy
1/2/2006 5:05:17 PM
The code is from a book, 'Dreamweaver 8 with ASP, ColdFusion, and PHP'. I
got it to learn how to use Dreamweaver to build some small dynamic sites
which more and more of my clients are requesting. I'm interested in the ASP
and PHP aspects of dynamic sites and this book seemed a good way to get up
and running quickly. They suggest, and use, learning JScript instead of
VBScript. For the time being I'm going to stick to the lessons but I think
once I'm done with the book, doing both the ASP and PHP (IIS is great this
way) versions of the site, I'm going to go back and figure out how to
convert the JScript to VBScript.

The code for simply hooking up a page which will send an e-mail is listed
below:

<%
theSchema="http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig=server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(theSchema & "sendusing")= 2
cdoConfig.Fields.Item(theSchema & "smtpserver")="mailserver.yourserver.com"
cdoConfig.Fields.Update

set cdoMessage=Server.CreateObject("CDO.Message")
cdoMessage.Configuration=cdoConfig

cdoMessage.From="yourname@yourhost.com"
cdoMessage.To="yourname@yourhost.com"
cdoMessage.Subject="This is the message subject"
cdoMessage.TextBody="This is the message body"

cdoMessage.Send

Set cdoMessage=Nothing
Set cdoConfig=Nothing
%>


[quoted text, click to view]

Re: SMTP server in IIS 5.1 Stuart McCoy
1/2/2006 6:05:10 PM
I think I figured the problem out. Setting sendusing to 1 instead of 2
worked.

[quoted text, click to view]
AddThis Social Bookmark Button