Notify fails authorization with one of two accounts

Kyle Altendorf kyle.altendorf at gmail.com
Thu Jul 23 19:25:08 CDT 2009


Before I get greedy asking for support...  thank you to all who have
contributed to Mercurial and TortoiseHg (or any other of the numerous
open source apps I use).  They sure make my job a lot more pleasant.

But...  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 --version
Mercurial Distributed SCM (version 1.3)

Copyright (C) 2005-2009 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

K:\HgSandbox\notify>hg --verbose --debug --traceback pull ..\notify.clone
pulling from ..\notify.clone
searching for changes
examining dea04b5eeb70:f14fc5a1013e
found incomplete branch dea04b5eeb70:f14fc5a1013e
narrowing 1:6 36287e7eb482
found new branch changeset dea04b5eeb70
found new changesets starting at dea04b5eeb70
1 total queries
1 changesets found
list of changesets:
dea04b5eeb70532b21f8cae3ce510d63b25200dc
adding changesets
add changeset dea04b5eeb70
adding manifests
adding file changes
adding .hgignore revisions
added 1 changesets with 1 changes to 1 files
updating the branch cache
calling hook changegroup.notify: hgext.notify.hook
notify: sending 1 subscribers 1 changes
sending mail: smtp host mail.nospam.com, port 25
(authenticating to mail server as kylea at nospam.com)
error: changegroup.notify hook raised an exception: (535, 'authorization failed
(#5.7.0)')
Traceback (most recent call last):
  File "mercurial\hook.pyc", line 52, in _pythonhook
  File "hgext\notify.pyc", line 289, in hook
  File "hgext\notify.pyc", line 233, in send
  File "mercurial\mail.pyc", line 74, in sendmail
  File "mercurial\mail.pyc", line 70, in connect
  File "mercurial\mail.pyc", line 39, in _smtp
  File "smtplib.pyc", line 591, in login
SMTPAuthenticationError: (535, 'authorization failed (#5.7.0)')
(run 'hg update' to get a working copy)

Yes, I changed my login and mail server to 'nospam.com' for this
email.  I have gotten this to work with my personal account on another
mail system.  The differences I can see are that my personal login is
only letters while my work login is my full email (thus containing the
@ symbol) and, 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?  Also, the non-working account is hosted by
Network Solutions while the personal account which works is at
EuMX.net (just in case either happens to be known for goofy SMTP).

Any thoughts?  How can I proceed debugging this?

Thanks,
-kyle


More information about the Mercurial mailing list