jeepxo
asked on
SMTP Permissions for ASP pages
We have a client that ran the Microsoft Security toolkit to lock down their server...the problem is it locked down too much and he doesn't want me to undo everything.
I have everything working that I need except sending mail via a web page.
The default SMTP server is setup.
I believe my problem is permissions on some folder that the mail server needs.
I have given "Everyone" full control of the inetpub\...\mailroot directory and all of the sub directories but that didn't do it.
I have also given RWX to CDONTS. Originally I failed on the create object call for CDONTS until I made that change. I think CDONTS is correct now.
Anyone else have any ideas
I have everything working that I need except sending mail via a web page.
The default SMTP server is setup.
I believe my problem is permissions on some folder that the mail server needs.
I have given "Everyone" full control of the inetpub\...\mailroot directory and all of the sub directories but that didn't do it.
I have also given RWX to CDONTS. Originally I failed on the create object call for CDONTS until I made that change. I think CDONTS is correct now.
Anyone else have any ideas
Are you experiencing any error?
ASKER
I get a 500 internal sever error.
I do a server.createobject("CDONT S.Newmail" ) to create the mail object.
the line that it fails on is the the
mail.send()
This is why I believe it is a permissions thing. I know that CDONTS has to write the email to the inetpub\...\mailroot directory and that CDONTS uses the IUSER_COMPUTERNAME account for anonymous email.
I do a server.createobject("CDONT
the line that it fails on is the the
mail.send()
This is why I believe it is a permissions thing. I know that CDONTS has to write the email to the inetpub\...\mailroot directory and that CDONTS uses the IUSER_COMPUTERNAME account for anonymous email.
Did you verify the smtp service is running?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@ mikecr
Yes indeed the SMTP service is running. Infact I have stopped and started it on a number of occasions. As well if the SMTP service is not running you cannot create a CDONTS object.
Yes indeed the SMTP service is running. Infact I have stopped and started it on a number of occasions. As well if the SMTP service is not running you cannot create a CDONTS object.
ASKER
Excellent tool. Thankyou AndresM.
Turns out my problem was human though. The network administrator for our client did not like the idea of outside contracted companies doing things to "his" machines and was monitoring it to see when I went on to make changes...then was reversing them.
Turns out my problem was human though. The network administrator for our client did not like the idea of outside contracted companies doing things to "his" machines and was monitoring it to see when I went on to make changes...then was reversing them.