This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Autoconfiguration and Autodiscover
#1
Autoconfiguration and Autodiscover
Welcome,
I would to share with you two scripts created for hosting where I work. Autoconfiguration (Thunderbird) and Autodiscover(Outlook and Mac OS Mail).

Package: Download
You need to change mail.server.tld to your mail server domain in files

Code:
mail/config-v1.1.xml
autodiscover/autodiscover.php

Following steps are writen for example, where I placed scripts to /var/sentora/hostdata/zadmin/public_html/mailconfig

We need to add custom virtualhost:
Code:
</VirtualHost>

# Configuration for Autocofiguration
<VirtualHost *:80>
ServerAlias autodiscover.* autoconfig.*
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mailconfig/"
AddType application/x-httpd-php .php
<Directory "/var/sentora/hostdata/zadmin/public_html/mailconfig/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
And DNS records:
Code:
Name                 TYPE  Priority   Weight  Port   Dst      
_autodiscover._tcp   SRV    0         0       443    autodiscover.yourdomain.tld
autodiscover         A      -         -       -      Your server Ip
autoconfig           A      -         -       -      Your server Ip
Few extra words:
If you using port 25 for smtp, change it in scripts (default is 587).
Outlook first try to connect over SSL, don't be upset when he doesn't find configuration at first check.  Outlook will ask you for second try, without SSL.
Thunderbird gets configuration with order from file, If you wish to get configuration without SSL, change order in config-v1.1.xml file.
Reply
Thanks given by: Michelsup
#2
RE: Autoconfiguration and Autodiscover
(04-06-2015, 04:40 AM)Castey Wrote: Welcome,
I would to share with you two scripts created for hosting where I work. Autoconfiguration (Thunderbird) and Autodiscover(Outlook and Mac OS Mail).

Package: Download
You need to change mail.server.tld to your mail server domain in files

Code:
mail/config-v1.1.xml
autodiscover/autodiscover.php

Following steps are writen for example, where I placed scripts to /var/sentora/hostdata/zadmin/public_html/mailconfig

We need to add custom virtualhost:
Code:
</VirtualHost>

# Configuration for Autocofiguration
<VirtualHost *:80>
ServerAlias autodiscover.* autoconfig.*
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mailconfig/"
AddType application/x-httpd-php .php
<Directory "/var/sentora/hostdata/zadmin/public_html/mailconfig/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
And DNS records:
Code:
Name                 TYPE  Priority   Weight  Port   Dst      
_autodiscover._tcp   SRV    0         0       443    autodiscover.yourdomain.tld
autodiscover         A      -         -       -      Your server Ip
autoconfig           A      -         -       -      Your server Ip
Few extra words:
If you using port 25 for smtp, change it in scripts (default is 587).
Outlook first try to connect over SSL, don't be upset when he doesn't find configuration at first check.  Outlook will ask you for second try, without SSL.
Thunderbird gets configuration with order from file, If you wish to get configuration without SSL, change order in config-v1.1.xml file.

Is this still available ??
Reply
Thanks given by:


Forum Jump:


Users browsing this thread: 4 Guest(s)