Secure temporary email service with auto-deletion. ModSecurity WAF protected.
Secure temporary email service with auto-deletion. ModSecurity WAF protected.
Self-hosted disposable email. Every inbox deletes itself after 24 hours.
SpamEater runs on your own domain and server. Type a name, get an inbox, use it for signups and testing, and let it burn. No accounts, no tracking, no recovery. Email bodies are encrypted at rest with AES-256-GCM.
multipart/mixed (every forward, every attachment-bearing message) is found. Those used to come up "No content available".cid:) are embedded at ingestion and render like the sender intended. Remote images stay blocked until you load them for that email, so tracking pixels never fire on open.noopener and no referrer. Dark scrollbars, readable dividers, correct rendering at phone widths.New design across every screen, self-hosted fonts, SVG iconography, themed install scripts to match. The browser loads nothing from third-party CDNs. Copy button, random address generator, live self-destruct countdown, styled delete confirmation. Since v4.1 there is a dark/light toggle: it follows the OS preference by default, remembers an explicit choice, and in light mode email renders exactly as the sender designed it.
docker compose pull && up -d no longer regenerates the encryption key that protects stored mail.package.json with pinned versions and a committed lockfile; CI installs, audits, and tests before publishing an image. First test suite in the repo.Privacy
Security
Technical
A domain you own (e.g. example.com)
DNS records, configured before installation:
For private/personal use (recommended, better isolation):
MX example.com 10 mail.example.com
A mail.example.com YOUR_SERVER_IP
A app.example.com YOUR_SERVER_IP (web interface)For public use (simpler):
MX example.com 10 mail.example.com
A mail.example.com YOUR_SERVER_IP
A example.com YOUR_SERVER_IP (web + email on same domain)Verify DNS before proceeding (propagation can take up to 48 hours; certificate issuance fails without it):
dig MX example.com
dig A mail.example.comServer: static public IP, ports 25, 80, and 443 open.
Docker deployment (recommended)
# Download configuration
wget https://raw.githubusercontent.com/rufftruffles/spameater/main/docker-compose.yml
# Edit your domains (hostname, EMAIL_DOMAIN, WEB_DOMAIN)
nano docker-compose.yml
# Deploy
docker compose up -dSecrets are generated on first start and stored on the data volume, so later upgrades and recreates keep the same encryption key. SSL certificates come from Let's Encrypt automatically.
Access: https://app.example.com (your WEB_DOMAIN)
docker compose logs -f # logs
docker compose restart # restart services
docker compose pull && docker compose up -d # upgrade
docker exec -it spameater supervisorctl status # service status
# Backup (data volume holds the database, inbox cache, and secrets)
docker run --rm -v spameater_data:/data -v $(pwd):/backup alpine tar czf /backup/spameater-backup-$(date +%Y%m%d).tar.gz -C /data .Upgrading from v3: if the old container is still running, restart in place once (docker compose restart) before recreating, and the existing key is migrated to the volume. If the container was already recreated, the old key is gone with it; with the 24-hour retention window that costs at most one day of mail.
Native installation (advanced)
git clone https://github.com/rufftruffles/spameater.git
cd spameater
sudo ./setup.shThe script installs Node.js, Haraka, nginx with ModSecurity, fail2ban, and the SQLite database, sets up systemd services, and obtains certificates.
systemctl status haraka spameater-api nginx
journalctl -u haraka -f
journalctl -u spameater-api -f
tail -f /opt/spameater/logs/haraka.logSecrets live in /opt/spameater/.env (generated once; setup.sh preserves them if you re-run it). The email and web domains are baked into the Haraka config, nginx config, and index.html at install time, not read from .env on native. Re-running setup.sh re-applies the domains without rotating secrets; restart services after any change.
sudo ./uninstall.shRemoves all services, data, and configuration.
Internet → Nginx (SSL/WAF) → Express API (:3001) → SQLite
↓ ↓
Haraka SMTP (:25) ─────────────→ SQLite + JSON inbox cachenpm ci
npm test # node:test suite
# Local dev stack (no root, no /opt) at http://127.0.0.1:8080
mkdir -p .devhome/data/inboxes
sqlite3 .devhome/data/emails.db
RCPT TO:
DATA
Subject: Test
Test message.
.
QUITWhere the WAF is active, these return 403 Forbidden:
curl "https://your-domain.com/?test=
"
curl "https://your-domain.com/../../etc/passwd"On Enterprise Linux 10, EPEL does not package the nginx connector yet; the installer falls back to binary RPMs from the mikelo2/modsecurity-el10 COPR (built on Fedora infrastructure against the distro nginx). Where no package source exists at all, the installer says so and continues; the application-level protections (CSRF, delete tokens, input validation, sanitization, rate limits) do not depend on the WAF.
MIT, see LICENSE. Copyright (c) 2025 rufftruffles
SpamEater is for throwaway mail. Everything is deleted after 24 hours with no recovery. Do not point anything important at it.
No open issues yet, or sync has not completed.