I deleted the mail server from my VPS and got 1.2 GB of RAM back
说明与用途
将邮件服务器从 VPS 迁移到 smtpfa.st,减少了 1.2 GB 的内存使用,提升了邮件投递可视化,并实现了新闻通讯功能。
问题
The VPS hosted a self‑managed mail server that consumed 1.14 GiB of RAM, provided no visibility into email delivery, and risked IP blocklisting when sending newsletters.
结果
Migrating from a self‑hosted mail server to smtpfa.st reduced RAM usage by 1.2 GB, eliminated ClamAV updates, provided real‑time email delivery visibility, and enabled a newsletter system with proper opt‑in handling.
工作流
- 1. Add smtpfa.st SMTP settings to Django
- 2. Add DNS records in Cloudflare and verify
- 3. Create TransactionalEmailBackend to set X‑SMTPfast‑Category and tracking headers
- 4. Sync user email preferences nightly to smtpfa.st contacts
- 5. Build email templates with React Email, upload as hosted templates
- 6. Create broadcasts via REST API, schedule per time zone
- 7. Handle webhooks for bounces, complaints, unsubscribes with HMAC verification
- 8. Clean old email list and set bounce suppression rule
- 9. Report issues to smtpfa.st and track fixes
- 10. Backup mailboxes, stop/delete containers, close ports, update SPF and MX
- 11. Verify RAM usage drop and monitor email delivery
证据
docker stats showed the mailserver using 1.14 GiB
Used RAM went from 5,537 MB to 4,322 MB
smtpfa.st has an SMTP relay so for Django it's only settings
- 记录日期: 2026-10-27T10:26:44.558Z