Block a user
Create DB with daemon
Even with "mailcloakctl" replaced with webUI, an init stage must be done before first start, at least for certificates. Only then, postfix & dovecot can be started. No reason to start mailcloak…
Add identity provider layer
Reco concrète pour Mailcloak (sans tout casser)
Abstraction provider Crée un package idp/ avec une interface stable (lookup email, statut user, éventuellement groupes). Ça te permettra aussi…
Use UUID instead of username to identify users
Multi-domain compatibility
DB :
domains(domain TEXT PRIMARY KEY)
aliases(alias TEXT PRIMARY KEY, target, alias_domain_id, target_domain_id, enabled, ...)
FOREIGN KEY(alias_domain_id) REFERENCES domains(domain) ON…
Multi-domain compatibility
Règles simples que je te conseille
-
Alias source (
alias@domain) : domaine doit être local (donc FKalias_domain_id → domains(id)non nullable). -
Target :
- si domaine…
Make cache safe and bounded (thread-safe + eviction + cleanup)