Projects

Mailbot

Queued bulk sending engine, campaign state management, and automated PEC certified-email receipt tracking (acceptance, delivery, and bounce reasons) for the multi-tenant Mailbot platform.

Year
2026
Technologies
Laravel, PHP, GraphQL, React, MySQL, IMAP / SMTP
Links

When a company sends hundreds or thousands of Italian certified emails (PEC), the hard part is not sending a single message: it is staying within provider rate limits without locking the mailbox, tracking campaign progress reliably, and matching every acceptance or delivery receipt back to the right recipient.

On Mailbot (a multi-tenant platform by Tecnodata Ecogreen), I designed and built the operational sending stack: from the rate-limited queue and campaign state machine to automated PEC receipt ingestion and delivery reporting.

What I built

  • Per-mailbox sending queue and schedule: batched enqueueing for large recipient lists, locking to prevent duplicate sends or concurrent connections on the same account, and configurable per-minute and daily rate limits with start/finish forecasts across queued campaigns.
  • Smart pause and automatic resume: separates per-recipient failures (marked only on that recipient) from sender-mailbox errors or daily caps, pausing active campaigns on that account without failing remaining recipients and resuming automatically once capacity resets.
  • PEC receipt matching and delivery status: every outbound message carries a unique Message-ID echoed back in X-Riferimento-Message-ID. A scheduled worker inspects the inbox read-only over IMAP (TLS), parses PEC headers and daticert.xml attachments, and updates each recipient’s delivery state (accepted, delivered, or failed with a clear error reason).
  • Live progress and reporting: real-time progress bars on the campaign list, a per-campaign statistics view separating send counts from PEC delivery receipts, outcome filtering, recipient search, and Excel export.
Mailbot campaigns list showing sending status, queued jobs, and progress bars with demo data
Campaigns view with live sending progress, campaigns queued behind each other on the same mailbox, and automatic pause at the daily limit (shown with demo data).