Cannot get it working properly and also a question or two.
(sorry for also posting it on github, but apparently this is the main site)
First off, thank you for this script! Seems very promising as Plesk apparently leaves us out in the cold. Even with Obisdian the (Plesk) autodiscover is not working correctly.
Therefor I decided to do a search on autodiscover features for Plesk and stumbled upon your solution / script. But for some reason it's not working correctly.
I managed to get autodiscover working for Thunderbird on the first go, but it didn't work for Outlook 2016. So I decided to redo the (test) server installation once again. On the 2nd go also Thunderbird autodiscover didn't work anymore. So I will redo it a third time. Hopefully that's the charm.
And yes, I did follow the wiki, but it's not clear what I am doing wrong to be honest.
With Plesk Obsidian I disabled the "Enable mail autodiscover"-option under "Mail Server Settings". I guess this should be disabled, otherwise the script won't work, right?
I will give it a new go in a few on a fresh Plesk Obsidian installation in a few minutes. Maybe I overlooked something. As mentioned I managed to get the mailserver settings discovered in Thunderbird, but not in Outlook 2016 (so far every approach failed).
As for my question, probably not possible, we have adviced our clients to use the full hostname for the mailserver e.g. ns1.servername.com. I read the wiki and apparantly you have to set the hostname to servername.com instead. Would it still be possible to use ns1.servername.com as mailserver?
If not or it's too much, then nevermind. It would be great if we could keep using ns1.servername.com. So current customers don't need to change anything obviously.
Anyways, will report back later after I setup the new server freshly.