Configuring autodiscover

While using ActiveSync allows for entering server name explicitly, it's possible to configure autodiscover feature so that email client can get matching ActiveSync server details from a email address.

Please bear in mind that this configuration is performed for primary domain. For example, if you have WebMail Pro installed at and ActiveServer is available at, autodiscover needs to be configured for host, and it's assumed that you're dealing with email addresses.

If reconfiguring primary domain is not an option, you can set up - most clients would check both and use whichever one is available.

Actually, to discover settings for email account in domain, email clients check against URL of the following kind:


So if you wish to have autodiscover enabled, reconfigure your web server by adding an alias pointing from URL of that kind to autodiscover/autodiscover.php.

Also, you need to edit autodiscover/config.php file, uncomment the following line and specify ActiveServer hostname there:

define('ZPUSH_HOST', '');

Apache configuration

# Z-Push AutoDiscover - ActiveSync over-the-air - default Apache configuration
<IfModule mod_alias.c>
    AliasMatch (?i)/Autodiscover/Autodiscover.xml "/usr/share/z-push/autodiscover/autodiscover.php"

Nginx configuration

location ~ /(?:a|A)utodiscover/(?:a|A)utodiscover.xml {
    root /opt/afterlogic/html/;
    try_files /autodiscover.php =404;
    fastcgi_index   index.php;
    include         fastcgi.conf;
    fastcgi_param   SERVER_ADDR "";
    fastcgi_param   REMOTE_ADDR $http_x_real_ip;