Move the stack to its own server #41

Open
opened 2026-12-01 09:48:12 +00:00 by claude · 9 comments
Owner

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:

  • Scope
  • Configuration of an installed server (9939c4a): compose.yaml is the stack as installed, compose.dev.yaml and dev/ hold what only the dev server adds
  • Bring the images and plugins to the server, install, test while empty, then reinstall clean
  • Before real data: mail from outside (port 25, MX, SPF, DKIM, DMARC, reverse DNS), certificates for IMAPS and submission, second factor codes by mail, backups with a tried restore (#3)
  • Then: images built and published from the build server (#2 first)

Found 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.sh now 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.py and test_sync_directory.py. Never run: the whole install on an empty server.

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: - [x] Scope - [x] Configuration of an installed server (9939c4a): `compose.yaml` is the stack as installed, `compose.dev.yaml` and `dev/` hold what only the dev server adds - [x] Bring the images and plugins to the server, install, test while empty, then reinstall clean - [ ] Before real data: mail from outside (port 25, MX, SPF, DKIM, DMARC, reverse DNS), certificates for IMAPS and submission, second factor codes by mail, backups with a tried restore (#3) - [ ] Then: images built and published from the build server (#2 first) Found 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.sh` now 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.py` and `test_sync_directory.py`. Never run: the whole install on an empty server.
claude added this to the Platform v1 milestone 2026-12-01 09:48:12 +00:00
Author
Owner

First install on the new server, from main (3995a43) with prepare-server.sh, send.sh and up.sh (decision 145).

  • All twelve services run; accounts, mail server and Immich set up from empty data on a real server; both plugins installed. The first person signs in at Authelia and opens their mailbox; no test account.
  • Not finished: four of the nine names don't point at the server yet (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.sh again, then the checks in the browser.
  • Seen: when the directory sync can't finish, its retries get the mail server to refuse the address checks for a while (SMTP 452).
First install on the new server, from `main` (3995a43) with `prepare-server.sh`, `send.sh` and `up.sh` (decision 145). - All twelve services run; accounts, mail server and Immich set up from empty data on a real server; both plugins installed. The first person signs in at Authelia and opens their mailbox; no test account. - Not finished: four of the nine names don't point at the server yet (`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.sh` again, then the checks in the browser. - Seen: when the directory sync can't finish, its retries get the mail server to refuse the address checks for a while (SMTP 452).
Author
Owner

The names now point at the server (four records added, one IPv6 record of the mail name removed). All nine have a certificate, up.sh ran to the end, the team address book is filled and e2e_login passes 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_page was not run further: it expects the dev server's test file.

A server can now serve sites of its own from extra/ (branch feat/own-sites, not merged yet); the konbi.cc server uses it for the landing page.

Still to do for this step: reinstall clean.

The names now point at the server (four records added, one IPv6 record of the mail name removed). All nine have a certificate, `up.sh` ran to the end, the team address book is filled and `e2e_login` passes 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_page` was not run further: it expects the dev server's test file. A server can now serve sites of its own from `extra/` (branch `feat/own-sites`, not merged yet); the konbi.cc server uses it for the landing page. Still to do for this step: reinstall clean.
Author
Owner

postmaster@, webmaster@ and info@ now reach konbi's shared mailbox, on an install and on the new server (branch feat/own-sites, not merged yet). Groups got the mailAlias1…5 attributes 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.

`postmaster@`, `webmaster@` and `info@` now reach konbi's shared mailbox, on an install and on the new server (branch `feat/own-sites`, not merged yet). Groups got the `mailAlias1`…`5` attributes 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.
Author
Owner

The server was erased (certificates and its own site kept) and installed again from nothing: up.sh ran 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).

The server was erased (certificates and its own site kept) and installed again from nothing: `up.sh` ran 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).
Author
Owner

Anti-spam et DKIM (branche non fusionnée) :

  • les listes noires refusaient les requêtes passées par le résolveur de l'hébergeur : prepare-server.sh installe 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) ;
  • DKIM : les deux clés du serveur de messagerie sont publiées dans le DNS ; les deux signatures d'un message envoyé par le serveur sont valides. Publication faite à la main, sans rotation (publication automatique par Stalwart : à décider).
Anti-spam et DKIM (branche non fusionnée) : - les listes noires refusaient les requêtes passées par le résolveur de l'hébergeur : `prepare-server.sh` installe 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`) ; - DKIM : les deux clés du serveur de messagerie sont publiées dans le DNS ; les deux signatures d'un message envoyé par le serveur sont valides. Publication faite à la main, sans rotation (publication automatique par Stalwart : à décider).
Author
Owner

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.

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.
Author
Owner

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).

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).
Author
Owner

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.

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.
Author
Owner

2026-12-02, live on mail.konbi.cc and pushed (bulwark-sftpgo 456ef4e, infra 82e0d91):

  • Drive 0.34.2 (Codex): shared folders in their own Shared with me list, hidden from Home's listings.
  • Drive 0.34.3: sidebar section titles as Mail's (14 px, semibold).
  • Drive 0.34.4: "My files" renamed Home (Start in German); the Home row under it is gone, the title opens the root and takes drops.
  • Drive 0.34.5: shared folders line up with Home's folders.
  • Fix: the Markdown, Word, drawing and spreadsheet editors were blank on the VPS: the plugin manifest names the dev server's frame origins, so the CSP blocked draw.konbi.cc and docs.konbi.cc. install-plugins.py now 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.

2026-12-02, live on mail.konbi.cc and pushed (bulwark-sftpgo 456ef4e, infra 82e0d91): - Drive 0.34.2 (Codex): shared folders in their own **Shared with me** list, hidden from Home's listings. - Drive 0.34.3: sidebar section titles as Mail's (14 px, semibold). - Drive 0.34.4: "My files" renamed **Home** (Start in German); the Home row under it is gone, the title opens the root and takes drops. - Drive 0.34.5: shared folders line up with Home's folders. - **Fix:** the Markdown, Word, drawing and spreadsheet editors were blank on the VPS: the plugin manifest names the dev server's frame origins, so the CSP blocked draw.konbi.cc and docs.konbi.cc. `install-plugins.py` now 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
konbi/infra#41
No description provided.