CreateObject("CDONTS.NewMail") fails
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > CreateObject("CDONTS.NewMail") fails




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    CreateObject("CDONTS.NewMail") fails  
Richard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-19-04 10:57 PM

We have an ASP page running on IIS 5.0 running on Win2K Server with Exchange
Server running on the same box.

This ASP page runs has a line of code that sends an email using:

CreateObject("CDONTS.NewMail")

This page runs fine under windows ingegrated authentication, but fails with
anonymous user access (IUSR_<computername> ).  What do we need to make it wor
k
under anonymous access.

I have seen similar question before in this posting, but the fixes suggest
do not work for me, as we have no virtual SMTP running under IIS.

We have tried to use workaround 2 mention in the following KB, but its
failing:
http://support.microsoft.com/default.aspx?kbid=816789

We have tried givng Read/execute permission to IUSR_<computername> on
CDONT.DLL.  I have

tried giving Read/execute permission to  IUSR_<computername> on the NTFS
folder that has the asp page.

May I know how to set the right permissions to allow the ASP page work under
anonymous access.

--
Richard Vosylius
Endeavor Commerce





[ Post a follow-up to this message ]



    Re: CreateObject("CDONTS.NewMail") fails  
Ken Schaefer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-20-04 01:48 AM

...and what is the exact error message etc? "doesn't work" isn't very
helpful :-)

Cheers
Ken

"Richard" <Richard@discussions.microsoft.com> wrote in message
news:60380AFB-FE2B-48C1-9B24-3BED58A2FC9A@microsoft.com...
> We have an ASP page running on IIS 5.0 running on Win2K Server with
> Exchange
> Server running on the same box.
>
> This ASP page runs has a line of code that sends an email using:
>
> CreateObject("CDONTS.NewMail")
>
> This page runs fine under windows ingegrated authentication, but fails
> with
> anonymous user access (IUSR_<computername> ).  What do we need to make it
> work
> under anonymous access.
>
> I have seen similar question before in this posting, but the fixes suggest
> do not work for me, as we have no virtual SMTP running under IIS.
>
> We have tried to use workaround 2 mention in the following KB, but its
> failing:
> http://support.microsoft.com/default.aspx?kbid=816789
>
> We have tried givng Read/execute permission to IUSR_<computername> on
> CDONT.DLL.  I have
>
> tried giving Read/execute permission to  IUSR_<computername> on the NTFS
> folder that has the asp page.
>
> May I know how to set the right permissions to allow the ASP page work
> under
> anonymous access.
>
> --
> Richard Vosylius
> Endeavor Commerce







[ Post a follow-up to this message ]



    Re: CreateObject("CDONTS.NewMail") fails  
Richard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 12:05 AM

Ken,

I get "Permission Denied" on the line that says
"CreateObject("CDONTS.NewMail")" in the ASP page.

The same page works find under Integrated Auth.

Thanks
Richard

"Ken Schaefer" wrote:

> ....and what is the exact error message etc? "doesn't work" isn't very
> helpful :-)
>
> Cheers
> Ken
>
> "Richard" <Richard@discussions.microsoft.com> wrote in message
> news:60380AFB-FE2B-48C1-9B24-3BED58A2FC9A@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Re: CreateObject("CDONTS.NewMail") fails  
Ken Schaefer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 03:04 AM

Hi,

RegMon and FileMon from www.sysinternals.com will tell you what user account
is being denied access to what registry key or file.

Cheers
Ken


"Richard" <Richard@discussions.microsoft.com> wrote in message
news:1D6CFD3F-A86E-4984-AEB7-7826B2946F44@microsoft.com...[vbcol=seagreen]
> Ken,
>
> I get "Permission Denied" on the line that says
> "CreateObject("CDONTS.NewMail")" in the ASP page.
>
> The same page works find under Integrated Auth.
>
> Thanks
> Richard
>
> "Ken Schaefer" wrote:
> 







[ Post a follow-up to this message ]



    Re: CreateObject("CDONTS.NewMail") fails  
Richard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-04 11:45 PM

Hi Ken,

This helped. The Filemon notified that user IUSR_<servername> didn't have
write permission on "C:\Program Files\Exchsrvr\Mailroot\vsi 1\PickUp" folder
.

I gave the read/write permissions and got the code to work.

But I have security concerns, as I have heard that we should not give write
permissions to IUSR_<servername>.

So would you suggest to create a new user for the web site that runs the asp
code to write the mail, give anonymous user acces to this user for this web
site, and give write permission to this user on "Mailroot" folder.

Thanks,
Richard

"Ken Schaefer" wrote:

> Hi,
>
> RegMon and FileMon from www.sysinternals.com will tell you what user accou
nt
> is being denied access to what registry key or file.
>
> Cheers
> Ken
>
>
> "Richard" <Richard@discussions.microsoft.com> wrote in message
> news:1D6CFD3F-A86E-4984-AEB7-7826B2946F44@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:32 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register