Solved

ColdFusion 9 suddenly stopped sending email to Exchange 2007

Posted on 2014-01-20
4
423 Views
Last Modified: 2014-01-26
I recently became aware that my CF9 is no longer sending email to E2K7.  My exchange SSL cert expired and I didn't catch it for 2 days.  I renewed it and got it installed last night, so I thought email would start working again.  It has not, which makes me think it wasn't the cert expiring.  Here is what is happening/not happening:

I send an email using CF
CF mailsent log shows email sent successfully
Exchange message tracking log does not show any email activity
In CF admin, I verify mail server connection, comes back successful.
Sending & receiving in OWA works perfectly

I'm not sure what else to check.  Things have always worked fine.  CF reports sending the mail, but it never really makes it, as the Exchange server never shows any activity from the CF sent mail.

Can someone help me figure out what to check next?  Could a recent windows update have broken something?  Some new CF update I need perhaps?  I'm at a loss.
0
Comment
Question by:theamzngq
  • 2
  • 2
4 Comments
 
LVL 52

Expert Comment

by:_agx_
ID: 39797012
(No points ...I don't know the answer)

In the mean time one additional troubleshooting step you could try is to enable debugging, ie debug="yes". Perhaps you will find something unusual in the logs. If not, you'll at least have very detailed info about the actual communication between the mail servers to use for additional troubleshooting.
Best of luck!

Important notes about using debug from the docs:

debug=yes: sends debugging output to standard output. By default, if the console window is unavailable, ColdFusion sends output to cf_root\runtime\logs\coldfusion-out.log on server configurations. On J2EE configurations, with JRun, the default location is jrun_home/logs/servername-out.log. Caution: If you set this option to yes, ColdFusion writes detailed debugging information to the log, including all message contents, and can generate large logs quickly.
0
 
LVL 2

Accepted Solution

by:
theamzngq earned 0 total points
ID: 39797696
I was able to figure out the issue.  The thing that led to the solution was an event viewer log entry:

Event ID: 12014
Microsoft Exchange could not find a certificate that contains the domain name xxxx.com in the personal store on the local computer. Therefore, it is unable to support the STARTTLS SMTP verb for the connector  with a FQDN parameter of xxxx.com. If the connector's FQDN is not specified, the computer's FQDN is used. Verify the connector configuration and the installed certificates to make sure that there is a certificate with a domain name for that FQDN. If this certificate exists, run Enable-ExchangeCertificate -Services SMTP to make sure that the Microsoft Exchange Transport service has access to the certificate key.

Apparently I had two copies of the cert loaded (which I could see listed after issuing the command Get-ExchangeCertificate in the EMS).  This was preventing the SMTP connector from starting.  So, CF was sending the email successfully, it was just dying somewhere in the middle of the Exchange server.  I opened an MMC window and loaded the Certificates snap-in, then deleted the extraneous cert under the Personal folder.  Email started sending immediately after that.
0
 
LVL 52

Expert Comment

by:_agx_
ID: 39797743
Great! Glad you solved it, and thanks for posting the resolution! .

(Don't forget to mark your comment as the answer to close out the thread).
0
 
LVL 2

Author Closing Comment

by:theamzngq
ID: 39809831
I solved it myself
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now