all groups > iis smtp nntp > september 2007 >
You're in the

iis smtp nntp

group:

Need SMTP Server



Need SMTP Server Nick
9/2/2007 9:17:00 AM
iis smtp nntp: I need a SMTP Server to install on my Vista Home Premium operating system. I
don't have any way to modify the DNS entries and this will have to operate
on localhost. I will be using this to send emails from an ASP.Net web
application during development.



SmarterMail has not worked for me and no one has been able to give me
answers in this forum to get it to work. Now I need another approach. Any
suggestions from a person that has actually done this on Vista?
Re: Need SMTP Server Sanford Whiteman
9/2/2007 1:32:49 PM
[quoted text, click to view]

First, get it to work using OE or another MUA. You have not given any
evidence that you have the mail server set up correctly or know how to
test if it is so, so getting yet another mail server recommendation is
immaterial. SmarterMail's installation is extremely straightforward.
It listens on port 25 like a standard MTA. It accepts SMTP AUTH for
relay. That's all you need to know.

Your developers' mail component functions as a mail client (MUA) --
indeed, most components have fewer features than the leading MUAs. If
you can't get a regular MUA to work, your component won't work,
either. So please tell us what you've done to establish that the mail
server is working correctly. Have you searched/posted to their
community forums?

Re: Need SMTP Server Nick
9/2/2007 3:14:55 PM
I have sent mail to my msn account from the SmarterMail web interface,
therefore I know SmarterMail is working.

I don't know what OE and MUA is?

Are you one that "thinks" SmarterMail should work under Vista Home Premium
or one who knows that for sure?

[quoted text, click to view]
Re: Need SMTP Server Sanford Whiteman
9/2/2007 7:00:29 PM
[quoted text, click to view]

You absolutely, positively *do not* know that an SMTP server is
working by sending from its web interface. That proves only that the
SMTP *client* portion of SmarterMail is running. It is categorically
not the same thing, when you're having trouble writing a client
application that interfaces with SmarterMail's SMTP server.

[quoted text, click to view]

Outlook Express: commonly testable, if subpar, MUA. Mail User Agent: a
mail client application, usually IMAP4/SMTP, POP3/SMTP, or MAPI.

[quoted text, click to view]

I have no reason to believe it wouldn't work, since it doesn't do
anything at the kernel/device level that would require new drivers,
and it is a late-model Win32 application.

Re: Need SMTP Server Steve Schofield
9/4/2007 9:42:53 PM
Sanford. FYI. If he is logging into Smartermails web interface as a user,
and sending a message from the Web interface using this account, I would
think smartermail is working.

That said, I agree he should also test with Outlook Express, Thunderbird or
some other mail 'client' so you are sure emails are routing through your
Smartermail instance. The logs can tell you that for sure. Look in the
Logs folder, delivery.log file will contain the appropriate information.
Once you get this far, you can then write code to send emails using your
favorite 3rd party component or the built-in ones with .NET or CDOSYS.

I've been the one who mentioned Smartermail on occasion, this is not your
only option. There are other ones available. It is a shame MS does not
support IIS SMTP on Vista, the IIS SMTP was easy to configure from a dev's
perspective, it helped hide the configuration portion. But, from MS
perspective, I can see client OS's probably don't need an SMTP 'server' on
there.

--

Steve Schofield
Windows Server MVP - IIS
http://weblogs.asp.net/steveschofield


[quoted text, click to view]
Re: Need SMTP Server Sanford Whiteman
9/5/2007 12:48:27 AM
[quoted text, click to view]

Take into account that there're SMTP client and server modules of
every messaging suite, and it's typical for an integrated suite's
webmail module (as opposed to standalone webmail packages) to use a
proprietary submission mechanism, or just drop mail into the outgoing
queue, rather than using a standard RFC SMTP submission (which is
tremendously inefficient by comparison).

I just tested SmarterMail, and, as above, will submit mail to remote
servers even if the local SMTP port is not successfully listening.
Since we're likely dealing with local misconfiguration on a number
levels, that's exactly why assumptions shouldn't be involved. Now,
SmarterMail _might_ have turned out to be an exception -- its inbound
and outbound SMTP modules are more tightly coupled than other vendors'
-- but if somebody knows little about SMTP _and_ is new to this
particular product, they shouldn't assume its exceptionalism and think
they've done adequate testing. They must test using an SMTP client
that hits the SMTP module exactly as a component would.

IMail and Mercury/32, for two examples of well-known messaging suites,
have separate services for inbound (server) and outbound (client)
SMTP. If the inbound service fails to start (due to port conflict, for
example), the outbound queue continues to be serviced, and any app
that can submit mail into the outbound queue will never know that
anything is wrong.

Re: Need SMTP Server Nick
9/6/2007 7:19:45 AM
Steve,

I have downloaded and installed 4 or 5 SMTP email software products on my
Vista Home Premium. Some of these have a client program and some don't.
SmarterMail is the only one that sent an email out thought the web client.

I followed every lead that I could for sending email on Vista including
turning the firewall off and turning off the User Account Control. I have
changed every configuration setting I could in SmarterMail and then viewed
every event log.

I have posted questions on this forum as well as the SmarterMail forum. The
fact is that I have never even got a response from someone that can actually
tell me if SmarterMail or another product works on Vista Home Premium. I am
not interested in hearing from someone that has not actually got SMTP
working on Vista Home Premium.

[quoted text, click to view]
Re: Need SMTP Server Sanford Whiteman
9/6/2007 9:51:01 AM
[quoted text, click to view]

In that case, since you are not talking about _IIS SMTP_, you are in
the wrong forum.

I wish you luck in finding a product and product support community
that can help you with your specific need.

Rest assured that 3rd-party applications listening on port 25 are not
prohibited on any version of Vista, nor on any version of Windows.

Re: Need SMTP Server Nick
9/6/2007 9:58:07 AM
I am, in fact, talking about IIS SMTP. Just because I am working with Vista
Home Premium does not mean I do not have IIS7 installed on it. I'm also
doing development of an ASP.Net web application on this very operating
system using Visual Studio.Net.

Vista Home Premium users, I am anxious to hear from you now!

[quoted text, click to view]
Re: Need SMTP Server Sanford Whiteman
9/6/2007 1:42:33 PM
[quoted text, click to view]

No, _you are not_!

IIS SMTP (SMTPSVC) is a specific component that is part of some
editions of IIS; it is not part of your edition. This newsgroup
supports users of SMTPSVC.

It's self-evident that this isn't a wise place to expect support for
an application that is not in the newsgroup subject, let alone for
non-Microsoft applications. You're expecting support for a client
development environment and a server to be named later, when this ng
supports one server component.

[quoted text, click to view]

It means you don't have SMTPSVC installed on it (obviously).

[quoted text, click to view]

Yes, and an ASP.NET support community might be quite helpful to
you.... as, perhaps, would a Vista support community or the support
staff of a 3rd-party SMTP vendor.

I also note that you have not tested an actual MUA, which is the duty
of any mail client developer. If you resist standard troubleshooting
practices, you will not get out of your jam.

Re: Need SMTP Server Nick
9/6/2007 4:26:18 PM
Vista Users, Sanford Whiteman says we are not welcome here!

[quoted text, click to view]
Re: Need SMTP Server Sanford Whiteman
9/6/2007 7:01:07 PM
[quoted text, click to view]

Just like Windows 2000 users have no cause to post to an Exchange 2007
support group... or Windows XP 32-bit users have no reason to post to
a SQL Server 64-bit support group... etc.. If your OS can't run the
product that the group is designated for, why would you expect any
topical assistance? You're just fishing, quite belligerently at this
point, for off-topic advice, instead of posting to the many more
appropriate forums out there.

OTOH, if you want to bellyache about _the very fact_ that Vista
doesn't have the designated component anymore, that's on-topic and
understandable -- but I think you've made your point already. What
else can we say but, "I hope they put SMTPSVC, or its successor, back
in consumer OSs in future, so IIS SMTP experts can help out with setup
or operational issues"?

It seemed that Steve and I threw you a bone by talking about SM, but
you won't even test using a real MUA and/or post any session logs:
Troubleshooting 101.

Re: Need SMTP Server Steve Schofield
9/7/2007 7:55:24 AM
Hi Nick,

For your purposes as a developer, you want to verify your code works when
sending emails. To show you this works on Vista, I posted 2 code samples
and the email headers from an ASP and ASP.NET 2.0 webpage.

Sandy is correct, the IIS SMTPSvc is what this newsgroup supports. Also,
Vista does not have an SMTP service like they did in 2000, XP. Vista does
support the ability to have your application forward emails to a remote
host. That is the one 'feature' in the IIS manager, this is NOT an SMTP
server. I have used both SM and FreeSMTP service successfully on my Vista
machine. The FreeSMTP one is slick because it runs interactively. Meaning
when it's showing in the task bar, it works.
http://softstack.com/freesmtp.html

To verify SMTP is running, type netstat -an -p tcp. Look for 0.0.0.0:25.
This means all local ip's will handle communication on that port.

I'm not sure what else to suggest. Maybe your ISP is blocking port 25. We
understand your frustration, all we've tried to do is provide you
alternatives so you can test your code, which in the end is what I think you
want. Hope this helps.

Here is my examples.

------------------
ASP.NET 2.0 page
------------------
<html>
<body>
<%

'create the mail message
Dim mail As New System.Net.Mail.MailMessage()

'set the addresses
mail.From = New System.Net.Mail.MailAddress("steve@example.com")
mail.To.Add("steve@example.com")

'set the content
mail.Subject = "This is an email"
mail.Body = "this is the body content of the email."

'send the message
Dim smtp As New System.Net.Mail.SmtpClient("127.0.0.1")
smtp.Send(mail)
%>

</body>
</html>

------------------
ASP.NET 2.0 page email headers.
------------------

Notice the 'Received' line where it says received from pc1.aspdot.net to
mail.example.com, this is my local Vista box send to an external mail
server. The only thing I changed was the 'example' word. My domain is
'iislogs'. I don't need anymore spam harvesters getting my real email
address.

Return-Path: <steve@example.com>
Received: from pc1.aspdot.net [192.168.0.90] by mail.example.com with SMTP;
Fri, 7 Sep 2007 07:31:57 -0400
mime-version: 1.0
from: steve@example.com
to: steve@example.com
date: 7 Sep 2007 07:31:57 -0400
subject: This is an email
content-type: text/plain; charset=us-ascii
content-transfer-encoding: quoted-printable

this is the body content of the email.

------------------
Classic ASP example
-------------------
<html>
<body>

<%
sch = "http://schemas.microsoft.com/cdo/configuration/"

Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "127.0.0.1"
.update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "steve@example.com"
.To = "steve@example.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
response.write "Sent"
%>

</body>
</html>

------------------
Classic CDOSYS email headers using cdosys
------------------

Again, notice the 'Received' line where it says received from pc1.aspdot.net
to mail.example.com, this is my local Vista box sending to an external mail
server.

Return-Path: <steve@example.com>
Received: from pc1.aspdot.net [192.168.0.90] by mail.example.com with SMTP;
Fri, 7 Sep 2007 07:26:21 -0400
thread-index: AcfxQerDubACV5L/Q2aEgBOgiPw2rQ==
Thread-Topic: Sample CDO Message
From: <steve@example.com>
To: <steve@example.com>
Subject: Sample CDO Message
Date: Fri, 7 Sep 2007 07:26:21 -0400
Message-ID: <D7FBFDDB5A87496F9A7645E782A144DE@aspdot.net>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16480

This is a test for CDO.message



Hope this helps.

Best regards,

Steve Schofield
Windows Server MVP - IIS
http://weblogs.asp.net/steveschofield

http://www.IISLogs.com
Log archival solution.
Install, Configure, Forget


[quoted text, click to view]
Re: Need SMTP Server Nick
9/7/2007 8:08:45 AM
Thank you very much much Steve. This is information I can use. What I got
from this Sanford character seemed to be more in the form of abuse and
distain. These forums should be public forums where one goes for help on a
subject. Sanford seemed to be a self appointed moderator in his own private
forum. Power to the people!

Thanks again.

[quoted text, click to view]
Re: Need SMTP Server Steve Schofield
9/7/2007 8:34:30 AM
Hi Nick,

Another thing you can do to make sure your local SMTP server is working.
Change the SMTP port to 587 and send yourself a test message to your gmail
account, assuming you one.

I was able to successfully test on an alternative port, assuming your ISP is
blocking port 25. Port 587 is a well-known alternative SMTP port. Gmail
accepts email on this port. Here is my ASP code run on my Vista box. I
couldn't figure out how to extract the email headers from my gmail account,
but the message did get there. I used the FreeSMTP server. Hope that helps
you find an alternative so you can test your email code.

<html>
<body>

<%
sch = "http://schemas.microsoft.com/cdo/configuration/"

Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "127.0.0.1"
.Item(sch & "smtpserverport") = "587"
.update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "steve@example.com"
.To = "YourAccount@gmail.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
response.write "Sent"
%>


</body>
</html>

--

Best regards,

Steve Schofield
Windows Server MVP - IIS
http://weblogs.asp.net/steveschofield



[quoted text, click to view]
Re: Need SMTP Server Steve Schofield
9/7/2007 11:05:12 AM
I appreciate the nice comments. Sanford is very knowledgeable about SMTP
and I've enjoyed the threads learning a lot about other things I didn't
know. I hope this resolves your issue. And I wouldn't take too much
personnel, life's too short. I don't think he means it to be personal.

--

Take care,

Steve

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