EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElSMTPClient AUTH Problem

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#31103
Posted: 10/24/2014 06:21:21
by Dennis Ratzek (Standard support level)
Joined: 07/28/2014
Posts: 9

hello,

i have a Problem with sending a mail via a specific E-Mail Provider. With a older Version of my Programm (13.August) i can send a mail via this E-Mail Provider.

I get the a error at the SMTP.Login function 'Unaccepted Server reply for command dXNxxxxxxxxxxxxxx..' the original error is:
Code
501 5.5.2 Client bug: Missing digest_uri



i am using the VCL source codes 12.0.261 in DelphiXE2

i don't know if you even offer Support for such a Problem, because i am not sure if maybe the Server did a mistake there.

my simplified code:
Code
SMTP.Address := 'smtp.strato.de'
SMTP.Port := 587;
SMTP.Versions := [sbTLS1]; // i tried using different Versions
SMTP.UseSSL := true;
SMTP.SSLMode := smExplicit;
SMTP.Username := surname@name.de;
SMTP.Password := Password;
SMTP.SocketTimeout := 8000; // i tried without this Option
SMTP.Open;
SMTP.Login(name.de);



This is the Response from the server:
Code
'250-smtp.strato.de greets MY_IP_ADRESS'
'250-ENHANCEDSTATUSCODES'
'250-8BITMIME'
'250-PIPELINING'
'250-DELIVERBY'
'250-SIZE 104857600'
'250-AUTH SCRAM-SHA-1 DIGEST-MD5 CRAM-MD5 LOGIN PLAIN'
'250-STARTTLS'
'250 HELP'

After TLS the Login starts

TElSMTPClient.LoginSASL
SendCmd( AUTH DIGEST-MD5 )

ResponseFromServer: '334 cmVhXXXXXXXXXXXXXXXXXXXXXXXXXXXX..'


TElSASLDigestMD5Client.ProcessChallenge
generated output:
'username="MAIL_ADRESS", realm="smtp.strato.de", nonce="7430c4XXXXXXXXXXX", uri="", algorithm="md5-sess", qop=auth, cnonce="f482XXX", nc=00000001, response="a015c1f4e5XXXXXXXXX"'


so the Output which is sent back to the server is without a uri String. but i don't know if the answer of the Server to AUTH DIGEST-MD5 was wrong. the Other E-Mail Providers i tested didn't use AUTH DIGEST-MD5.
#31104
Posted: 10/24/2014 06:33:53
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

I've moved your topic to the Helpdesk. Lets continue there.

Reply

Statistics

Topic viewed 542 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!