ActiveSync (Z-push): Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
No edit summary
 
(11 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 10: Line 11:
  # cp -R Z-Push-2.7.1/* /usr/share/z-push/
  # cp -R Z-Push-2.7.1/* /usr/share/z-push/
  # dnf -y install  
  # dnf -y install  
  # perl -pi -e 's#define('IMAP_FOLDER_CONFIGURED', false)#define('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
  # perl -pi -e 's#'\''TIMEZONE'\'', '\'''\''#'\''TIMEZONE'\'', '\''America/Denver'\''#g' /usr/share/z-push/config.php
  # <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/config.php
# <nowiki>perl -pi -e "s/'BACKEND_PROVIDER', ''/'BACKEND_PROVIDER', 'BackendIMAP'/g" /usr/share/z-push/src/config.php</nowiki>
 
# 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<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

Latest revision as of 11: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