Link to home
Start Free TrialLog in
Avatar of daveamour
daveamourFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Asp Relay

Ok my setup is at home and so is not ideal but it's what I have.

I have a Windows 2000 Advanced Server running IIS.  I have a web site which uses CDONTS to send email and this worked fine.

I then installed Exchange 2000 on there which is working ok but now when my asp code trys to send emails I get a Permission denied error.

I have been into Exchange System Manager and set Relaying to be allowed from 127.0.0.1 and 192.168.1.102 but I still get the error.

Any ideas anyone?

Thanks

Dave
Avatar of Vahik
Vahik

did u restart ur exchange server?
Avatar of daveamour

ASKER

I hadn't rebooted as you don't need to when you make simillar changes to SMTP through IIS and also I received no message telling me I needed to reboot.  However I have just tried rebooting and the problem is still there.

Dave
in ur smtp virtual server\access \authentication  do u have anonymous enabled? if not
it should be.....
Yes that is ticked along with Basic Authentication and Integrated Windows Authentication

Any other ideas?

Thanks

Dave
it is ticked with basic and itegrated? well take out basic and integrated, restart ur servers
and see if ur problem is solved...
Ok I've removed the ticks from Basic and Integrated and rebooted the server but still getting the same problem :(

Any other ideas?

Thanks

Dave

no i have no more ideas....this is a simple setup and u have it right...all u have to do in
the relay section check the "only the list below" and put the ip address of ur IIS server
and check "allow computers which successfully authenticate to relay regardless of list
above"....and have anonymous authenitcation checked in ur authentication section.

well u could enable logging in ur exchange server and see if u can find some clues as
to why u get permission denied....
Ok thanks, I'll look into this.

Anyone else shed any light?

Thanks

Dave
did u get this problem resolved? i may have one more trick...
I haven't got this resolved no.

The problem only appeared after I installed Exchange server on my web server.  I have a new web server coming tomorrow so this will no longer be an issue but I would still like to figure this out.  What's your idea?

Thanks

Dave
well this was not an issue in 2000....but i was reading that in 2003 the relaying server
must have SEND AS permission on the smtp virtual server....to see this u must use
ADSIEdit and ...go to the virtual server security tab and check ....
A lot of folks are having ur kinda problem with relaying in exchange 2003....
Ok Can't seem to find ADSIEdit.  I read this is a mmc snap in but can't see it!  Do I need to download this and if so do you have a link.  Had a quick google but couldn't see anything.

Thanks

Dave
did u install windows administrative tools...that is where u will find it?? it must be in ur window server CD or exchange CD....in the support\tools section...i think
Ahhh

I am connecting to my server remotley and no cd in the drive :(

I'll have a look tonight and get back to you.

Thanks

Dave
Hi again

I managed to get ADSIEdit installed but I can't find the virtual server security tab.  Can you give me some idiot proof instructions on how to find this?

Thanks

Dave
ASKER CERTIFIED SOLUTION
Avatar of Vahik
Vahik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi

Ok My server had send as

I added IUSR_MachineName (the account asp runs under and ticked send as and now I no longer get an error!)

I have yet to confirm that the mail is actually sent - in a  bit of a rush but will check tonight.

Thanks!

I'll update you later

Dave
Wooo hooo its working!

Thanks very muich for your help, your a star!

Dave
hahahahahahaha. kido thanks....no need for the points...i was gonna give u some....
glad this worked out for u....i hate a problem with no real working solution.....i have 4 more to solve which i have not been able....for a while i was thinking i am too old for this business and was thinking going in to construction business....hahahahha
take care and good luck....
Ok thanks

Stick with it, remember everyone's at least as confused as you but probably less!
Sorry meant probably more!

Ha ha