I've found a workaround to make it work :
The issue I encountered comes from a special config I use :
(i.e. webmail http force redirect to httpS, only httpS allowed)
instead of the default Zimbra config :
(i.e. both http and httpS fully works for webmail)
With "zmtlsctl redirect" used, a "/opt/zimbra/bin/zmmailbox -z -m user@host postRestURL (...)" command won't work and returns this weird error :
Code:
ERROR: service.FAILURE (system failure: POST failed, status=302 Found)
So the workaround consist of temporarly allowing http with "zmtlsctl both" :
Code:
su - zimbra
zmtlsctl both
zmmailboxdctl restart
...then, importing mailbox :
Code:
/opt/zimbra/bin/zmmailbox -z -m user@host postRestURL (...)
... then finally getting back to my previous config :
Code:
su - zimbra
zmtlsctl redirect
zmmailboxdctl restart
Maybe there is another / better way of doing it,
but this one works !