• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Push (ActiveSync) - Anyone interested?

I intend to. Doesn't really seem to be much interest so no need to rush it but I intend to document a lot of modifications I've made.
 
Hi, I'm interested. On my old vserver z-push with zarafa works fine but on my new server with Plesk 17.5.3 z-push 2.3.9 an imap won't work and i don' find the problem. Always I get the Error "AuthenticationRequiredException" .
 
Sounds like a similar issue I had at one point. Can you check the z push log and see if the username is being passed?
 
Hi,

User only passed when I use my Tablet (Andorid 5.1.1), when I try my Smartphone (Android 7.1.1) User is unknown.


from z-push.log


10/03/2018 10:51:38 [29134] [ INFO] [unknown] AuthenticationRequiredException: Access denied. Please send authorisation information - code: 0 - file: /usr/share/z-push/index.php:56
10/03/2018 10:51:38 [29134] [ INFO] [unknown] User-agent: 'unknown'
10/03/2018 10:51:38 [29134] [FATAL] [unknown] Exception: (AuthenticationRequiredException) - Access denied. Please send authorisation information
10/03/2018 10:51:38 [29134] [ INFO] [unknown] cmd='' memory='2.42 MiB/4.00 MiB' time='0.02s' devType='' devId='' getUser='unknown' from='134.xxx.xxx.xxx' idle='0s' version='2.3.9' method='OPTIONS' httpcode='401'
10/03/2018 10:52:39 [29135] [ INFO] [me@domain.de] AuthenticationRequiredException: Access denied. Please send authorisation information - code: 0 - file: /usr/share/z-push/index.php:56
10/03/2018 10:52:39 [29135] [ INFO] [me@domain.de] User-agent: 'unknown'
10/03/2018 10:52:39 [29135] [FATAL] [me@domain.de] Exception: (AuthenticationRequiredException) - Access denied. Please send authorisation information
10/03/2018 10:52:39 [29135] [ INFO] [me@domain.de] cmd='OPTIONS' memory='2.42 MiB/4.00 MiB' time='0.02s' devType='SAMSUNGSMP' devId='sec147418e8b1598' getUser='ac@axecon.de' from='134.xxx.xxx.xxx' idle='0s' version='2.3.9' method='OPTIONS' httpcode='401'


10/03/2018 10:57:00 [29142] [ INFO] [unknown] AuthenticationRequiredException: Access denied. Please send authorisation information - code: 0 - file: /usr/share/z-push/index.php:56
10/03/2018 10:57:00 [29142] [ INFO] [unknown] User-agent: 'unknown'
10/03/2018 10:57:00 [29142] [FATAL] [unknown] Exception: (AuthenticationRequiredException) - Access denied. Please send authorisation information
10/03/2018 10:57:00 [29142] [ INFO] [unknown] cmd='' memory='2.42 MiB/4.00 MiB' time='0.02s' devType='' devId='' getUser='unknown' from='134.xxx.xxx.xxx' idle='0s' version='2.3.9' method='OPTIONS' httpcode='401'
 
Ok, I think it's Problem with the Redirect from /Microsoft-Server-ActiveSync to /usr/share/z-push/index.php
I must configure Custom Handler php-script .php for the subdomain or the Server does not process the php file
and the Browser will download it as Microsoft-Server-ActiveSync file.

Additonal Apache Config for the Subdomain:
short_open_tag = on

These entries are not supported:
php_flag magic_quotes_gpc = off
php_flag register_globals = off
php_flag magic_quotes_runtime = off

Syntax error on line 3 of /var/www/vhosts/system/sub.domain.de/conf/vhost_ssl.conf: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
 
OK, I moved those into a PHP.ini file and then included it. Take a look at the syntax for one of the webmail files. It will get you in the right direction.
 
Hello,

I am having problems every time I enter the page I am downloading the file that I have to modify at the server level?
 
Check /etc/httpd/conf.d/z-push.conf -

Code:
# 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

    # 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>
 
Same here. Ubuntu 18.04, Plesk 17.8.11. Are you all running PHP7? Obviuosly "php_flag" and "php_value" are no longer supported by PHP7.
Unfortounately I don't know how to fix that. At my installation the index.php is downloaded as "Microsoft-Server-ActiveSync" as well.

Boas
 
That was CentOS and PHP 5 something, unsure what the specific version was. What does your z-push.conf look like?
 
This was my original version:
PHP:
# 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

    # 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>


and then I took a copy of the one above:
PHP:
# 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

    # 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>

Both same result.

Boas
 
How is PHP running? I believe it was FastCGI that once gave me an issue. also; nginx or just apache?
 
Just apache. I tried all versions Plesk offers:
  • FPM
  • CGI
  • FastCGI
  • mod_php (which plesk calls "outdated")
Thanks,
Boas
 
Hi all,
to check whether my issue is with Ubuntu 18.04 I installed 16.04 and did the same test. Since 16.04 (at least the flavour I got from my provider Strato) does not contain z-push, I installed it from the original repo (Kopano Download) and the funny thing is, all the "php_value" parameters are not included in /etc/apache2/conf-enabled/z-push.conf:
PHP:
# 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

    # 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>

Unfortunately I have the same issue: https://DOMAIN/Microsoft-Server-ActiveSync just downloads the index.php.

Best,
Boas
 
Back
Top