{"thread":{"id":"3322","subject":"StGIT mail configuration","startedAt":"2006-02-13T20:47:46Z","lastAt":"2006-02-13T21:45:56Z","messageCount":2,"participants":["Aubin LaBrosse","Catalin Marinas"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"16056","messageId":"43F0F072.90609@stormboxes.com","threadId":"3322","inReplyTo":null,"subject":"StGIT mail configuration","fromName":"Aubin LaBrosse","fromEmail":"aubin@stormboxes.com","sentAt":"2006-02-13T20:47:46Z","receivedAt":"2006-02-13T20:47:46Z","isPatch":false,"sender":{"key":"aubin@stormboxes.com","avatar":null},"body":"Hello,\n\nI'm using StGIT 0.8.1 on top of the latest release of Cogito - in \n.git/stgitrc of a local git repo, I have the following part related to \nmy mail configuration:\n\nsmtpserver: mail.stormboxes.com:25\nsmtpuser: username@stormboxes.com\nsmtppassword: myPassword\n\n(actual username and password redacted, of course) - the point is, the \nusername actually is that entire string 'username@stormboxes.com' (no \nquotes) because the box it's on is a virtual server for many domains and \nthe usernames must contain the domain to which they belong.  anyway, i \nwas getting authentication failures, so i hacked up mail.py and set the \ndebug level on the smtp object - i found out that it's trying to auth \nusing CRAM-MD5.  And I'm not sure whether the server doesn't support \nthat or not, but i didn't see anything in the python doc that would \nindicate that i could make the login() method use auth login or auth \nplain or something else, and it seems like it gets a valid response from \nthe server that tells it that the authentication failed - and i'm not \nsure why - thunderbird works fine but i can't figure out which auth type \nit's using. (suppose i could tcpdump it and see) I have, of course, \ntriple checked my auth credentials at this point. \n\ndoes anyone have any hints or insights, or is this a server \nconfiguration problem?  any help would be greatly appreciated.  Please \nCC, as I am not subscribed to the git list. \n\nThanks,\n\nAubin LaBrosse\n\n\nbegin:vcard\nfn:Aubin LaBrosse\nn:LaBrosse;Aubin\nemail;internet:aubin@stormboxes.com\ntel;work:589-0692\ntel;home:429-1520\ntel;cell:493-0121\nversion:2.1\nend:vcard\n\n"},{"id":"16058","messageId":"b0943d9e0602131345r43b02496g@mail.gmail.com","threadId":"3322","inReplyTo":"43F0F072.90609@stormboxes.com","subject":"Re: StGIT mail configuration","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@gmail.com","sentAt":"2006-02-13T21:45:56Z","receivedAt":"2006-02-13T21:45:56Z","isPatch":false,"sender":{"key":"catalin.marinas@gmail.com","avatar":null},"body":"On 13/02/06, Aubin LaBrosse <aubin@stormboxes.com> wrote:\n> I'm using StGIT 0.8.1 on top of the latest release of Cogito - in\n> .git/stgitrc of a local git repo, I have the following part related to\n> my mail configuration:\n>\n> smtpserver: mail.stormboxes.com:25\n> smtpuser: username@stormboxes.com\n> smtppassword: myPassword\n>\n> (actual username and password redacted, of course) - the point is, the\n> username actually is that entire string 'username@stormboxes.com' (no\n> quotes) because the box it's on is a virtual server for many domains and\n> the usernames must contain the domain to which they belong.  anyway, i\n> was getting authentication failures, so i hacked up mail.py and set the\n> debug level on the smtp object - i found out that it's trying to auth\n> using CRAM-MD5.  And I'm not sure whether the server doesn't support\n> that or not, but i didn't see anything in the python doc that would\n> indicate that i could make the login() method use auth login or auth\n> plain or something else\n\nAt least with Python 2.4, the authentication type is detected\nautomatically based on server's response to the ehlo command. It\nsupports cram-md5, plain and login (and I think it tries them in this\norder). If the server responds with something different, the login()\ncommand would raise an exception like \"No suitable authentication\nmethod found.\". You could print s.esmtp_features[\"auth\"] in mail.py in\nStGIT after ehlo.\n\nI haven't read the RFC2554 but you could also try to replace the '@' with '%40'.\n\n> thunderbird works fine but i can't figure out which auth type\n> it's using. (suppose i could tcpdump it and see) I have, of course,\n> triple checked my auth credentials at this point.\n\nProbably using tcpdump or ethereal would be the easiest.\n\n--\nCatalin\n"}]}