ActiveSync (Z-push): Difference between revisions

From QmailToaster
Jump to navigation Jump to search
(Created page with "ActiveSync Z-push install # printf '%s\n' \ '[z-push]' \ 'name=Z-Push noarch Enterprise Linux 7 - \$basearch' \ 'baseurl=http://repo.z-hub.io/z-push:/final/RHEL_7' \ 'failovermethod=priority' \ 'enabled=1' \ 'gpgcheck=0' \ > /etc/yum.repos.d/z-push.repo # yum install z-push-common z-push-config-apache z-push-backend-imap z-push-ipc-sharedmemory # perl -pi -e 's#'\''IMAP_FOLDER_CONFIGURED'\'', false#'\''IMAP_FOLDER_CONFIGURED'\'', true#g' /usr/sh...")
 
No edit summary
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
ActiveSync Z-push install
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
# <nowiki>perl -pi -e "s/'TIMEZONE', ''/'TIMEZONE', 'America\/Denver'/g" /usr/share/z-push/src/config.php</nowiki>
# <nowiki>perl -pi -e "s/'BACKEND_PROVIDER', ''/'BACKEND_PROVIDER', 'BackendIMAP'/g" /usr/share/z-push/src/config.php</nowiki>
  # printf '%s\n' \
  # printf '%s\n' \
   '[z-push]' \
   '#' \
   'name=Z-Push noarch Enterprise Linux 7 - \$basearch' \
   '# Z-push' \
   'baseurl=http://repo.z-hub.io/z-push:/final/RHEL_7' \
   '#' \
   'failovermethod=priority' \
   'RewriteEngine On' \
   'enabled=1' \
   'RewriteCond %{HTTPS} off
   'gpgcheck=0' \
   'RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}' \
   > /etc/yum.repos.d/z-push.repo
   '# Z-Push - ActiveSync over-the-air - default Apache configuration' \
 
  ' <IfModule mod_alias.c>' \
# yum install z-push-common z-push-config-apache z-push-backend-imap z-push-ipc-sharedmemory
  '   Alias /Microsoft-Server-ActiveSync /usr/share/z-push/src/index.php' \
# perl -pi -e 's#'\''IMAP_FOLDER_CONFIGURED'\'', false#'\''IMAP_FOLDER_CONFIGURED'\'', true#g' /usr/share/z-push/backend/imap/config.php
  ' </IfModule>' \
# perl -pi -e 's#'\''TIMEZONE'\'', '\'''\''#'\''TIMEZONE'\'', '\''America/Denver'\''#g' /usr/share/z-push/config.php
  ' <Directory /usr/share/z-push/src>' \
# perl -pi -e 's#'\''BACKEND_PROVIDER'\'', '\'''\''#'\''BACKEND_PROVIDER'\'', '\''BackendIMAP'\''#g' /usr/share/z-push/config.php
  '   # 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<br>
  # systemctl restart httpd<br>
   Configure Outlook email client on tablet or phone (Tested: Samsung Galaxy Tab S2, and Samsung S7 Edge, iPhone X)
   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
  On tablet or smart phone open Outlook
Go to 'Add Accout'
  Go to 'Add Accout'
Go to 'Add an email account'
  Go to 'Add an email account'
Enter email address
  Enter email address
Go to 'Manual setup'
  Go to 'Manual setup'
Select 'Exchange'
  Select 'Exchange'
Go to 'Advanced Setup'
  Go to 'Advanced Setup'
Enter email account (client@domain.com) -> Next
  Enter email account (client@domain.com) -> Next
Enter mail server -> (mail.domain.com) -> Next
  Enter mail server -> (mail.domain.com) -> Next
Enter domain\username (client@domain.com) -> Next
  Enter domain\username (client@domain.com) -> Next
Enter password (password) -> Next -> Done
  Enter password (password) -> Next -> Done
Connect (on mine its a check mark, select it)
  Connect (on mine its a check mark, select it)
Outlook (Exchange) should sync now
  Outlook (Exchange) should sync now

Revision as of 01:02, 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
# systemctl restart httpd
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