diff --git a/plinth/modules/email/templates/email-autoconfig.xml b/plinth/modules/email/templates/email-autoconfig.xml index 4573d5339..a04da80eb 100644 --- a/plinth/modules/email/templates/email-autoconfig.xml +++ b/plinth/modules/email/templates/email-autoconfig.xml @@ -1,9 +1,15 @@ - + +{% comment %} +# SPDX-License-Identifier: AGPL-3.0-or-later +{% endcomment %} + +{% load i18n %} + {{ host }} - FreedomBox Mail - FBXMail + {% trans "FreedomBox Email" %} + {{ box_name }} {{ host }} 993 @@ -11,6 +17,13 @@ %EMAILLOCALPART% password-cleartext + + {{ host }} + 995 + SSL + %EMAILLOCALPART% + password-cleartext + {{ host }} 465 @@ -18,5 +31,15 @@ %EMAILLOCALPART% password-cleartext + + {{ host }} + 587 + SSL + %EMAILLOCALPART% + password-cleartext + + + FreedomBox Manual + diff --git a/plinth/modules/email/views.py b/plinth/modules/email/views.py index 04ce463fd..8c09a2cee 100644 --- a/plinth/modules/email/views.py +++ b/plinth/modules/email/views.py @@ -125,6 +125,10 @@ class AliasView(FormView): class XmlView(TemplateView): + """Serve Thunderbird auto-configuration file. + + https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat + """ template_name = 'email-autoconfig.xml' def render_to_response(self, *args, **kwargs):