Difference between revisions of "Z-Push v2 with Zimbra"

Jump to navigation Jump to search
991 bytes added ,  07:24, 13 September 2014
→‎Set-up: Updated for Zimbra 8 / backend 60
(→‎Z-Push Config: Added "Config Items")
(→‎Set-up: Updated for Zimbra 8 / backend 60)
Line 44: Line 44:
# Update the Z-Push <code>config.php</code> file as required (see example below - [[#Z-Push_Config|Z-Push Config]])
# Update the Z-Push <code>config.php</code> file as required (see example below - [[#Z-Push_Config|Z-Push Config]])


=== Additional steps ===
Some additional steps are sometimes required due to bugs etc, see the INSTALL file included with the backend for more info.
* If running Zimbra backend 59 onwards fix Z-Push's <code>RowCmp()</code> function
** Within <code>z-push/lib/default/diffbackend/diffstate.php</code>, replace existing contents of <code>RowCmp()</code> with
** <code>return strcmp( $b["id"], $a["id"] ) ;</code>
* If running Zimbra 7.2 onwards and have clients with multiple devices you need to allow them to connect simultaneously, on your Zimbra server allow an appropriate number of sessions (default is 5)
** <code>zmlocalconfig -e zimbra_session_limit_soap=7</code>
** <code>zmconfigdctl reload</code>
* If running Zimbra 8 onwards you need to whitelist your Z-Push server otherwise its likely to get blocked by Zimbra, on your Zimbra server allow your Z-Push server's IP address
** EG <code> zmprov mcf zimbraHttpThrottleSafeIPs 158.10.20.123 </code>
=== Testing ===
In theory, it should be working now, in order to test...
In theory, it should be working now, in order to test...
# Browse to your server, eg http://as.domain.com/Microsoft-Server-ActiveSync
# Browse to your server, eg http://as.domain.com/Microsoft-Server-ActiveSync
Line 51: Line 63:
#* You should get a page showing "Z-Push - Open Source ActiveSync" which doesn't contain errors - this confirms that connectivity exists between all the required components (Apache, Z-Push, Zimbra), and that they are basically OK.
#* You should get a page showing "Z-Push - Open Source ActiveSync" which doesn't contain errors - this confirms that connectivity exists between all the required components (Apache, Z-Push, Zimbra), and that they are basically OK.


=== Logrotate ===
You should also set-up logrotate on the Z-Push logs, example below will rotate daily, keeping two weeks of logs.  Create in <code>/etc/logrotate.d</code>, eg <code>vi /etc/logrotate.d/z-push</code>
You should also set-up logrotate on the Z-Push logs, example below will rotate daily, keeping two weeks of logs.  Create in <code>/etc/logrotate.d</code>, eg <code>vi /etc/logrotate.d/z-push</code>
<pre>
<pre>

Navigation menu