Technical Documentation · Complete Operations, Customer/Owner Portal, API & EU Compliance Manual

NoctisMail Documentation

End-to-end technical manual covering self-hosted installation, multi-domain DNS, universal mail clients, immutable WORM vault, computer/account recovery, 52-RBL & Deliverability Score, Webmail & Brand Studio, Customer & Owner Portals, ES384 & Transactional REST APIs, and EU compliance.

Section 01 · Pre-Flight Checklist, 1-Line Deployment & Multi-Domain DNS

Pre-Flight Prerequisites & 1-Line Installation

Before running the 1-line installer: prepare a Linux server (Ubuntu/Debian/RHEL/Rocky/Alma/Fedora/openSUSE/Alpine, min 2 vCPU / 4 GB RAM, 8 GB recommended with ClamAV), open TCP ports 25, 465, 587, 993, 995, 4190 (confirm outbound port 25 is unblocked at your VPS provider), and have your active commercial NMLIC-... license key ready (required before downloading the server stack bundle). Existing websites hosted via Caddy, Nginx, Apache, or IIS on ports 80/443 remain completely untouched.

# Linux 1-Line Install — Single or Multiple Domains in ONE Command
curl -fsSL https://noctismail.com/install.sh | sudo bash -s -- \
  --domain domain1.com,domain2.com --license NMLIC-XXXX --email admin@domain1.com

# Add unlimited extra mail domains to the same server later (auto-generates RSA-2048 DKIM)
curl -fsSL https://noctismail.com/install.sh | sudo bash -s -- --add-domain thirdcompany.eu

# Windows Server / Desktop (PowerShell 1-Liner — or double-click NoctisMail-Installer.cmd)
irm https://noctismail.com/install.ps1 | iex

After installation completes: the installer automatically starts all 7 mail containers, provisions noctismail-api.service (127.0.0.1:3400) + Webmail SPA (/opt/noctismail/web-static/webmail), configures daily Let's Encrypt multi-domain TLS 1.3 SNI sync, and saves exact DNS records to /opt/noctismail/DNS_SETUP_INSTRUCTIONS.txt. Publish the printed DNS records (A grey-cloud, MX, SPF, DKIM, DMARC, MTA-STS, TLS-RPT, CNAME) and Reverse DNS (PTR).

Direct downloads: Windows Double-Click (.cmd) · Linux Double-Click (.run) · Get Commercial License Key · Interactive Command Generator.

Mandatory Per-Domain DNS Records

Type Host Value Purpose
Amail.<domain><SERVER_IPV4>DNS Only (grey cloud on Cloudflare)
PTR<SERVER_IPV4>mail.<domain>Reverse DNS at VPS provider (critical for deliverability)
MX<domain>10 mail.<domain>Inbound SMTP routing
TXT<domain>v=spf1 mx a:mail.<domain> -allStrict SPF sender policy
TXTnoctis2026._domainkey.<domain>v=DKIM1; k=rsa; p=<PUBKEY>RSA-2048 DKIM signing (printed by installer / DNS Wizard)
TXT_dmarc.<domain>v=DMARC1; p=reject; rua=mailto:dmarc@<domain>; adkim=s; aspf=s; pct=100Strict DMARC alignment
TXT_mta-sts.<domain>v=STSv1; id=2026113001Enforced TLS 1.3 transport
TXT_smtp._tls.<domain>v=TLSRPTv1; rua=mailto:tlsrpt@<domain>SMTP TLS reporting
Section 02 · Universal Mail Client Connectivity

Connecting Outlook, Thunderbird, Apple Mail & Mobile

Protocol Host Port Security / Mode
IMAPSmail.<domain>993TLS 1.3 SNI · Bidirectional \Seen Sync (Personal) & Isolated INDEXPVT (Shared)
Submissionmail.<domain>587STARTTLS (Recommended for .NET/Apps & Desktop) + Auto Brand Template & DKIM
SMTPSmail.<domain>465Implicit TLS 1.3 SNI + Outbound Brand Studio Filter & Rspamd DKIM Signing
POP3Smail.<domain>995TLS 1.3 · Non-Destructive Vault Mode (never deletes server copy)
ManageSievemail.<domain>4190STARTTLS · Server-Side Forwarding (N targets) & Auto-Responder

Live host-aware auto-discovery endpoints: /.well-known/autoconfig/mail/config-v1.1.xml (Thunderbird / Desktop Mail Apps), /autodiscover/autodiscover.xml (Outlook), and /api/tools/autoconfig/apple.mobileconfig (Apple Mail / iOS / macOS). Generate revocable per-device App Passwords under Webmail → Settings → Connect Any Client.

Section 03A · Immutable WORM Vault & PC → Server Recovery

Tombstone Delete, Computer Recovery & Admin Permanent Purge

Every message is sealed once with AES-256-GCM encryption at rest, a SHA-256 content hash, sequential HMAC-SHA256 hash chaining, and an RFC 3161 timestamp digest. Personal mailboxes sync INBOX, Sent, and IMAP \Seen flags bidirectionally with Dovecot every 5 seconds. If emails are accidentally deleted from the server, users can restore them via the browser Local PC Mirror (IndexedDB), .eml/.mbox/.json uploads, or Account WORM Vault → Dovecot IMAP re-injection with zero duplicates. Only an explicit Admin Permanent Mailbox Purge (PURGE) permanently erases mail and blocks restoration.

Section 03B · Deliverability Score (0–100) & 3-Hour 52-RBL Defense

Zero-Leakage Scanning, 0–100 Scoring, RFC 5782 Guard & 1-Click Delist

SPF/DKIM/DMARC alignment, punycode/Levenshtein lookalike detection, link mismatch auditing, ClamAV/macro/double-extension quarantine, and Privacy Shield tracking-pixel neutralization execute 100% locally. The Blacklist Center includes a live 0–100 Deliverability Score (auditing A, MX, PTR, SPF, DKIM, DMARC, TLS 1.3 + MTA-STS, and 52-RBL) plus automated 3-hour multi-domain RBL scans with an RFC 5782 wildcard guard and 1-click delisting appeals.

Section 04 · Power Webmail, Mailing Lists & Brand Studio

Enterprise Webmail Workflows, Warm-Up & Brand Studio

04A · Power Webmail, Themes & 15 EU Languages

Visual Rules, Signatures, Macros & Auto-Reply

Default UI is English with instant compact switching across 15 European languages (en, hr, de, fr, es, it, pl, nl, pt, cs, sl, sv, ro, hu, el), Obsidian Dark & Daylight Light themes, Automatic White-Label Login per Domain, Mobile-Responsive PWA Webmail, Contacts / Address Book (autocomplete + vCard/CSV), Snooze & Conversation Threading, custom folders, 1-click sender block/VIP, drag-and-drop attachments with inline PDF/image preview, 8s Undo Send & Scheduled Send, Shared Desk assignment + internal notes, 1-click IMAP migration, live Server Health & Postfix Queue Monitor, and encrypted S3/R2/Hetzner backups.

04B · Anti-Blacklist Mailing Lists & Smart JSON Jobs

30-Day IP Warm-Up Dashboard & Send-Once-Only

New server IPs ramp safely from 15 emails/day (micro-batches of 3, 7–16 min jitter) on Days 1–3 up to 2,000+/day by Day 30 with a live Warm-Up Dashboard, cross-domain interleaving, Smart JSON Sending Jobs (Send-Once-Only deduplication), automatic RBL circuit breaker, and RFC 8058 One-Click Unsubscribe.

04C · Website Brand Scanner & Outbound Brand SMTP Filter (:10025 → :10026)

Automatic Per-Domain Branded Emails Everywhere

In Webmail → Brand Studio, enter any public website URL to extract logo, palette, and contact links (SSRF-hardened), edit responsive HTML templates, and export as HTML, JSON, or XML. Your active domain template automatically wraps emails sent from Webmail, external SMTP 587/465 apps & desktop clients, and Auto-Responders before Rspamd DKIM signing.

Section 05 · ASP.NET Core 8 MVC Owner Control Center

Owner Panel & Fleet Subscription Management (/owner)

The compiled ASP.NET Core 8 portal includes a restricted executive Owner Control Center at /owner/login (hidden from search engines via X-Robots-Tag: noindex, nofollow and robots.txt).

  • Hardened Authentication: PBKDF2-SHA512 (210,000 iterations, constant-time compare), ES384-signed HttpOnly / Secure / SameSite=Strict session cookie (8h), Anti-Forgery CSRF tokens on every action, and per-IP brute-force lockout (6 failed attempts / 15 min).
  • Real-Time Fleet & Revenue KPIs: Active, suspended, expired, and expiring (<30d) subscriptions; estimated MRR & ARR (EUR net + 25% VAT gross); package breakdown (Starter / Business / Enterprise / MSP Fleet); active licensed server installations (online 7d vs stale vs revoked); total hosted domains and mailbox seats.
  • Unified Login, Customer Registration & Portal (/owner/login, /account): Customers create accounts right alongside Login, inspect assigned ES384 licenses, copy personalized 1-line install commands, and manage profiles/passwords; Owners manage registered users in Registered Users with 1-click + Assign Subscription & immediate branded license key emails.
  • License Lifecycle Control: Search & filter licenses, issue new ES384 NMLIC-... keys with 1-click plan presets (including Gift €0 & Owner Internal €0), full Edit/Delete modal, 1-click Send Email, extend +30d / +1yr, suspend/reactivate, revoke individual server nodes instantly, and download CSV reports (/owner/export/licenses.csv).
  • Installer Downloads & Telemetry: Tracks downloads of install.sh, NoctisMail-Setup.run, install.ps1, NoctisMail-Installer.cmd, and noctismail-stack.tar.gz alongside live setup pings for both licensed and evaluation nodes.
  • Live EU Omnibus Pricing & Audit: Adjust SKU prices directly from the panel (automatically updates the 30-day statutory ledger and XML/JSON/CSV price lists), inspect ES384 heartbeat rejections, and rotate Owner credentials via UI or SSH CLI (sudo noctis-owner-passwd).
Section 06 · ES384 License Authority & Enterprise REST API

Asymmetric ECDSA P-384 (ES384) License Protocol & Backend Endpoints

Customer installations pin the public key from /license-api/public-key and cannot be spoofed by cloned/fake license servers because the ECDSA P-384 private key never leaves the License Authority host.

# 1. Customer Server Challenge-Response Heartbeat
POST https://noctismail.com/license-api/verify
Content-Type: application/json

{
  "licenseKey": "NMLIC-BUSI-XXXXX",
  "machineFingerprint": "sha256-hardware-id",
  "clientNonce": "fresh-32-char-random-nonce",
  "hostname": "mail.company.eu",
  "domains": ["company.eu", "brand2.eu"],
  "seatCount": 42
}
# 200 OK  -> Signed ES384 JWT bound to clientNonce + machineFingerprint + 7-day offline lease
# 403 Err -> MAX_INSTALLATIONS_EXCEEDED | MAX_DOMAINS_EXCEEDED | MAX_SEATS_EXCEEDED | NONCE_REQUIRED

# 2. Installer Setup Telemetry Ping (Licensed & Evaluation)
POST https://noctismail.com/license-api/telemetry/install
{"machineFingerprint":"sha256-id","domain":"company.eu","platform":"linux","mode":"licensed","version":"1.0.0"}

# 3. Key Enterprise Mail API Endpoints (/api/*)
GET  /api/health                                  # Service health, domain count & WORM vault integrity
GET  /api/public/brand-theme                      # Host-aware white-label login theme per hosted domain
POST /api/v1/transactional/send                   # Transactional Email REST API (X-API-Key: nm_live_...)
POST /api/auth/login                              # Email + Password (+ TOTP 2FA) -> JWT
POST /api/auth/change-password                    # Self-service password change (Webmail + IMAP/SMTP/POP3)
GET  /api/contacts                                # Address Book + Autocomplete + vCard (.vcf) / CSV import-export
GET  /api/admin/server-monitor                    # Live CPU/RAM/Disk, 7 containers, Postfix queue & TLS cert expiry
POST /api/mail/recovery/diff-check                # Compare Local PC Mirror (IndexedDB) vs. Server
POST /api/mail/recovery/from-computer             # Restore missing PC Mirror / .eml / .mbox / .json mail to Server + IMAP
POST /api/mail/recovery/rehydrate-imap            # Re-inject missing WORM Vault mail into Dovecot IMAP
POST /api/admin/mailboxes/:id/purge               # Explicit Admin Permanent Mailbox Purge (blocks restore; Legal Hold safe)
POST /api/mail/sync                               # Bidirectional Dovecot <-> WORM Vault sync (auto every 5s)
GET  /api/mail/export?format=json|xml|mbox        # Self-service GDPR Art. 20 / EU Data Act portability
POST /api/tools/brand-scan                        # SSRF-hardened live website brand URL scanner
GET  /api/security/blacklist/overview             # Multi-domain 3h 52-RBL monitor (RFC 5782 guard)
GET  /api/mailing/warmup-dashboard                # Live 30-day Server IP Warm-Up dashboard & JSON jobs
GET  /api/vault/verify                            # Cryptographic WORM SHA-256 + HMAC chain verification
POST /api/compliance/crypto-shred                 # Dual-Control GDPR Art. 17 shredding (respects Legal Hold)
Section 08 · Production Operations, Hardening & Backup Runbook

Services, Directories & Disaster Recovery

# Check systemd services & live logs
systemctl status noctismail-web noctismail-api caddy
journalctl -u noctismail-web -u noctismail-api -f

# Reset Owner Control Center credentials via SSH (PBKDF2-SHA512, zero downtime)
sudo noctis-owner-passwd

# Encrypted off-site backup of WORM Vault, ES384 Authority keys, DKIM & runtime secrets
tar -czf - /opt/noctismail/data /opt/noctismail/license-authority /opt/noctismail/dkim \
  /opt/noctismail/.env /opt/noctismail/license-authority.env \
  | openssl enc -aes-256-cbc -pbkdf2 -salt -out /var/backups/noctismail-$(date +%F).tar.gz.enc

Commercial deployment keeps zero source files (.cs, .cshtml, .pdb, .map) on the server, isolates multi-domain reverse proxy routing in /etc/caddy/noctismail-domains.caddy, and validates Caddy before reload so co-hosted domains remain uninterrupted.