<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									zmmailbox postRestURL doesn&#039;t work - Zimbra Build by Zextras - no Zextras support guaranteed				            </title>
            <link>https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/</link>
            <description>Zextras Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 21 Jul 2026 13:34:03 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: zmmailbox postRestURL doesn&#039;t work</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-4460</link>
                        <pubDate>Thu, 26 Jan 2023 14:28:15 +0000</pubDate>
                        <description><![CDATA[@MGARBOThank a lot ! :-)Since the time i had this problem ...I try your solution on 2 servers and that solves the problem.I specify that &quot;zmlocalconfig --reload&quot; is not necessary.Sequence :z...]]></description>
                        <content:encoded><![CDATA[<p>@MGARBO<br /><br />Thank a lot ! :-)<br /><br />Since the time i had this problem ...<br /><br />I try your solution on 2 servers and that solves the problem.<br /><br />I specify that "zmlocalconfig --reload" is not necessary.<br /><br />Sequence :<br /><br />zmlocalconfig -e socket_so_timeout=3000000<br />zmmailbox -z -m ACCOUNT postRestURL "?fmt=tgz&amp;resolve=skip" FIC.TGZ<br />zmlocalconfig -u socket_so_timeout<br /><br />is sufficient and works like a charm.<br /><br /></p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-9-by-zextras/">Zimbra Build by Zextras - no Zextras support guaranteed</category>                        <dc:creator>francoisotho</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-4460</guid>
                    </item>
				                    <item>
                        <title>RE: zmmailbox postRestURL doesn&#039;t work</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-3768</link>
                        <pubDate>Wed, 21 Sep 2022 14:04:19 +0000</pubDate>
                        <description><![CDATA[@dominix
I found the correct parameters that can help you to solve the problem :
zmlocalconfig socket_so_timeout
socket_so_timeout = 30000
Change this with an high value e.g.
zmlocalcon...]]></description>
                        <content:encoded><![CDATA[<p>@dominix</p>
<p>I found the correct parameters that can help you to solve the problem :</p>
<pre contenteditable="false">zmlocalconfig socket_so_timeout
socket_so_timeout = 30000</pre>
<p>Change this with an high value e.g.</p>
<pre contenteditable="false">zmlocalconfig -e socket_so_timeout=3000000
zmlocalconfig --reload</pre>
<p>Finally retry.</p>
<p>At end of import please restore the original value using this:</p>
<pre contenteditable="false">zmlocalconfig -u socket_so_timeout
zmlocalconfig --reload</pre>
<p> </p>
<p>p.s. i found this solution using -v on zmmailbox import command that give to me the following stack trace :</p>
<pre contenteditable="false">com.zimbra.common.zclient.ZClientException.IO_ERROR(ZClientException.java:49)
 at com.zimbra.client.ZMailbox.postRESTResource(ZMailbox.java:3587)
 at com.zimbra.cs.zclient.ZMailboxUtil.doPostRestURL(ZMailboxUtil.java:3036)
 at com.zimbra.cs.zclient.ZMailboxUtil.execute(ZMailboxUtil.java:1313)
 at com.zimbra.cs.zclient.ZMailboxUtil.main(ZMailboxUtil.java:2917)
Caused by: java.net.SocketTimeoutException: Read timed out
 at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:283)</pre>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-9-by-zextras/">Zimbra Build by Zextras - no Zextras support guaranteed</category>                        <dc:creator>mgarbo</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-3768</guid>
                    </item>
				                    <item>
                        <title>RE: zmmailbox postRestURL doesn&#039;t work</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-3712</link>
                        <pubDate>Wed, 07 Sep 2022 08:18:30 +0000</pubDate>
                        <description><![CDATA[Posted by: @dominix 
it works with -t if I use some small files. wheb using big files it looks I have some more errors.
thanks for the tips.

Probably it&#039;s a problem related by proxy tim...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="822" data-postid="3704" data-mention="dominix">
<div class="wpforo-post-quote-author"><strong> Posted by: @dominix </strong></div>
<p>it works with -t if I use some small files. wheb using big files it looks I have some more errors.</p>
<p>thanks for the tips.</p>
</blockquote>
<p>Probably it's a problem related by proxy timeout, if you don't specify the url zmmailbox will use the default zimbra port :</p>
<pre contenteditable="false">zmmailbox -z postRestUrl
usage:

  postRestURL(pru)              {relative-path} {file-name}
    -c/--contentType        content-type
    -u/--url                url to connect to
    -i/--ignore                  ignore and continue on error during ics import
    --preserveAlarms             preserve existing calendar alarms during ics import (default is to use alarms in ics file)</pre>
<p>A correct way to do a postRestUrl ( as getRestUrl ) is to bypass completely the proxy :</p>
<pre contenteditable="false">zmmailbox -t 0 -u https://usermailbox:admin_port -z  -m user@domain postRestURL -u https://usermailbox:mailbox_port  '//?fmt=tgz&amp;resolve=skip' ./my-archive-file.tar.gz


usermailbox = where is the user ( if you have multi mailbox you need to specify the correct one of the user )
admin_port = usually is 7071 but if you enabled the proxy for admin web interface you need to specify the NON proxied port ( usually 9071 )
mailbox_port = usually is 443 or 80, if you enabled the the proxy for user web interface you need to specify the NON proxied port ( usually 8080 or 8443 )

Command to fectch port info per mailbox  :
zmprov gs `zmhostname` zimbraMailPort zimbraMailSSLPort zimbraAdminPort</pre>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-9-by-zextras/">Zimbra Build by Zextras - no Zextras support guaranteed</category>                        <dc:creator>mgarbo</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-3712</guid>
                    </item>
				                    <item>
                        <title>RE: zmmailbox postRestURL doesn&#039;t work</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-3704</link>
                        <pubDate>Tue, 06 Sep 2022 02:08:35 +0000</pubDate>
                        <description><![CDATA[it works with -t if I use some small files. wheb using big files it looks I have some more errors.
thanks for the tips.]]></description>
                        <content:encoded><![CDATA[<p>it works with -t if I use some small files. wheb using big files it looks I have some more errors.</p>
<p>thanks for the tips.</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-9-by-zextras/">Zimbra Build by Zextras - no Zextras support guaranteed</category>                        <dc:creator>dominix</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-3704</guid>
                    </item>
				                    <item>
                        <title>RE: zmmailbox postRestURL doesn&#039;t work</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-3697</link>
                        <pubDate>Mon, 05 Sep 2022 09:26:21 +0000</pubDate>
                        <description><![CDATA[Hi @dominix,
did you try to add -t ( timeout ) option  ?
zmmailbox --help

zmmailbox   

  -h/--help                                display usage
  -f/--file ...]]></description>
                        <content:encoded><![CDATA[<p>Hi @dominix,</p>
<p>did you try to add -t ( timeout ) option  ?</p>
<pre contenteditable="false">zmmailbox --help

zmmailbox   

  -h/--help                                display usage
  -f/--file                                use file as input stream
  -u/--url      http://{host}  server hostname and optional port. must use admin port with -z/-a
  -a/--admin    {name}                     admin account name to auth as
  -z/--zadmin                              use zimbra admin name/password from localconfig for admin/password
  -y/--authtoken {authtoken}               use auth token string (has to be in JSON format) from command line
  -Y/--authtokenfile {authtoken file}      read auth token (has to be in JSON format) from a file
  -m/--mailbox  {name}                     mailbox to open
     --auth     {name}                     account name to auth as; defaults to -m unless -A is used
  -A/--admin-priv                          execute requests with admin privileges
                                           requires -z or -a, and -m
  -p/--password {pass}                     auth password
  -P/--passfile {file}                     read password from file
  -t/--timeout                             timeout (in seconds)
  -v/--verbose                             verbose mode (dumps full exception stack trace)
  -d/--debug                               debug mode (dumps SOAP messages)</pre>
<p>As reported from this commit :</p>
<p><a href="https://github.com/Zimbra/zm-mailbox/commit/61d2511d216e6896a49b859a2c37b1ae666bc515" target="_blank" rel="noopener">https://github.com/Zimbra/zm-mailbox/commit/61d2511d216e6896a49b859a2c37b1ae666bc515</a></p>
<pre contenteditable="false">Added -t/--timeout option to zmmailbox CLI, for timeout in seconds.  0 means infinite, and default is to use httpclient_connmgr_so_timeout from localconfig. (The default for that is 60000ms, or 60 seconds.)</pre>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-9-by-zextras/">Zimbra Build by Zextras - no Zextras support guaranteed</category>                        <dc:creator>mgarbo</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-3697</guid>
                    </item>
				                    <item>
                        <title>zmmailbox postRestURL doesn&#039;t work</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-3688</link>
                        <pubDate>Fri, 02 Sep 2022 19:32:28 +0000</pubDate>
                        <description><![CDATA[Hi everyone here,
needless to say, the file is valid, the user exist, there is room on the server. however I am not able to restore any file this way (I am migrating a server)
this is Rele...]]></description>
                        <content:encoded><![CDATA[<p>Hi everyone here,</p>
<p>needless to say, the file is valid, the user exist, there is room on the server. however I am not able to restore any file this way (I am migrating a server)</p>
<p>this is Release 9.0.0.ZEXTRAS.20220713.UBUNTU20.64 UBUNTU20_64 FOSS edition.</p>
<p>any tips, direction or indications is welcome.</p>
<pre contenteditable="false">zmmailbox -z -v -m specificuser postRestURL '//?fmt=tgz&amp;resolve=skip' ./my-archive-file.tar.gz
ERROR: zclient.IO_ERROR (Read timed out) (cause: java.net.SocketTimeoutException Read timed out)
com.zimbra.common.zclient.ZClientException: Read timed out
ExceptionId:main:1662144146623:e82dba18bd4b0af4
Code:zclient.IO_ERROR
at com.zimbra.common.zclient.ZClientException.IO_ERROR(ZClientException.java:49)
at com.zimbra.client.ZMailbox.postRESTResource(ZMailbox.java:3587)
at com.zimbra.cs.zclient.ZMailboxUtil.doPostRestURL(ZMailboxUtil.java:3036)
at com.zimbra.cs.zclient.ZMailboxUtil.execute(ZMailboxUtil.java:1313)
at com.zimbra.cs.zclient.ZMailboxUtil.main(ZMailboxUtil.java:2917)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:283)
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:309)
at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:350)
at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:803)
at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966)
at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478)
at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472)
at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)
at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1455)
at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1059)
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.zimbra.common.httpclient.HttpClientUtil.executeMethod(HttpClientUtil.java:73)
at com.zimbra.common.httpclient.HttpClientUtil.executeMethod(HttpClientUtil.java:50)
at com.zimbra.client.ZMailbox.postRESTResource(ZMailbox.java:3579)
... 3 more</pre>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-9-by-zextras/">Zimbra Build by Zextras - no Zextras support guaranteed</category>                        <dc:creator>dominix</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-9-by-zextras/zmmailbox-postresturl-doesnt-work/#post-3688</guid>
                    </item>
							        </channel>
        </rss>
		