diff --git a/core/admin/mailu/internal/views/autoconfig.py b/core/admin/mailu/internal/views/autoconfig.py
index 9158f185..85d3dbb0 100644
--- a/core/admin/mailu/internal/views/autoconfig.py
+++ b/core/admin/mailu/internal/views/autoconfig.py
@@ -56,31 +56,29 @@ def autoconfig_microsoft():
hostname = app.config['HOSTNAME']
xml = f'''
-
-
-email
-settings
-
-IMAP
-{hostname}
-993
-on
-off
-on
-on
-
-
-SMTP
-{hostname}
-465
-on
-off
-on
-on
-
-
-
-\r\n'''
+
+
+ email
+ settings
+
+ IMAP
+ {hostname}
+ 993
+ on
+ off
+ TLS
+
+
+ SMTP
+ {hostname}
+ 465
+ on
+ off
+ TLS
+
+
+
+'''
return flask.Response(xml, mimetype='text/xml', status=200)
@internal.route("/autoconfig/apple")