Notify extension: mail server capability problem?
Yannick CHARLES
yannick.charles at gmail.com
Fri Dec 14 17:40:53 UTC 2012
2012/12/14 Kevin Bullock <kbullock+mercurial at ringworld.org>
>
> [re-flowed and fixed up quoting damage, we prefer bottom-posting on this
> list]
>
> On Dec 14, 2012, at 11:11 AM, Yannick CHARLES wrote:
>
> > 2012/12/14 Kevin Bullock <kbullock+mercurial at ringworld.org>
> >> On Dec 14, 2012, at 5:53 AM, Yannick CHARLES wrote:
> >>
> >>> Hello everybody!
> >>>
> >>> I have the following error message when pushing on a distant
> >>> repository that has a changegroup notify hook:
> >>>
> >>> remote: error: changegroup.02notify hook failed: SMTP AUTH extension
> >>> not supported by server.
> >>>
> >>> After a bit of search, I deduce that notify/Mercurial requests the
> >>> mail server to use some extension, but the server isn't set to do so, so the
> >>> transaction fails.
> >>> Is there something I can do on client side, that is, modifying
> >>> Mercurial settings on the Mercurial server, but without touching SMTP server
> >>> settings? Both mail server and Mercurial server are on a local network, so
> >>> there shouldn't be security issues.
> >>
> >> Mercurial should only be trying to use SMTP AUTH if you have a username
> >> and password set in the [smtp] section of the remote repo's hgrc.
> >>
> >> Try `hg showconfig smtp` in a shell in the remote repo, as the same
> >> remote user you're using for the push. (Note if you're pushing over HTTP,
> >> this will be the same user your web server runs as.) You can override
> >> setting per-repository in the repo's .hg/hgrc file.
> >
> > Thank you for your answer.
> >
> > Well, yes, I have username and password set in the .hg/hgrc file. How
> > can I connect to the smtp server without them ?
>
> By... not setting them. Or if you mean they're set in your ~/.hgrc file,
> by setting them to empty in the _repo's_ .hg/hgrc file.
>
> pacem in terris / мир / शान्ति / سَلاَم / 平和
> Kevin R. Bullock
>
Sorry for the quoting problem, and top-posting. Is it better like this ? :)
My notify settings, and the [smtp] section, are in the repo's .hg/hgrc.
So I tried your suggestion by removing the smtp.password property
(smtp.username is still defined though) and... it works.
I thought I would have needed a valid username _and_ password in order
for the smtp server to let Mercurial send mails (that's why my
previous post may have seemed a bit confused), but it works like this.
Thanks a lot anyways !
Best regards,
Yannick CHARLES
More information about the Mercurial
mailing list