473,416 Members | 1,636 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,416 software developers and data experts.

Sending mail from domain controller with .NET

First some background...

I have an application whereby I send a mail, attach some attachments stored
in the windows/temp directory and then send them. This works fine on 2
servers both are not Domain controllers and therefore run under the ASPNET
userID.

I have one server (the live one) which is a domain controller and therefore
has to run using the IWAM_ account this makes things complicated and I have
had other issues with security policies already.

At present the problem is that when I send a mail the attachments fail to be
attached, I just get essentially an empty file. I found the following
suggestion on a forum:
====
"When I merge the two graphics, and write the file out to the disk, it is
then attached to an email and sent out. The problem was that the email
attachments were empty files.

The solution is to give the folder (in which the file you wish to attach
resides) explicit permission to the ASPNET machine account.

The problem is even though ASP.NET is a member of the USERS group, which by
default has permission for the local disk, ASP.NET runs out-of-process and
the SMTP SendMail call seems to be asynchronous, which may cause it to not
authenticate properly. Explicitly giving permission to the ASPNET process
solves this issue. The best thing to do is to create a folder that is made to
hold the files, far away from important folders such as system root, and give
the ASPNET account full control of that folder, and nothing else."

====

However since I am on a Domain Controller using the IWAM account this does
not work. I presume whatever is spawning to send the mail does not have the
authority so finally the question:

What do I need to give authority to and where to make this work?!

I have already given full privileges to 'IWAM_...' , and 'Everyone' but no
joy although it works if I run from the local machine as 'Administrator'

Any suggestions?

Thanks,

Richard.
Nov 19 '05 #1
0 1468

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

Similar topics

6
by: Owen | last post by:
I am sending email using CDO but it only seems to work when the "To" address is within the same domain as mine. When I send to an outside domain (eg. yahoo.com) the mail simply does not reach...
2
by: Frank | last post by:
I have observed that a temporary loss of a domain controller can cause problems creating new ado connections between a client machine running ado and a separate sql server machine that are members...
1
by: SL | last post by:
How do I set up access to a file on a Windows Server 2003 Domain Controller that also has IIS? The file sits on another server. The Domain Controller / IIS server connects to this file through a...
0
by: bi89101 | last post by:
I'm trying to debug a C++ application on the local machine (not ASP.NET) which happens to be a domain controller. Administrators can debug, but domain users cannot. I have looked at the debugger...
7
by: D. Patrick | last post by:
I need to duplicate the functionality of a java applet, and how it connects to a remote server. But, I don't have the protocol information or the java source code which was written years ago. ...
3
by: rabselling | last post by:
Hello everyone, I have a domain where there in the network,140 computers working. When ever the new computer come and want to have network, i make a connection with the domain and i give every...
4
by: Leo | last post by:
Hi, guys. I want to use c# to get the privilege of a domain controller in a non-DC machine as i have the user name and password of DC. But i can't find any functions in MSDN. Has anyone met the...
0
by: SandVich | last post by:
i had two servers with Windows2000 Advance server OS. One is main Domain Controller and second on is additional. A problem occurred in additional domain controller and ultimately i had to format...
7
by: undbund | last post by:
Hi I am creating a newsletter system. The software should run from desktop computer (localhost) but be able to send email to anyone on the internet. Can you guys give me some ideas on how to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.