Link to home
Start Free TrialLog in
Avatar of VTDelphi
VTDelphi

asked on

Delphi 7 Indy 10 SASL authentication Exchange 2010

smtpServer := TidSMTP.Create(nil);
mailMessage := TidMessage.Create(nil);

// 3-17-2010 Indy 10.2.3 redefined auth. props.;
smtpServer.AuthType := satSASL;
smtpServer.UseEhlo := True;

smtpServer.Port := strtoint(smtpPort) ;//25;
smtpServer.Host := smtpHost; // Exchange server IP address;;
smtpServer.Username := smtpUser;
smtpServer.Password := smtpPwd ;

This is the code I have found but no one will show how to setup the code for encryption interface - Exchange 2010 requires encrypted connection.  NO SMTP plugin;
latest version to compile/install is Indy 10.2.3.

I need some coding help, please.
Avatar of developmentguru
developmentguru
Flag of United States of America image

I'm afraid I would need access to an Exchange 2010 server to be much help and with the prices that MS charges I cannot afford to implement that at home.  I did find a question in EE that details what it takes to use the MS RPC Encryption.

https://www.experts-exchange.com/questions/20976050/Using-RPC-in-Delphi.html

Once you have the MS RPC connection working the rest should be easy enough to handle with the INDY 10 SASL components.

While I hope this can get you started in the right direction I have no server to test against so I cannot write code that I have the ability to test.

I hope this helps.
Avatar of VTDelphi
VTDelphi

ASKER

Sorry so long to respond.  We are deploying an Exchange server.
I did find an example of what I think may work:

    http://ruminatedrumblings.blogspot.com/2008/04/smtp-mail-and-indy-again.html

I haven't completed testing - it requires OpenSSL.

We can retire this question if you like and I'll let you all know if this person's code solves my issue.

Thank you for your time,

Larry
ASKER CERTIFIED SOLUTION
Avatar of developmentguru
developmentguru
Flag of United States of America image

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