HI guys, I created a short guide from the posting by Antal Delahaije (admxnl) on http://bugtracker.ispconfig.org/index.php?do=details&task_id=2152 Look here: https://github.com/foe-services/ispc-resources/tree/master/guides/autodiscover Limitations: All mailboxes must be located on the same machine (domains for the services pop, smtp, imap) because domains are hardcoded to the xml files
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.
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: Code: 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.
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.
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)
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
Update: resolved. Thanks Thanks for this tool. I did follow all the instructions but for some reason I am being directed to the default site when I run a test. When I change the following link it will not direct my request correctly: https://discover.my-service.com/mail/config-v1.1.xml?emailaddress=user%40my-mail.com I did check the DNS records and these all seem te be fine. I am running the service at discover.s1.gigabitjes.nl and a queries for https://discover.s1.gigabitjes.nl or https://discover.s1.gigabitjes.nl/mail/ ends up at 000default.tld. This is of course included in the above URL eg https://disover.s1.gigabitjes.nl/mail/config-v1.1.xml?emailaddress=test%40mydomain.com (where "mydomain.com" is the domain which I am testing). I am hoping you could point me into the right direction
Update: resolved. Thanks Thanks for the updated version. I am struggling with it a bit, but I appreciate the update.
Anyone else having issues running this on PHP 7.2 or is it just me? I moved from 5.6 on Ubuntu 16.04 to 7.2 on Ubuntu 18.04 and it's no longer working. Pulling my hair out trying to figure out why the login call isn't working. Tested the account credentials and that's fine. SSL is forced and using a valid certificate. The errors thrown: can't connect to host.