|
|
@ -56,31 +56,29 @@ def autoconfig_microsoft():
|
|
|
|
hostname = app.config['HOSTNAME']
|
|
|
|
hostname = app.config['HOSTNAME']
|
|
|
|
xml = f'''<?xml version=\"1.0\" encoding=\"utf-8\" ?>
|
|
|
|
xml = f'''<?xml version=\"1.0\" encoding=\"utf-8\" ?>
|
|
|
|
<Autodiscover xmlns=\"http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006\">
|
|
|
|
<Autodiscover xmlns=\"http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006\">
|
|
|
|
<Response xmlns=\"http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a\">
|
|
|
|
<Response xmlns=\"http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a\">
|
|
|
|
<Account>
|
|
|
|
<Account>
|
|
|
|
<AccountType>email</AccountType>
|
|
|
|
<AccountType>email</AccountType>
|
|
|
|
<Action>settings</Action>
|
|
|
|
<Action>settings</Action>
|
|
|
|
<Protocol>
|
|
|
|
<Protocol>
|
|
|
|
<Type>IMAP</Type>
|
|
|
|
<Type>IMAP</Type>
|
|
|
|
<Server>{hostname}</Server>
|
|
|
|
<Server>{hostname}</Server>
|
|
|
|
<Port>993</Port>
|
|
|
|
<Port>993</Port>
|
|
|
|
<DomainRequired>on</DomainRequired>
|
|
|
|
<DomainRequired>on</DomainRequired>
|
|
|
|
<SPA>off</SPA>
|
|
|
|
<SPA>off</SPA>
|
|
|
|
<SSL>on</SSL>
|
|
|
|
<Encryption>TLS</Encryption>
|
|
|
|
<AuthRequired>on</AuthRequired>
|
|
|
|
</Protocol>
|
|
|
|
</Protocol>
|
|
|
|
<Protocol>
|
|
|
|
<Protocol>
|
|
|
|
<Type>SMTP</Type>
|
|
|
|
<Type>SMTP</Type>
|
|
|
|
<Server>{hostname}</Server>
|
|
|
|
<Server>{hostname}</Server>
|
|
|
|
<Port>465</Port>
|
|
|
|
<Port>465</Port>
|
|
|
|
<DomainRequired>on</DomainRequired>
|
|
|
|
<DomainRequired>on</DomainRequired>
|
|
|
|
<SPA>off</SPA>
|
|
|
|
<SPA>off</SPA>
|
|
|
|
<Encryption>TLS</Encryption>
|
|
|
|
<SSL>on</SSL>
|
|
|
|
</Protocol>
|
|
|
|
<AuthRequired>on</AuthRequired>
|
|
|
|
</Account>
|
|
|
|
</Protocol>
|
|
|
|
</Response>
|
|
|
|
</Account>
|
|
|
|
</Autodiscover>'''
|
|
|
|
</Response>
|
|
|
|
|
|
|
|
</Autodiscover>\r\n'''
|
|
|
|
|
|
|
|
return flask.Response(xml, mimetype='text/xml', status=200)
|
|
|
|
return flask.Response(xml, mimetype='text/xml', status=200)
|
|
|
|
|
|
|
|
|
|
|
|
@internal.route("/autoconfig/apple")
|
|
|
|
@internal.route("/autoconfig/apple")
|
|
|
|