Hi to all!

Using standard methods I can send mail to 75% smtp servers. But there some servers that need authentification. I can't found nothing obout this in RFC 821 - Simple Mail Transfer Protocol. One example of such problem you can see below. But how to do this?


Smtp response: 220 smtp.hotbox.com ESMTP Sendmail 8.12.9/8.12.9; Sun, 28 Mar 2004 12:20:27 +0400 (MSD)
Request: HELO misha_k
Smtp response: 250 smtp.hotbox.com Hello host-122-112-38-212.azdata.net [], pleased to meet you
Request: MAIL FROM:<someuser@mail.com>
Smtp response: 250 2.1.0 <someuser@mail.com>... Sender ok
Request: RCPT TO:<anyuser@fromcom.com>
Smtp response: 550 5.7.1 <anyuser@fromcom.com>...
ERROR-1!!! Please, set SMTP-authentification in your mail program and try again. Login - your full e-mail address.
Posted on 2004-03-28 04:52:25 by Mike
Posted on 2004-03-28 06:06:07 by f0dder
Thanks. AUTH LOGIN is NOT described in documents from Google.com but it works! And it is better than AUTH CRAM-MD5 in my case...

Implementation may be such this. Before HELO I send this:

Request: AUTH LOGIN YWJjQG1haWwuY29t
Response: 334 UGFzc3dvcmQ6
Request: cXdlcnR5
Response: 235 2.0.0 OK Authenticated
where YWJjQG1haWwuY29t is base64 codedhttp://www.asmcommunity.net/board/cryptmail.php?tauntspiders=in.your.face@nomail.for.you&id=027b5f0ac1a2b0038a122983c855559f (login = full mail name at this mail server);
UGFzc3dvcmQ6 you can decode from base64 as "password:"
and cXdlcnR5 is base64 coded qwerty (password).

Posted on 2004-03-28 08:32:11 by Mike
base64 coded passwords :( - if server supports something more secure, please use that :(
Posted on 2004-03-28 09:02:06 by f0dder