ActiveSync (Z-push).

  1. # wget http://download.z-push.org/final/2.3/z-push-2.3.6.tar.gz
  2. # tar zxvf z-push-2.3.6.tar.gz
  3. # mkdir -p /var/lib/z-push /var/log/z-push /usr/share/z-push
  4. # chmod 755 /var/lib/z-push /var/log/z-push
  5. # chown apache:apache /var/lib/z-push /var/log/z-push
  6. # cp -R z-push-2.3.6/* /usr/share/z-push
  7. # yum install -y php-cli php-soap php-process php-mbstring
  8. # vi /usr/share/z-push/backend/imap/config.php (Modify) --> define('IMAP_FOLDER_CONFIGURED', true);
  9. # vi /etc/php.ini (Add) --> extension=/usr/lib64/php/modules/imap.so
  10. # vi /usr/share/z-push/config.php (Modify) --> define('TIMEZONE', 'America/Denver'); and define('BACKEND_PROVIDER', 'BackendIMAP');
  11. # vi /etc/httpd/conf/z-push.conf (Create)
  12. #
    # Z-push
    #
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    # Z-Push - ActiveSync over-the-air - default Apache configuration
    <IfModule mod_alias.c>
        Alias /Microsoft-Server-ActiveSync /usr/share/z-push/index.php
     </IfModule>
    
     <Directory /usr/share/z-push>
       # Don't list a directory index, follow symlinks (maybe state dir is somewhere linked)
       DirectoryIndex index.php
       Options -Indexes +FollowSymLinks
    
       # Z-push requirements
       php_value magic_quotes_gpc off
       php_value magic_quotes_runtime off
       php_value register_globals off
       php_value short_open_tag on
    
       # Optional
       # php_value display_errors off
       php_admin_flag safe_mode off
    
       # Setting memory limit higher (larger attachments)
       php_value memory_limit 128M
    
       # Security
       # Don't allow .htaccess Overrides, disallow access to files
       AllowOverride none
        <IfModule !mod_authz_core.c>
           Order allow,deny
           allow from all
        </IfModule>
        <IfModule mod_authz_core.c>
           Require all granted
        </IfModule>
    
        <Files "config.php">
           <IfModule !mod_authz_core.c>
             Deny from All
           </IfModule>
           <IfModule mod_authz_core.c>
             Require all denied
           </IfModule>
        </Files>
    </Directory>
    
  13. # vi /etc/httpd/conf/httpd.conf (Add) --> Include /etc/httpd/conf/z-push.conf
  14. # service httpd restart
  15. Configure email client on tablet or phone (Tested Samsung Galaxy Tab w/Outlook)

*Tested only on CentOS 6, but should work on CentOS 7. Contacts and Calendar to come.