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

Jump to navigation Jump to search
1,075 bytes added ,  21:47, 4 October 2016
Add Google Ads
(→‎Z-Push Config: Added "Config Items")
(Add Google Ads)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
If you must do it, then your best bet is to install on separate server first. Then, once you know you've got a working installation, try to get Z-Push running on your Zimbra server.
If you must do it, then your best bet is to install on separate server first. Then, once you know you've got a working installation, try to get Z-Push running on your Zimbra server.
|}
|}
 
{{#widget:Widget:GoogleAdSenseSkyscraper}}
Z-Push is essentially a website.  Mobile devices access the site in order to be able to sync with your Zimbra server.  Therefore, you need a publicly accessible server that can host the site, and a DNS record that points to it (that client mobile devices will need to be able to resolve)
Z-Push is essentially a website.  Mobile devices access the site in order to be able to sync with your Zimbra server.  Therefore, you need a publicly accessible server that can host the site, and a DNS record that points to it (that client mobile devices will need to be able to resolve)


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>
Line 62: Line 75:
}
}
</pre>
</pre>
 
{{#widget:Widget:GoogleAdSenseSkyscraper}}
== Z-Push Config ==
== Z-Push Config ==
Note that starting from Z-Push version v2.0.6, there are now seperate config files for both Z-Push and the Zimbra Backend.  If you're installing an old version for some reason, see the [[#Pre Z-Push v2.0.6|Pre Z-Push v2.0.6]] section below.
Note that starting from Z-Push version v2.0.6, there are now seperate config files for both Z-Push and the Zimbra Backend.  If you're installing an old version for some reason, see the [[#Pre Z-Push v2.0.6|Pre Z-Push v2.0.6]] section below.

Navigation menu