email: Reserve additional aliases for administrator

Tests:

- When updating the email app or freshly installing the email app. The user who
installed the app will have additional aliases 'admin' and 'administrator'
assigned.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2026-11-28 08:31:48 -05:00
1 parent 869e822ae8
commit 22124cd1db
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ class EmailApp(freedombox.app.App):
app_id = 'email'
_version = 9
_version = 10
def __init__(self) -> None:
"""Initialize the email app."""
+1 -1
View File
@@ -97,7 +97,7 @@ def setup_common_aliases(username):
aliases = [
'mailer-daemon', 'postmaster', 'nobody', 'webmaster', 'www',
'hostmaster', 'info', 'support', 'abuse', 'noc', 'security', 'usenet',
'news', 'ftp'
'news', 'ftp', 'admin', 'administrator'
]
for alias in aliases:
if not exists(alias):