ActiveSync (Z-push): Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Main_Page#Modifications|Back]]<br>
  ActiveSync Z-push install
  ActiveSync Z-push install
  # dnf config-manager --set-enabled powertools -y
  # dnf config-manager --set-enabled powertools -y
Line 11: Line 12:
  # dnf -y install  
  # 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/'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/'TIMEZONE', ''/'TIMEZONE', 'America\/Denver'/g" /usr/share/z-push/src/config.php</nowiki>
  # perl -pi -e "s/'BACKEND_PROVIDER', ''/'BACKEND_PROVIDER', 'BackendIMAP'/g" /usr/share/z-push/src/config.php
  # <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' \
   '#' \
   '#' \

Latest revision as of 10:47, 30 March 2024

Back

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