| Ticket UUID: | 1050377 | |||
| Title: | SMTP AUTH problems. | |||
| Type: | Bug | Version: | None | |
| Submitter: | orwellian | Created on: | 2004-10-19 23:14:24 | |
| Subsystem: | smtp | Assigned To: | patthoyts | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2006-04-21 18:15:18 | |
| Resolution: | Wont Fix | Closed By: | patthoyts | |
| Closed on: | 2006-04-21 11:15:18 | |||
| Description: |
A sourceforge viewer contacted me about not being able to
get -username/-password to work in tcllib-1.7 smtp.tcl.
I encoded the username/password for a hand-telnet test and
got that to work, then figured out what was wrong and told the
user who then reported success in using it.
Here's the problem.
The SMTP server responded:
250-AUTH LOGIN CRAM-MD5 PLAIN
The smtp.tcl code tried CRAM-MD5 first, and for whatever
reasons, that failed.
535 authorization failed.(#5.7.0)
Once that failed, no further AUTHs would work.
The smtp.tcl code then tried requesting AUTH LOGIN, and
received this from the SMTP server:
502 unimplemented (#5.5.1)
The smtp.tcl then tried AUTH PLAIN, receiving the same error.
I had the user edit this line:
foreach mech [list DIGEST-MD5 CRAM-MD5 LOGIN PLAIN] {
to be:
foreach mech [list LOGIN PLAIN] {
And he reported it was working.
Perhaps choose the SMTP server's offerings in the
order they are given, instead of smtp.tcl's decision
to use the "most secure" sequence first. Or make
smtp.tcl break the connection before trying the next
variation. Or let the user choose which one to use.
In any case, the smtp.tcl module does not show the
dialog sequence when a failure happens. I'd suggest
having it cough that up when a failure occurs. Less
technical users don't have a chance of figuring out
what's wrong without a more detailed diagnostic.
| |||
| User Comments: |
patthoyts added on 2006-04-21 18:15:17:
Logged In: YES user_id=202636 It would be interesting to know the server involved in this (although it is likely too late now to find out). In my hands against a Microsoft SMTP server if I make it fail one AUTH step (using NTLM or LOGIN) and try again and do it correctly then it works. I believe this server to have been configured to deny a connection following any failure and this is non-standard as far as I am aware. I believe we are correct to try for the most secure AUTH method on offer. If a server doesn't implement a particular mechanism it should not be offering it. For the server above if should only have offered LOGIN and maybe PLAIN from the description above. patthoyts added on 2005-02-17 22:21:47: Logged In: YES user_id=202636 Reassigning to me as I did the AUTH support. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki