Add mailbox self-service ManageSieve script editor #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add an optional, minimal public ManageSieve self-service interface to Postoffice, analogous to the existing mailbox password-change page. A mailbox user logs in with their email address and mail password, views remote Sieve scripts, edits or replaces a script as plain text, validates it where supported, uploads it, and selects the active script. Dovecot/ManageSieve remains the source of truth; Postoffice must not store scripts in its database.
This is a future enhancement, not part of the current mail infrastructure rollout. Keep the first version intentionally small; no graphical rule builder or vacation form.
User experience
/sieve/, linked from the existing public page, with email/password login.Authentication and session security
Mailbox.check_password()approach. Keep mailbox self-service sessions logically separate from Django admin authentication and privileges.python3-cryptographydependency). Derive a dedicated encryption subkey from DjangoSECRET_KEYusing HKDF and a stable, application-specific context; do not treat Django session signing as encryption. Reuse existing secret management rather than adding a separate encryption secret.ManageSieve integration
sievelib.managesieve/ Ubuntu'spython3-sievelib; confirm actual packaged version and API before implementation).Packaging, tests and documentation
python3-sievelibavailability on Ubuntu 26.04 and add the package to the Debian build/runtime dependencies if selected.python3-cryptographyis already present.Out of scope
sievectl.