Commit Graph
10 Commits
Author SHA1 Message Date
finnandClaude Opus 5.5 5b87d9ff03 Fix HTTP 500 on the create pages with ?return=detail
UserCreate and AliasCreate used BackToUsersMixin and BackToAliasesMixin,
which access self.user or self.alias for ?return=detail. Neither exists
on the create pages, so the request failed with an AttributeError.

Both views now define their own back link with the target they already
used without the parameter: the user list and the user's detail page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 19:24:37 +00:00
finnandClaude Opus 5.5 80757fa1d8 Fix HTTP 500 on missing email or domain when creating users and aliases
If the email or domain field was missing or invalid, the error was
flashed, but the address was still built from the unset attributes,
which raised an AttributeError. Only build and validate the address
if both are set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 15:25:38 +00:00
finnandClaude Opus 5.5 4a03b5c1a1 Reserve privileged alias addresses for admins
Any user could create aliases like postmaster@, webmaster@ or abuse@ on
their domain. CAs use these addresses to validate domains, so a family
account (or a compromised one) could obtain TLS certificates or catch
abuse and system mails.

- Only admins may create aliases with a reserved local part (admin,
  administrator, webmaster, hostmaster, postmaster, abuse, security,
  noc, root, mailer-daemon). The acting user counts, so admins can
  still assign such aliases to other users.
- Escape the domains in the email regex, so "finn.st" no longer
  matches "finnXst".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 15:23:12 +00:00
finn 2bd853e9b5 modernizing the dependencies 2026-10-19 18:53:59 +02:00
Finn Stutzenstein a1c6b656d7 multi-domain support 2022-03-15 18:36:41 +01:00
Finn Stutzenstein 7124133f88 Fix SQL queries and order tables 2022-03-06 11:22:45 +01:00
Finn Stutzenstein 818a43202a remove can_receive 2022-03-06 11:14:19 +01:00
Finn Stutzenstein aff7bf3b48 Unique emails and added can_receive 2022-03-06 09:34:23 +01:00
Finn Stutzenstein add153d8a6 More work 2022-01-22 18:37:56 +01:00
FinnStutzenstein 9d018e00be initial commit 2020-04-13 08:31:44 +02:00