ActiveSync (Z-push): Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
No edit summary
Line 24: Line 24:
   '    Alias /Microsoft-Server-ActiveSync /usr/share/z-push/src/index.php' \
   '    Alias /Microsoft-Server-ActiveSync /usr/share/z-push/src/index.php' \
   ' </IfModule>' \
   ' </IfModule>' \
  '' \
   ' <Directory /usr/share/z-push/src>' \
   ' <Directory /usr/share/z-push/src>' \
   '  # Don't list a directory index, follow symlinks (maybe state dir is somewhere linked)' \
   '  # Don't list a directory index, follow symlinks (maybe state dir is somewhere linked)' \
   '  DirectoryIndex index.php' \
   '  DirectoryIndex index.php' \
   '  Options -Indexes +FollowSymLinks' \
   '  Options -Indexes +FollowSymLinks' \
  '' \
   '  AllowOverride none' \
   '  AllowOverride none' \
   '    <IfModule !mod_authz_core.c>' \
   '    <IfModule !mod_authz_core.c>' \

Revision as of 00:56, 28 March 2024

ActiveSync Z-push install
# dnf config-manager --set-enabled powertools -y
# dnf -y install php-imap php-cli php-soap php-process php-mbstring  php-pecl-memcached
# cd /usr/share
# wget https://github.com/Z-Hub/Z-Push/archive/refs/tags/2.7.1.tar.gz
# tar zxvf 2.7.1.tar.gz
# mkdir /usr/share/z-push /var/log/z-push /var/lib/z-push
# chown -R apache: /usr/share/z-push
# chown apache:apache /var/lib/z-push /var/log/z-push
# cp -R Z-Push-2.7.1/* /usr/share/z-push/
# dnf -y install 
# perl -pi -e "s/'IMAP_FOLDER_CONFIGURED', false/'IMAP_FOLDER_CONFIGURED', true/g" /usr/share/z-push/src/backend/imap/config.php
# perl -pi -e "s/'TIMEZONE', /'TIMEZONE', 'America\/Denver'/g" /usr/share/z-push/src/config.php
# perl -pi -e "s/'BACKEND_PROVIDER', /'BACKEND_PROVIDER', 'BackendIMAP'/g" /usr/share/z-push/src/config.php
# printf '%s\n' \
  '#' \
  '# 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/src/index.php' \
  ' </IfModule>' \
  ' <Directory /usr/share/z-push/src>' \
  '   # Don't list a directory index, follow symlinks (maybe state dir is somewhere linked)' \
  '   DirectoryIndex index.php' \
  '   Options -Indexes +FollowSymLinks' \
  '   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>' \
  '         Require all denied' \
  '       </IfModule>' \
  '    </Files>' \
  '</Directory>' \
  > /etc/httpd/conf.d/z-push.conf
Configure Outlook email client on tablet or phone (Tested: Samsung Galaxy Tab S2, and Samsung S7 Edge, iPhone X) On tablet or smart phone open Outlook Go to 'Add Accout' Go to 'Add an email account' Enter email address Go to 'Manual setup' Select 'Exchange' Go to 'Advanced Setup' Enter email account (client@domain.com) -> Next Enter mail server -> (mail.domain.com) -> Next Enter domain\username (client@domain.com) -> Next Enter password (password) -> Next -> Done Connect (on mine its a check mark, select it) Outlook (Exchange) should sync now