• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • Last Modified:

Exchange email process

I have been deemed the exchange guru for my company. Worked with Exchange for many years but I have not been too intimate with all the intricate details.

We have SMTP relay turned off for obvious reasons. I have a web guy attempting to use cdonts to email a form that we need from an intranet web server to internal email addresses. Once the form is filled out and submitted it just sits in the Queue. We have complete the smtp tests using telnet address port 25 and can get a response from our exchange server.

My question is "How can we be getting email internally from our notification services like SNMP, Veritas, AV, etc, but can't receive mail from simple CDONTS code. We have similar code on our Internet Web Server and it is working fine. I could route the messages out and back in, but isn't that a little too much?
1 Solution
BusbarSolutions ArchitectCommented:
what is the Queue says?
The common reason I see for this is that the message is either not configured correctly or AV software is blocking it.

marine7275Author Commented:
The queue says nothing. It just has the messages sitting there.
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Well, first you should use CDOSYS rather than CDONTS which is depreciated, but you probably just have a firewall or filtering issue.  CDOSYS let's you use different ports, SSL, configure addresses and relay server so you can circumvent and get around whatever problem you have.

Now where is this code the doesn't work in relation to your exchange server and intranet with similar code that does work?  I would first turn on logging and examine logs to determine what the smtp service was trying to do.  My guess is port 25 is blocked somewhere or it would be sitting around and it would move or fail.
marine7275Author Commented:
Can anyone give me a quick class on how email is routed with an automated notification message vs. cdonts code? Doesn't it all use smtp the same way?
CDONTS drops the message in a inetpub/mailroot delivery folder which the smtp service notices and tries to deliver.  So C:\Inetpub\Mailroot\Pickup or perhaps \Program files\Exchsrvr\Mailroot\Vsi #\Pickup, for more detail...

CDOSYS establishes a real SMTP connection locally or remotely using various ports or authenication and uses an SMTP session to deliver messages.  So if the server isn't running or the message isn't accepted then you'll know right away with an error message.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now