473,386 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

SMTP Settings on Production Machine

Please help: I found some of the following information in messeges in this
group but I would like someone to confirm them please.

I would like to use the following web-services / ASP.Net code to be used in
an intranet environment:

MailMessage Message = new MailMessage();
Message.To = ...
....
SmtpMail.SmtpServer = ...
SmtpMail.Send(Message);

In order for this code to work on a production machine the following IIS
components will be required (is that correct):
1. WWW Server, etc.
2. SMTP Service

Is the [SMTP Service] required even if there is Exchange-Server running on
another server?

In order to making e-mailing work with a domain-user recognised by the
exchange-server, is it true that I need to edit web.config file in the
following way?

<identity
impersonate="true"
userName="DOMAIN\UserName"
password="Password" />

Does this mean that this ASP.Net will use this identity for all server
accesses including database access? Should I be setting database security
for this application using this identity and not the ASPNET user?

Please help and give more info.
Nov 18 '05 #1
4 2445
asp.net does not support exchange. it only talks to SMTP, so your exchange
server must host SMTP. The SMTP does not need to be local, just one you have
access to. the standard asp.net mail library does not support any
authentication, if you use the lower level CDO library you can add headers
to support basic.

its common to setup a local SMTP server that talks to the real SMTP server
becuase it can supply authenication.

if you buy a third part email control that supports exchange, you will need
to setup an identity in the web config, but its not used by SMTP.

-- bruce (sqlwork.com)

"Tushar" <xx*************@CODA.com> wrote in message
news:ue**************@TK2MSFTNGP12.phx.gbl...
Please help: I found some of the following information in messeges in this
group but I would like someone to confirm them please.

I would like to use the following web-services / ASP.Net code to be used in an intranet environment:

MailMessage Message = new MailMessage();
Message.To = ...
...
SmtpMail.SmtpServer = ...
SmtpMail.Send(Message);

In order for this code to work on a production machine the following IIS
components will be required (is that correct):
1. WWW Server, etc.
2. SMTP Service

Is the [SMTP Service] required even if there is Exchange-Server running on
another server?

In order to making e-mailing work with a domain-user recognised by the
exchange-server, is it true that I need to edit web.config file in the
following way?

<identity
impersonate="true"
userName="DOMAIN\UserName"
password="Password" />

Does this mean that this ASP.Net will use this identity for all server
accesses including database access? Should I be setting database security
for this application using this identity and not the ASPNET user?

Please help and give more info.

Nov 18 '05 #2
Thank you for the reply Bruce.

I am confused, if ASP.Net does not use authentication and I'm currently
using Exchange-Server, be it via SMTP, then how is it sending out emails? I
though Exchange Server requires authentication.

Please help.

regards,
Tushar

"bruce barker" <no***********@safeco.com> wrote in message
news:O6**************@TK2MSFTNGP14.phx.gbl...
asp.net does not support exchange. it only talks to SMTP, so your exchange
server must host SMTP. The SMTP does not need to be local, just one you have
access to. the standard asp.net mail library does not support any
authentication, if you use the lower level CDO library you can add headers
to support basic.

its common to setup a local SMTP server that talks to the real SMTP server
becuase it can supply authenication.

if you buy a third part email control that supports exchange, you will need
to setup an identity in the web config, but its not used by SMTP.

-- bruce (sqlwork.com)

"Tushar" <xx*************@CODA.com> wrote in message
news:ue**************@TK2MSFTNGP12.phx.gbl...
Please help: I found some of the following information in messeges in this
group but I would like someone to confirm them please.

I would like to use the following web-services / ASP.Net code to be used in an intranet environment:

MailMessage Message = new MailMessage();
Message.To = ...
...
SmtpMail.SmtpServer = ...
SmtpMail.Send(Message);

In order for this code to work on a production machine the following IIS
components will be required (is that correct):
1. WWW Server, etc.
2. SMTP Service

Is the [SMTP Service] required even if there is Exchange-Server running on
another server?

In order to making e-mailing work with a domain-user recognised by the
exchange-server, is it true that I need to edit web.config file in the
following way?

<identity
impersonate="true"
userName="DOMAIN\UserName"
password="Password" />

Does this mean that this ASP.Net will use this identity for all server
accesses including database access? Should I be setting database security
for this application using this identity and not the ASPNET user?

Please help and give more info.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
Nov 18 '05 #3

"Tushar" <xx*************@CODA.com> wrote in message
news:ue**************@TK2MSFTNGP12.phx.gbl...
In order for this code to work on a production machine the following IIS
components will be required (is that correct):
1. WWW Server, etc.
2. SMTP Service
On Windows 2000 and 2003 the classes in System.Web.Mail are essentially
wrappers for the CDOSYS library. I don't think IIS installs CDOSYS, though I
might be wrong about that. I believe it's part of the server itself.
Is the [SMTP Service] required even if there is Exchange-Server running on
another server?
No, the local SMTP is only needed if you are using it as a pickup/relay
system to another "smart host", typically an Exchange server. If you're
doing SMTP directly to the Exchange box then there's no need for it.
In order to making e-mailing work with a domain-user recognised by the
exchange-server, is it true that I need to edit web.config file in the
following way?
No, that depends on the Exchange server configuration. Normally it's
configured to relay mail only from a set of IP addresses (i.e., your
intranet), and more often than not they also require a valid domain address
(though not a mailbox). So you can send mail from 'm****@mydomain.tld' and
if the Exchange box accepts that then you should be OK. It has nothing to do
with NT security.
Does this mean that this ASP.Net will use this identity for all server
accesses including database access? Should I be setting database security
for this application using this identity and not the ASPNET user?


You don't need it, so the database authentication is another matter.
Personally I tend to stay away from integrated authentication and just use a
standard SQL Server login/password to connect to the database.
--

Klaus H. Probst, MVP
http://www.vbbox.com/
Nov 18 '05 #4
Thanks

"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:e4*************@TK2MSFTNGP11.phx.gbl...

"Tushar" <xx*************@CODA.com> wrote in message
news:ue**************@TK2MSFTNGP12.phx.gbl...
In order for this code to work on a production machine the following IIS
components will be required (is that correct):
1. WWW Server, etc.
2. SMTP Service
On Windows 2000 and 2003 the classes in System.Web.Mail are essentially
wrappers for the CDOSYS library. I don't think IIS installs CDOSYS, though

I might be wrong about that. I believe it's part of the server itself.
Is the [SMTP Service] required even if there is Exchange-Server running on another server?
No, the local SMTP is only needed if you are using it as a pickup/relay
system to another "smart host", typically an Exchange server. If you're
doing SMTP directly to the Exchange box then there's no need for it.
In order to making e-mailing work with a domain-user recognised by the
exchange-server, is it true that I need to edit web.config file in the
following way?


No, that depends on the Exchange server configuration. Normally it's
configured to relay mail only from a set of IP addresses (i.e., your
intranet), and more often than not they also require a valid domain

address (though not a mailbox). So you can send mail from 'm****@mydomain.tld' and
if the Exchange box accepts that then you should be OK. It has nothing to do with NT security.
Does this mean that this ASP.Net will use this identity for all server
accesses including database access? Should I be setting database security for this application using this identity and not the ASPNET user?
You don't need it, so the database authentication is another matter.
Personally I tend to stay away from integrated authentication and just use

a standard SQL Server login/password to connect to the database.
--

Klaus H. Probst, MVP
http://www.vbbox.com/

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andy Turner | last post by:
Hi, I'm trying to setup PHP so it will use a remote SMTP server. I'm going to sound like a newbie but how? I know you need to alter php.ini, change SMTP from localhost to the SMTP server and the...
4
by: Gerhard | last post by:
Hi, I some asp.net beta 2 code that works fine on an XP Pro machine, but on a Windows 2003 Server gets the following error: System.Net.Mail.SmtpFailedRecipientException {"Mailbox unavailable....
1
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to...
1
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net...
2
by: Kikoz | last post by:
Hi all. I'm using one PC/XP Pro as my development environment. Its IIS has one default web site, of course, which is the site I'm working on. When some feature is finished I deploy it to my...
0
by: Tushar Karsan | last post by:
Please help. I would like to use the following web-services / ASP.Net code to be used in an intranet environment: MailMessage Message = new MailMessage(); Message.To = ... .......
0
by: Tushar | last post by:
Please help: I found some of the following information in messeges in this group but I would like someone to confirm them please. I would like to use the following web-services / ASP.Net code to...
17
by: William Gill | last post by:
My development machine (WinXP, Apache 2.2.4) does not have an smtp server, and I don't really want to install one if I can help it. Does anyone know of a simple method of testing php scripts that...
1
by: tshad | last post by:
I have a W2K3 Server we are setting up to run a Windows Service for a client at their location. I don't want this machine to go through exchange or their local mail server, I just want the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.