Monday, March 26, 2012

SMTP Question

What do you mean by : > I don't have an "ASP.NET" Machine account to set
privilidges to folder "C:\Inetput\Mailroot" on server <

If that means that your aspnet_wp is running under some other identity
(machine.config), then I would look there, and see what needs to be done
accordingly (what identity needs to get the necessary rights)... an easy way
to check what identity aspnet_wp is running under is looking at processes in
the Task Manager ...

"David" <anonymous@dotnet.itags.org.discussions.microsoft.com> wrote in message
news:50F4EA5E-FA01-427A-A688-6E97B4CA68AF@dotnet.itags.org.microsoft.com...
> I need to send e-mail from within an ASP.NET web page. Having problem.
Need assistance.
> Have two installation scenarios: 1) local machine (development machine
connected to network); 2) network server. I use Mail.MailMessage class
within ASP.NET page to send e-mail from the web site pages.
> On local machine - have IIS installed; SMTP Service installed and running;
When I access web app from this development machine (localhost), I can
successfully send e-mail to anyone from web page. This works provided I set
protection for C:\Inetpub\MailRoot by adding ASP.NET Machine Account
(Read,Write) privilidges - Properties | Security on folder
> On network machine - have IIS installed; SMTP Service installed and
running; When I access web app installed on this server (servername), I
cannot send e-mail to anyone. No error - just the e-mail is never sent.
SMTP is running as service too! I don't have an "ASP.NET" Machine account
to set privilidges to folder "C:\Inetput\Mailroot" on server - but I have
IUSR_servername, IWAM_servername, _WebApplications - but setting
(read,write) privilidges - Properties | Security on folder
"C:\Inetput\Mailroot" makes no difference - recipients still don't get
e-mails
> What is missing on the network machine - what have I overlooked - what am
I possibly doing wrong on the network server.
> PLEASE ADVISE ASAP! What must I do for the server machine.Have aspnet_wp.exe process. Gives ID. not sure I can do anything with this ID

On development machine - have "domain\ASPNET" - this is the machine account

On network machine - have "IUSER_Holybull", "IWAM_Holybull" - as machine account - Holybull is machine name. I don't have a specific ASPNET account

What could I be doing wrong!
check your machine.config ...
(c:\windows\Microsoft.Net\Framework\1.1.4322\Confi g\machine.config) if you
are using Win2000, it will be at WINNT instead of windows, if you are using
Framework 1.0, you will have 1.0.3705 instead of 1.1.4322 ...
in teh config, look for
<processModel userName=

that will give you the userID used by asnet_wp
"David" <anonymous@.discussions.microsoft.com> wrote in message
news:82B3AF7E-95E9-45E8-B98E-DBA99E09AE37@.microsoft.com...
> Have aspnet_wp.exe process. Gives ID. not sure I can do anything with
this ID.
> On development machine - have "domain\ASPNET" - this is the machine
account.
> On network machine - have "IUSER_Holybull", "IWAM_Holybull" - as machine
account - Holybull is machine name. I don't have a specific ASPNET account.
> What could I be doing wrong!
I did find the following... C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG\ machine.confi

I did locate proper section, i.e., I found in <processModel userName="machine" (implies ASPNET

I changed to "SYSTEM" - then put system privilidges on the folder & subfolders of C:\Inetpub\wwwroot - gave all privildges

I still can't get e-mail. I've noticed there is no e-mail in any of the subfolders of C:\Inetpub\wwwroot either. Is there anyway to identify what is creating a conflict here. What could be creating the conflict - note: I can send e-mail too from the network account - what could halt sending of mail by IIS SMTP Server

Thank you always foryour support -
If the problem is not due to access right, there are few things I would
personnally do, but that is just guessing ...

When you say :
> I changed to "SYSTEM" - then put system privilidges on the folder &
subfolders of C:\Inetpub\wwwroot - gave all privildges.

are you talking about mailroot or wwwroot ?

1. Is your SMTP limited to use valid accounts on the machine ? in that case,
the FROM property has to have a valid account ... Is that the case ?
2. What is happening on the Inetpub\mailroot (or what ever customized folder
you are using for the smtp service) ?
3. did you try to use Outlook or outlook express to test sending through
that smtp server ? maybe the problem is in the setup of the smtp service
itself ...

"David" <anonymous@.discussions.microsoft.com> wrote in message
news:86BDDA2A-DE91-48AE-9BDD-E92162B521CC@.microsoft.com...
> I did find the following...
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG\ machine.config
> I did locate proper section, i.e., I found in <processModel
userName="machine" (implies ASPNET)
> I changed to "SYSTEM" - then put system privilidges on the folder &
subfolders of C:\Inetpub\wwwroot - gave all privildges.
> I still can't get e-mail. I've noticed there is no e-mail in any of the
subfolders of C:\Inetpub\wwwroot either. Is there anyway to identify what
is creating a conflict here. What could be creating the conflict - note: I
can send e-mail too from the network account - what could halt sending of
mail by IIS SMTP Server?
> Thank you always foryour support -
(1) Talking about mailroot : alway
(2) My e-mail is used in the fro
(3) I am using the C:\Inetpub\mailroot folder for SMTP service. I did use outlook express earlier to verify I can send myself an e-mail message from this server and I did receive it from the system. I didn't setup the SMTP on this machine though - I set it up on my development machine and it works. The MIS director/or his close associate I believe set this up - it's very frusrtating for me - since it appears they do do things in adhoc ways here & my hands are somewhat tied - I can't say much about how its done here - their solution was to use SQL to do this (very frustrating). In any event, It could also be a problem with the setup - I'll have to examine again - but I'm not sure where to look anymore - standard information I have seems to show it works fine at this time. Any other suggestion

Question: Does the Visual Studio.NET have to be installed on the server in full to use IIS too. What is the minimal installation - since I'm not given really any meaningful feedback about what's installed here too... - I have to piece it together as best as I can

Thanks
david
no, VS doesn't have to be installed on the server, just the framework redist
(dotnetfx.exe) ... and if it wasn't there, there would be no aspnet either
... however, I would be worried about the quality of the setup, since the
ASPNET account has been deleted obviously ... who knows what else is has
been done ...

"David" <anonymous@.discussions.microsoft.com> wrote in message
news:A2DE2C5B-0653-4986-A707-BB88C7D4E51D@.microsoft.com...
> (1) Talking about mailroot : always
> (2) My e-mail is used in the from
> (3) I am using the C:\Inetpub\mailroot folder for SMTP service. I did use
outlook express earlier to verify I can send myself an e-mail message from
this server and I did receive it from the system. I didn't setup the SMTP
on this machine though - I set it up on my development machine and it works.
The MIS director/or his close associate I believe set this up - it's very
frusrtating for me - since it appears they do do things in adhoc ways here &
my hands are somewhat tied - I can't say much about how its done here -
their solution was to use SQL to do this (very frustrating). In any event,
It could also be a problem with the setup - I'll have to examine again - but
I'm not sure where to look anymore - standard information I have seems to
show it works fine at this time. Any other suggestion?
> Question: Does the Visual Studio.NET have to be installed on the server in
full to use IIS too. What is the minimal installation - since I'm not given
really any meaningful feedback about what's installed here too... - I have
to piece it together as best as I can.
> Thanks,
> david

0 comments:

Post a Comment