[Guide] Autoconfig + autodiscover for simple platforms

Discussion in 'Tips/Tricks/Mods' started by cfoe, Nov 22, 2012.

  1. cfoe

    cfoe ISPConfig Developer ISPConfig Developer

  2. cfoe

    cfoe ISPConfig Developer ISPConfig Developer

    I updated the guide to correctly work with Outlook >= 2007
    Now it is on both clients (Outlook and Thunderbird) possible to add an account with only username and password.
  3. inside83

    inside83 Member


    I just glanced over your guide.
    Does it support nginx?
  4. cfoe

    cfoe ISPConfig Developer ISPConfig Developer

    You need the rewrite that is in the .htaccess but you need to add it to the vhost config in nginx. This works for me:
    server {
       listen *:80;
       server_name discover.domain.de autoconfig.* autodiscover.*;
       root  /var/www/discover.domain.de/web;
       index index.html;
       error_log /var/log/nginx/discover.domain.de/error.log;
       access_log /var/log/nginx/discover.domain.de/access.log combined;
       #location ^~ /autodiscover/ {
      #  index autodiscover.php;
      #  rewrite ^/.*$ /autodiscover.php last;
       rewrite ^/autodiscover/autodiscover\.xml$ /autodiscover/autodiscover.php;
       location = /robots.txt {
         allow all;
         log_not_found off;
         access_log off;
       location ~ \.php$ {
         try_files $uri =404;
         include /etc/nginx/fastcgi_params;
         fastcgi_pass unix:/var/lib/php5-fpm/discover.sock;
         fastcgi_index index.php;
         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         fastcgi_param PATH_INFO $fastcgi_script_name;
         fastcgi_intercept_errors on;

    Sorry but I dont see the option to properly post code here on the forum.
    Last edited: Jan 21, 2015
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    There is a icon in the editor bar that looks a bit like a newspaper article, when yu click on that icon, it will open varius code post options.
  6. cfoe

    cfoe ISPConfig Developer ISPConfig Developer

  7. theWeird

    theWeird Member

    Thanks for digging for this old post.
    I've been working on a tool to offer autodiscovery for mail clients in a multiserver environment but just didn't manage to get it working for outlook.
    Using some single lines of Christians code I just finished my plugin.
    https://github.com/SpicyWeb-de/isp-mailConfig (Setup Instruction included)
  8. inside83

    inside83 Member

    So I put your code in "nginx Directives" box of my site?
    Any additional settings?
    DNS entries?
  9. cfoe

    cfoe ISPConfig Developer ISPConfig Developer

  10. dmgeurts

    dmgeurts Member

    Updated for ISPConfig 3.1, apache 2.4 and added option to manually configure the mail server FQDN as the detected server name wasn't ideal for my mirrored setup. https://github.com/dmgeurts/isp-mailConfig
    SupuS and theWeird like this.

Share This Page