Notify fails authorization with one of two accounts

Robert Bauck Hamar r.b.hamar at usit.uio.no
Wed Jul 29 04:21:55 CDT 2009


*Kyle Altendorf:
>I am attempting to setup the notify extension and I am unable
>to get it to successfully authenticate with my mail server.  I am
>running Mercurial 1.3 on Windows XP installed via TortoiseHg 0.8 (will
>try with 1.3.1/0.8.1 when thg update is released).  I have disabled
>McAfee so that hg can at least connect to the server but I still get
>an authorization failure:
>
>K:\HgSandbox\notify>hg --verbose --debug --traceback pull ..\notify.clone
[...]
>  File "smtplib.pyc", line 591, in login
>SMTPAuthenticationError: (535, 'authorization failed (#5.7.0)')
>(run 'hg update' to get a working copy)

The error originates in the standard Python smtplib module.

>I have gotten this to work with my personal account on another
>mail system.
[...]
>based on some sniffing, I found that while my personal
>account authenticates via AUTH PLAIN my work account ends up using
>AUTH CRAM-MD5.  Perhaps it would be nice to be able to control this
>option along with TLS?

I don't see how. This is hardcoded into Python's smtplib. One could 
always ask for this as a new feature for smtplib.

>Any thoughts?  How can I proceed debugging this?

Mercurial's SMTP stuff uses standard Python's smtplib, see 
<URL:http://docs.python.org/library/smtplib.html>. If you know any 
python, you can try logging in with your own Python scripts.

A second option would be to ask your ISP to check their logs, and see 
what is going wrong.

Otherways, you can try setting up a local MTA. Googling for "sendmail" and 
"windows" gives some options, but a simple service listening for local 
connections would also do.

-- 
Robert Bauck Hamar
USIT/SAPP/GT - Cerebrum
http://www.uio.no/sok?person=hamar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20090729/a1fa5ff5/attachment.pgp 


More information about the Mercurial mailing list