I have an open support ticket on this but I'm hoping there's somebody in the community that might have experience with this and can provide their ideas as well.
We really want to achieve the "holy grail" or user setup in all devices - which is that they submit their email address and password to the mail client, and all other settings are setup automatically. This would include SMTP authentication and our default / recommended security settings. And it should work for non-EAS accounts.
Try as I might, we just can't get this to work properly, and it looks like it should.
For now I just want to focus on Outlook 2013 / 2016 on Windows since that should be the easiest.
I've created a couple of mailboxes for testing - test@mbsportsweb.info and eas@mbsportsweb.info. Anyone willing to help figure this out can PM me and I'll share the passwords for those accounts. (I've throttled their outbound activity to prevent this from becoming a mess).
Our mail server is located at https://mail.mbsportsweb.ca and it has it's own certificate. We're running SM16 but I don't think that matters. We're forcing all traffic to HTTPS. We've also got a DNS record for http://autodiscover.mbsportsweb.ca but that doesn't work because SM wants to redirect that to HTTPS and there's no certificate for that domain. IIS has bindings for mail.mbsportsweb.ca for both port 80 and 443, the autodiscover binding is for port 80 only.
The DNS settings for the mbsportsweb.info domain with respect to mail are:
MX mbsportsweb.info mail.mbsportsweb.ca priority: 10
CNAME mail -> mail.mbsportsweb.ca
CNAME autodiscover -> mail.mbsportsweb.ca
SRV _autodiscover._tcp.mbsportsweb.ca. -> SRV 0 0 443 mail.mbsportsweb.ca.
In addition to all that, because the first check for an autodiscover.xml file is made at the root domain, I've added a static XML response at the https://mbsportsweb.info/autodiscover/autodiscover.xml as follows:
<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<Account>
<AccountType>email</AccountType>
<Action>redirectUrl</Action>
<RedirectUrl>https://mail.mbsportsweb.ca/autodiscover/autodiscover.xml</RedirectUrl>
</Account>
</Response>
</Autodiscover>
Technically, since this exists the DNS records on the domain name shouldn't matter as the above would short-circuit Outlook to go directly to the mail server to get the settings.
This all appears to work as designed. Using the "Test E-Mail AutoConfiguration" tool (which you can get to by holding the CTRL key and then right-clicking the Outlook icon in the taskbar), the XML response for the Autodiscover file is:
<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<ASUrl>https://mail.mbsportsweb.ca/ews/exchange.asmx</ASUrl>
<DomainName>mbsportsweb.info</DomainName>
<DomainRequired>on</DomainRequired>
<EwsUrl>https://mail.mbsportsweb.ca/ews/exchange.asmx</EwsUrl>
<LoginName>test@mbsportsweb.info</LoginName>
<OOFUrl>https://mail.mbsportsweb.ca/ews/exchange.asmx</OOFUrl>
<Server>mail.mbsportsweb.ca</Server>
<Type>EXPR</Type>
</Protocol>
<Protocol>
<AuthRequired>on</AuthRequired>
<DomainName>mbsportsweb.info</DomainName>
<DomainRequired>on</DomainRequired>
<LoginName>test@mbsportsweb.info</LoginName>
<Port>143</Port>
<SPA>off</SPA>
<SSL>on</SSL>
<Server>mail.mbsportsweb.ca</Server>
<Type>IMAP</Type>
</Protocol>
<Protocol>
<AuthRequired>on</AuthRequired>
<DomainName>mbsportsweb.info</DomainName>
<DomainRequired>on</DomainRequired>
<LoginName>test@mbsportsweb.info</LoginName>
<Port>110</Port>
<SPA>off</SPA>
<SSL>on</SSL>
<Server>mail.mbsportsweb.ca</Server>
<Type>POP3</Type>
</Protocol>
<Protocol>
<AuthRequired>on</AuthRequired>
<DomainName>mbsportsweb.info</DomainName>
<DomainRequired>on</DomainRequired>
<LoginName>test@mbsportsweb.info</LoginName>
<Port>465</Port>
<SPA>off</SPA>
<SSL>on</SSL>
<Server>mail.mbsportsweb.ca</Server>
<Type>SMTP</Type>
</Protocol>
</Account>
<User>
<DisplayName>test@mbsportsweb.info</DisplayName>
<EMailAddress>test@mbsportsweb.info</EMailAddress>
</User>
</Response>
</Autodiscover>
Everything there looks right and it *should* work. However, it doesn't. Here's a video showing what actually happens in Outlook 2013:
https://youtu.be/EeFopA04FZk
During the automatic setup process, Outlook will test the account by trying to send a message. For whatever reason, either the Autodiscover.xml file or Outlook 2013 refuse to set the "Outgoing server requires authentication" flag. This prevents the sending of the test message, forcing the user to go into manual settings. Once in manual settings, everything looks correct, however, the user needs to click on "More Settings", then to the Outgoing tab, then check the box. For the average user this is simply poor design in Microsoft's part - however, - if things worked correctly with the Autodiscover then it wouldn't be an issue. As the video showcases, the SSL settings are both set to "none" as well, which isn't what it should be.
Has anyone ever gotten this to work the way it's supposed to? I hope so, and then we can get it working in my environment so we can then get onto the EAS account, and then to Android clients, and then to iOS (which I believe is the order of difficulty).
Thanks in advance for anyone who is able to HELP!