***<br><br><div class="gmail_quote">On Tue, Jul 24, 2012 at 6:36 AM, Sarah Addis <span dir="ltr">&lt;<a href="mailto:sarahaddis3@gmail.com" target="_blank">sarahaddis3@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
      <p>
I am currently trying to use a SMTP server to send emails. However I keep getting the same python authentication error outlined below. The SMTP server requires authentication and can 
advertise CRAM-MD5 as an accepted authentication method but fails when 
the client tries to use it. No other methods are tried 
after the failure, Python&#39;s smtplib just raises an Exception.<br></p></div></blockquote><div>As Phil mentioned, a code example would be useful (what API are you calling, at the very least?).<br><br>A priori, however, this issue might happen for a number of reasons:<br>
<ol>


<li>You&#39;re using the wrong username or password (did you try in an email client like Thunderbird?).</li><li>Twisted&#39;s CRAM-MD5 implementation is buggy.</li><li>The SMTP server&#39;s CRAM-MD5 implementation is buggy.</li>



<li>Bad description of issue in the SMTP server response - do the SMTP server logs say anything additional?<br></li></ol><p>Once you&#39;ve ruled out options #1 and #4, for options #2 and #3 disabling CRAM-MD5 might help (though it&#39;d be nice to figure out if there&#39;s some way Twisted could be changed to work with this SMTP server). While slightly annoying since it involves a bunch of repetition of code already in Twisted, disabling CRAM-MD5 should be pretty straightforward, and if you&#39;re using SSL or connecting to an SMTP server on localhost isn&#39;t really much of a reduction in security. If you have some indication that CRAM-MD5 is a problem with this particular server, filing a ticket for that on <a href="http://twistedmatrix.com" target="_blank">http://twistedmatrix.com</a> might be nice.<br>



</p><p>-- <br>Itamar Turner-Trauring, Future Foundries LLC<br><a href="http://futurefoundries.com/" target="_blank">http://futurefoundries.com/</a> — Twisted consulting, training and support.<br></p></div></div>