chore: Manticore als Standard — Xapian-Referenzen entfernt

- CLAUDE.md: Manticore statt Xapian, CGO_ENABLED=0, /var/lib/manticore/
- .claude/agents/manticore-admin.md: Neuer Projekt-Agent (Security, Backup, Reindex)
- .claude/agents/mailarchiv-architect.md: Xapian → Manticore Search

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sysops
2026-04-03 21:29:12 +02:00
parent b568c73887
commit 7efccda864
3 changed files with 434 additions and 6 deletions
+8 -6
View File
@@ -1,12 +1,13 @@
# archivmail
Selbst gehostetes Mail-Archiv-System. Go-Backend + Next.js-Frontend + PostgreSQL + Xapian.
Selbst gehostetes Mail-Archiv-System. Go-Backend + Next.js-Frontend + PostgreSQL + Manticore Search.
## Tech Stack
- **Backend:** Go 1.23, CGO, Xapian (Volltext-Index)
- **Backend:** Go 1.24, CGO_ENABLED=0, Manticore Search (Volltext-Index)
- **Frontend:** Next.js 16 (App Router), TypeScript, Tailwind CSS, shadcn/ui
- **Datenbank:** PostgreSQL (pgx/v5)
- **Volltext-Index:** Manticore Search (MySQL-Protokoll, Port 9306)
- **Deployment:** On-Premise (192.168.1.131), Systemd
- **Auth:** JWT (httpOnly Cookie), bcrypt Cost 12
@@ -20,7 +21,7 @@ internal/
audit/ Audit-Log (PostgreSQL + Flat-File)
auth/ JWT-Authentifizierung
imap/ IMAP-Import, Scheduler, Store
index/ Xapian-Wrapper (CGO), Async Worker
index/ Manticore Search (CGO-frei), Async Worker
smtpd/ Eingebetteter SMTP-Daemon
storage/ AES-256-GCM Dateispeicher + PostgreSQL-Metadaten
userstore/ Benutzerverwaltung
@@ -35,8 +36,8 @@ src/
## Build & Deploy
```bash
# Backend (CGO + Xapian zwingend erforderlich)
CGO_ENABLED=1 go build -tags xapian -buildvcs=false -o archivmail ./cmd/archivmail/
# Backend (kein CGO erforderlich)
CGO_ENABLED=0 go build -buildvcs=false -o archivmail ./cmd/archivmail/
# Frontend
npm run build # .next/standalone/ für Produktion
@@ -58,7 +59,7 @@ bash update.sh # oder: curl ... | bash
/etc/archivmail/config.yml Hauptkonfiguration
/etc/archivmail/keyfile AES-256 Schlüssel (32 Bytes, nie committen)
/var/archivmail/store/ Verschlüsselter E-Mail-Speicher
/var/archivmail/xapian/ Xapian-Index
/var/lib/manticore/ Manticore RT-Indizes (emails_global, emails_tenant_N)
```
## Dienste (Systemd)
@@ -66,5 +67,6 @@ bash update.sh # oder: curl ... | bash
```bash
systemctl status archivmail # Go-Backend (Port 8080 + 2525)
systemctl status archivmail-web # Next.js-Frontend (Port 3000)
systemctl status manticore # Manticore Search (Port 9306, localhost)
journalctl -u archivmail -f
```