Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 6th, 2004, 01:04 PM
ITmax ITmax is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 43 ITmax User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 11 m 19 sec
Reputation Power: 6
email permission problems

Hi all,

I am running Exchange server 2000 on a machine with windows 2000 advanced server. So far it has been running without a problem. I have no problem in sending or receiving emails. But when i try to get the site to send an automated email alert using ASP, i have got permission problems.
---------------------------------------------------
DIM strEmail
strEmail = Request.Form("Email")

dim msconn
DIM mail, objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = "admin@abc.com"
objMail.Subject = "This is a test"
objMail.To = "webmaster@xyz.com"
objMail.Body = "this is a test email from abc.com"
objMail.Send
Set objMail = nothing
----------------------------------------------------
This code works perfectly well from any machine apart from the domain controller. On the domain controller, i get the following access denied error message:
----------------------------------------------
Microsoft VBScript runtime error '800a0046'

Permission denied

/Emailer.asp, line 310
-----------------------------------------------

I have given full permission to the drop folder in the mail root as guided in other sites. It's still not working.

Can anyone tell me where i'm going wrong? anything else i can try?
__________________
max

Reply With Quote
  #2  
Old December 7th, 2004, 07:38 AM
dba_frog's Avatar
dba_frog dba_frog is offline
cave painting, the 1st Opn Src
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 417 dba_frog Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 22 h 27 m 50 sec
Reputation Power: 0
Quote:
/Emailer.asp, line 310

So what is on line 310 of EMAILER.ASP? That is where the error is according to VB.
__________________
Curious by Nature,
Linux by Choice

Reply With Quote
  #3  
Old December 7th, 2004, 08:30 AM
ITmax ITmax is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 43 ITmax User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 11 m 19 sec
Reputation Power: 6
According the error code..... that is permission problem

On line 310 is

objMail.Send




According the error code..... that is permission problem

800a0046



IT max

Reply With Quote
  #4  
Old December 7th, 2004, 08:48 AM
dba_frog's Avatar
dba_frog dba_frog is offline
cave painting, the 1st Opn Src
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 417 dba_frog Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 22 h 27 m 50 sec
Reputation Power: 0
bear with me:
Quote:
DIM mail, objMail

should this be DIM email, objMail? since you are creating an request.form("email")?
I maybe wrong if you can call the email object (sorry - i'm a little rusty on that)

OK,

Also, according to MS there are instructions for re-setting permissions on the folder in IIS. Did this work?

Lastly, I've run into issues where the WSH (windows scripting host) was disabled by an ADMIN to prevent the server being an open relay.

Remember that if your able to run that .ASP page to create a form email from a site that could technically be considered an OPEN RELAY as others could exploit your site to send their email.

thoughts??

hth

Reply With Quote
  #5  
Old December 7th, 2004, 11:13 AM
ITmax ITmax is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 43 ITmax User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 11 m 19 sec
Reputation Power: 6
Actually outlook is the agent here

That's a good point, but i forgot to tell you that, when the email is sent, from the other machine, this machine has windows 2000 aswell, and it's on the same network. but the email is going through outlook. As you know, there is an SMTP password gateway, so this is what is making the code work. But the snag is, my domain controller doesn't have microsoft outlook (for security reasons. Do you still think there'd be a security hole?)

By the way, yes, i have blocked open relays, but is it possible for me to allow open relays for this code?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > email permission problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT