We help IT Professionals succeed at work.

SMTP via Exchange using SSL and Indy 10

chunky1 used Ask the Experts™
Can someone please help me?
For many years now I have used Indy components to send SMTP messages. However now with our new Exchange server I need to utilise SSL.

I have had an attempt using all the types of IDSASL supplied with Indy 10, but I am not getting any joy.
I'm currently getting the error "Service Not Available, Closing Transmission Channel". This is what I was getting when I used to use plain authentication.

Does anyone have an example I can try please or any pointers will be appreciated.

I have installed the latest version of open-SSL librarys.

Many Thanks.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Set your TIdSMTP component up and set up a TIdSSLIOHandlerSocketOpenSSL component up too.  Set the IOHandler property of the TidSMTP to the SSLOHandler and make sure to adjust the SSL Options in the SSLIOHandler to match your exchange server.  I do not have access to an Exchange server to test with.  Let me know how it goes.

Are you sure your server is at the hostname or IP you specified? Is there a possible software / hardware firewall? Can you post what code you have?
Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.