Move the stack to its own server #41
Labels
No labels
area/api
area/auth
area/files
area/infra
area/mail
area/provisioning
area/testing
area/ui
kind
bug
kind
chore
kind
decision
kind
docs
kind
epic
kind
feature
kind
security
priority
high
priority
low
priority
medium
status/blocked
status/needs-decision
status/upstreamable
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
konbi/infra#41
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?
The stack in use moves to a server of its own; the present server stays for building, testing and deploying. Asked by lip: strict minimum, no options on the new server; Drive, the editors, Photos and WebDAV all stay.
Steps, one at a time:
9939c4a):compose.yamlis the stack as installed,compose.dev.yamlanddev/hold what only the dev server addsFound while trying the setup from empty data, and fixed: on a new mail server no account could open its mailbox (403). Stalwart makes its default roles only on a first start in normal mode;
setup-stalwart.shnow does one first.Checked: accounts, mail server and Immich setup each from empty data in a throwaway project; on dev
up.sh,e2e_login,e2e_page,e2e_photos_app;test_install.pyandtest_sync_directory.py. Never run: the whole install on an empty server.First install on the new server, from
main(3995a43) withprepare-server.sh,send.shandup.sh(decision 145).stalwart.,ldap.,dav.,docs.), so they have no certificate, the webmail can't be used and the directory sync stops. Once the records are right:up.shagain, then the checks in the browser.The names now point at the server (four records added, one IPv6 record of the mail name removed). All nine have a certificate,
up.shran to the end, the team address book is filled ande2e_loginpasses from outside, with the first person's account (its sign-out check now waits for Authelia's form, not two seconds: on a distant server the redirect takes longer).e2e_pagewas not run further: it expects the dev server's test file.A server can now serve sites of its own from
extra/(branchfeat/own-sites, not merged yet); the konbi.cc server uses it for the landing page.Still to do for this step: reinstall clean.
postmaster@,webmaster@andinfo@now reach konbi's shared mailbox, on an install and on the new server (branchfeat/own-sites, not merged yet). Groups got themailAlias1…5attributes and the mail server looks them up. Checked by sending to all three on a throwaway server (delivered; an unknown address refused) and by address checks on the server. Mail from outside still isn't received.The server was erased (certificates and its own site kept) and installed again from nothing:
up.shran to the end at the first try; one person, no test account, empty mailboxes, files and photos.Mail from outside is now received (port 25, IPv4 only; not on the dev server): a message sent from another server arrived, over TLS, for a person and for
postmaster@; relaying and unknown addresses are refused. The spam filter runs: that test sender, with no SPF or DKIM, was put in Junk. DNS blocklists refuse the queries made through the host's resolver.All on branch
feat/own-sites, not merged yet. Real mail can now arrive and nothing is backed up (#3).Anti-spam et DKIM (branche non fusionnée) :
prepare-server.shinstalle un résolveur propre au serveur (unbound, IPv4 seulement) pour les conteneurs. Vérifié avec les adresses de test des listes : un message qui les cite est classé en indésirable (DBL_SPAM) ;Envoi : le nom inverse du serveur correspond maintenant au nom qu'il annonce, et ce nom a son enregistrement SPF. Les deux sont vérifiés dans le DNS ; à confirmer par un nouvel essai d'envoi.
DNS : le serveur de messagerie publie maintenant lui-même ses clés DKIM (renouvelées tous les 90 jours), le SPF et l'adresse des rapports TLS, avec un jeton Cloudflare propre au serveur et limité à la zone. MX, DMARC et les autres enregistrements sont inchangés (zone comparée avant et après).
Fusionné dans
main(f3b3972) : réception sur le port 25, sites propres au serveur, adresses partagées, résolveur pour l'anti-spam, publication DNS par le serveur de messagerie (décisions 146 et 147 du wiki). Restent : sauvegardes (#3), certificat pour IMAPS et l'envoi, codes du second facteur par courriel.2026-12-02, live on mail.konbi.cc and pushed (bulwark-sftpgo 456ef4e, infra
82e0d91):install-plugins.pynow sets the frame origins to the server's own editors. Confirmed working by lip.Note: a folder moved into another folder no longer shows there if it is shared; it shows only under Shared with me.