This repository is source for integrating Zimbra Single Server and Z-Push + Zimbra Backend to achieve ActiveSync on Zimbra OSE.
Install dependecies
For CentOS 7
yum install epel-release -y
yum update -y
yum upgrade -y
yum install git php-cli php-soap php-process php-mbstring -y
For Ubuntu 16.04 and 18.04
apt update -y
apt upgrade -y
apt install git php-cli php-soap php-cgi php-mbstring php-curl -y
Clone repo
git clone https://github.com/rusnazip/zcs-zpush
cd zcs-zpush/
Create folder for log
mkdir /var/lib/z-push /var/log/z-push
chmod 755 /var/lib/z-push /var/log/z-push
chown zimbra:zimbra /var/lib/z-push /var/log/z-push
Save z-push folder on /opt/
cp -rvf z-push /opt/
Note : I use Asia/Yakutsk as my Timezone. Please open /opt/z-push/config.php and /opt/z-push/autodiscover/config.php and adjust/change Asia/Yakutsk to your Timezone
Create symlink
ln -sf /opt/z-push /opt/zimbra/jetty/webapps/
Save php script on /usr/bin
cp php-cgi-fix.sh /usr/bin/php-cgi-fix.sh
chmod +x /usr/bin/php-cgi-fix.sh
Change publicHostname domain on your Zimbra into localhost
su - zimbra -c 'zmprov md yourzimbradomain.tld zimbraPublicServiceHostname localhost zimbraPublicServiceProtocol https'
For Zimbra 8.8.6
cp /opt/zimbra/jetty/etc/jetty.xml.in /opt/zimbra/jetty/etc/jetty.xml.in.backup
cp jetty.xml.in-for-zcs-886 /opt/zimbra/jetty/etc/jetty.xml.in
chown zimbra.zimbra /opt/zimbra/jetty/etc/jetty.xml.in
For Zimbra 8.8.7
cp /opt/zimbra/jetty/etc/jetty.xml.in /opt/zimbra/jetty/etc/jetty.xml.in.backup
cp jetty.xml.in-for-zcs-887 /opt/zimbra/jetty/etc/jetty.xml.in
chown zimbra.zimbra /opt/zimbra/jetty/etc/jetty.xml.in
For Zimbra 8.8.8 โ Zimbra 8.8.12
cp /opt/zimbra/jetty/etc/jetty.xml.in /opt/zimbra/jetty/etc/jetty.xml.in.backup
cp jetty.xml.in-for-zcs-888-8812 /opt/zimbra/jetty/etc/jetty.xml.in
chown zimbra.zimbra /opt/zimbra/jetty/etc/jetty.xml.in
For Zimbra 8.8.15
cp /opt/zimbra/jetty/etc/jetty.xml.in /opt/zimbra/jetty/etc/jetty.xml.in.backup
cp jetty.xml.in-for-zcs-8815 /opt/zimbra/jetty/etc/jetty.xml.in
chown zimbra.zimbra /opt/zimbra/jetty/etc/jetty.xml.in
For Zimbra 9
cp /opt/zimbra/jetty/etc/jetty.xml.in /opt/zimbra/jetty/etc/jetty.xml.in.backup
cp jetty.xml.in-for-zcs-9 /opt/zimbra/jetty/etc/jetty.xml.in
chown zimbra.zimbra /opt/zimbra/jetty/etc/jetty.xml.in
For CentOS 7
cp zpush.ini /etc/php.d/zpush.ini
For Ubuntu 16.04
cp zpush.ini /etc/php/7.0/cgi/conf.d/10-zpush.ini
For Ubuntu 18.04
cp zpush.ini /etc/php/7.2/cgi/conf.d/10-zpush.ini
Restart Zimbra Mailbox
su - zimbra -c 'zmmailboxdctl restart'
For testing, please access https://ip-of-zimbra/Microsoft-Server-ActiveSync from your browser. Or you can configure your mobile devices and ensure exchange as protocol