Notify extension: mail server capability problem?
Kevin Bullock
kbullock+mercurial at ringworld.org
Fri Dec 14 17:23:13 UTC 2012
[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
More information about the Mercurial
mailing list