secubox-deb/packages/secubox-mail
CyberMind 99fc829b45
fix(web): rewrite stale /portal/login.html -> /login.html (closes #222) (#223)
PR #169 moved login.html out of secubox-hub to /usr/share/secubox/www/
under secubox-portal's ownership, but 67 source files across the
package set still redirected to /portal/login.html which no longer
exists on disk. nginx fell back to /index.html (hub root) on every
hit, whose checkAuth() bounced back to /portal/login.html, producing
an infinite "Redirecting to login..." loop with no way for any user
to authenticate.

sed -i 's|/portal/login\.html|/login.html|g' across all packages/*/www
sources (82 occurrences). The two prior partial fixes that triggered
this investigation (bcc6a781, 464e3379) only covered a subset and
missed the kiosk root checkAuth in secubox-hub/www/index.html plus
65 module index.html files.

Verified: grep -rl '/portal/login\.html' packages/ | grep -v /debian/
returns empty.

Discovered while testing the firstboot v2-schema+argon2 chain end-to-end
in a VBox amd64 boot of CI run 26082003883 (the #218 image build fix)
— firstboot now works, users.json gets a valid argon2 hash for
admin/secubox, the portal API runs, but the login UI is unreachable
because of this dangling URL.

Co-authored-by: CyberMind-FR <gandalf@Gk2.net>
2026-05-19 11:44:43 +02:00
..
api Mail Phase 2 — Rspamd migration (closes #153) (#160) 2026-05-18 08:21:23 +02:00
config Mail Phase 2 — Rspamd migration (closes #153) (#160) 2026-05-18 08:21:23 +02:00
debian Mail Phase 2 — Rspamd migration (closes #153) (#160) 2026-05-18 08:21:23 +02:00
haproxy Mail stack: Phase 1 — source-catch-up + legacy package cleanup (#141) 2026-05-15 13:26:21 +02:00
lib/mail Mail Phase 2 — Rspamd migration (closes #153) (#160) 2026-05-18 08:21:23 +02:00
menu.d feat: modular nginx config + hub roadmap + new modules 2026-03-21 20:34:01 +01:00
nginx feat: modular nginx config + hub roadmap + new modules 2026-03-21 20:34:01 +01:00
sbin Mail Phase 2 — Rspamd migration (closes #153) (#160) 2026-05-18 08:21:23 +02:00
templates/rspamd Mail Phase 2 — Rspamd migration (closes #153) (#160) 2026-05-18 08:21:23 +02:00
tests Mail Phase 2 — Rspamd migration (closes #153) (#160) 2026-05-18 08:21:23 +02:00
www/mail fix(web): rewrite stale /portal/login.html -> /login.html (closes #222) (#223) 2026-05-19 11:44:43 +02:00
README.md Add complete package READMEs and multilingual wiki documentation 2026-03-24 15:31:34 +01:00

📧 Mail Server

Postfix/Dovecot mail server

Category: Email

Screenshot

Mail Server

Features

  • Domains
  • Mailboxes
  • DKIM
  • SpamAssassin
  • ClamAV

Installation

# Add SecuBox repository
curl -fsSL https://apt.secubox.in/install.sh | sudo bash

# Install package
sudo apt install secubox-mail

Configuration

Configuration file: /etc/secubox/mail.toml

API Endpoints

  • GET /api/v1/mail/status - Module status
  • GET /api/v1/mail/health - Health check

License

MIT License - CyberMind © 2024-2026