Re: Problem Sending Mail to Secure SMTP server

Giganews Newsgroups
Subject: Re: Problem Sending Mail to Secure SMTP server
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Tue, 30 May 2006

"Manney" <nospam@mycompany.com> wrote in message
news:4C7B0E9575FAE240nospam@mycompany.com...

>    just trying out the Indy 10.0.52 components with Delphi 5

That is an old version.  The current snapshot version is 10.1.5.  You should
consider upgrading.

> I droped an tIdSmtp set the AuthType to atSASL, dropped a
> TIdSASLLogin comp and assigned it to the tIdSmtp.SASLMechanisims
> assigned list dropped a TIdUserPassProvider comp and set the username
> and password. set the TIdSASLLogin.UserPassProvider to point to the
> comp on the form

TIdSASLLogin sends the AUTH LOGIN command (which is not secure in any way)
to the server.  Setting the AuthType property to atDefault instead
accomplishes the same thing without using TIdSASLLogin at all.

If you want true security, AUTH LOGIN is not the way to go.  You need to use
actual encryption, such as MD5, depending on your server's configuration.
When the UseEhlo property is set to True, TIdSMTP queries the server for its
capabilities.  What values does the TIdSMTP.Capabilities property hold after
you connect to the server?  If the server supports 'CRAM-MD5', for example,
then put a TIdSASLCRAMMD5 object into the SASLMechanisms collection.

Gambit

Replies

In response to

Problem Sending Mail to Secure SMTP server posted by Manney on Tue, 30 May 2006