Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#5 add support for 250-AUTH CRAM-MD5/DIGEST-MD5

open
nobody
None
5
2004-07-21
2004-07-21
Anonymous
No

some SMTP servers do not accept 250-AUTH PLAIN and
require either CRAM-MD5 or DIGEST-MD5. It looks to me
as it works like digest exchange. Server gives some
number which is then translated using user/password
and send back to server.

C=client, S=server

C: AUTH-LOGIN
S: 334 <data 12 chars md5 base-16?>CR LF
C: <data 24 chars base-16?>CR LF
S: 334 <data 12 chars base-16?>CR LF
C: <data 16 chars base-16?>CR LF
S: 235 2.0.0 Authentication successful CR LF

--
mpuczynski@op.pl

Discussion

  • Chip
    Chip
    2004-11-08

    Logged In: YES
    user_id=800692

    Have you tried to use stunnel for encryption? I use it here
    at home to make the connection between Blat and my remote
    mail server.

    Chip

     
  • Chip
    Chip
    2004-12-19

    Logged In: YES
    user_id=800692

    CRAM-MD5 is now added to Blat v2.40, and working for me at
    home. I should have this new version posted very shortly.

    Chip

     
  • Logged In: YES
    user_id=507804
    Originator: NO

    +1 for adding AUTH LOGIN.

    Most default configurations of Unix based mail servers only accept LOGIN as an alternative to CRAM-MD5 and PLAIN. However, Blat fails to authenticate using CRAM-MD5 on almost any mailserver I was able to test. So AUTH PLAIN is currently the only working option for using Blat with a secure SMTP server.

    Implementing AUTH LOGIN should be easy, just encode username and password into base64.

     
  • Chip
    Chip
    2007-07-25

    Logged In: YES
    user_id=800692
    Originator: NO

    CRAM-MD5, PLAIN, and LOGIN are all supported. The current version will start with CRAM-MD5, then PLAIN, and finally LOGIN.

    The primary reason CRAM-MD5 might not work is due to a bug in the UNIX / Linux implementation. I use CRAM-MD5 with my AT&T account all the time. Are you testing it with qmail? Which version of Blat are you using?

    --
    Chip