diff --git a/core/admin/mailu/internal/views/autoconfig.py b/core/admin/mailu/internal/views/autoconfig.py index a4816f22..9158f185 100644 --- a/core/admin/mailu/internal/views/autoconfig.py +++ b/core/admin/mailu/internal/views/autoconfig.py @@ -47,7 +47,7 @@ def autoconfig_microsoft_json(): hostname = app.config['HOSTNAME'] json = f'{"Protocol":"Autodiscoverv1","Url":"https://{hostname}/autodiscover/autodiscover.xml"}' return flask.Response(json, mimetype='application/json', status=200) - else + else: return flask.abort(404) @internal.route("/autoconfig/microsoft", methods=['GET', 'POST'])