Skip to main content
Legend
July 27, 2013
Question

CF10 Can't Verify Mail Server

  • July 27, 2013
  • 1 reply
  • 2024 views

So I've been running CF9 on Linux for a while and using CFMail to send email through a client's Exchange 2010 server.

We're attempting to migrate to CF10 on Win2008, IIS7.5.  Everything is set and ready to go except I can't get CF10 to verify the mail connection?  I've got both mail settings (CF9 and CF10) set the exact same way and can view them open side by side and verify they're identical.  However, while the CF9 verifies successfully the CF10 system fails??

I tried sending through CFMail tags while specifying the server credentials and see this in the CF10 log:

"javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client"

What does this mean?  I know my authentication credentials are correct because I'm able to connect in CF9.

I've turned off all firewalls and still nothing.  So, I then tried installing CF10 on my Mac laptop.  It, too, will not verify the mail connection!

Is there a known problem with CF10 connecting to an Exchange mail server?

Any ideas?

This topic has been closed for replies.

1 reply

Legend
July 29, 2013

I "solved" this. 

I could find little online and received no comments to this thread.  No combination of settings I tried would work and I have no access to the client's mail server.  The person who runs that server couldn't run a lemonade stand so no help there.

Then I stumbled across this page:

https://confluence.atlassian.com/display/JIRAKB/No+authentication+mechansims+supported+by+both+server+and+client+when+Configuring+Microsoft+Exchange+SMTP+Server

Nothing to do with ColdFusion but seemed like a similar issue.  I'd never put much thought into CFMail because it was always drop dead simple and simply worked.  Focusing on this link's Resolution 2 I wondered if CF used JavaMail and if I could downgrade CFMail?  I cracked open CF's 'mail.jar' file and found that CFMail does, indeed, use the  JavaMail API.  So, I then checked the ColdFusion docs to see if any new features were added to CFMail between CF9 and CF10.  None.

So, I swapped out the 'mail.jar' file from my CF9 install to CF10 and restarted.  Boom!  Everything worked immediately.  As far as I can tell I've had no compatibility issues to report. 

Participant
August 15, 2013

In a pinch, the mail.jar file from a CF8 install worked, too.

This solution was a big help, as your explanation here (and your copy of it on StackOverflow) is the only real discussion of the bug I can find.