Overview
Discover what makes Postal powerful
Postal is a full‑stack, open‑source mail delivery platform engineered for developers who need granular control over email infrastructure. From the moment an SMTP client connects to a POST request on its REST API, Postal processes, queues, and routes messages through a highly configurable pipeline that includes anti‑spam engines, IP pool management, and webhook callbacks. The system is designed to be horizontally scalable; workers can be added behind a load balancer, and message queues are persisted in PostgreSQL so that state survives restarts or node failures.
SMTP & API Delivery
Queueing & Retry
IP Pool Management
Spam & AV Integration
Overview
Postal is a full‑stack, open‑source mail delivery platform engineered for developers who need granular control over email infrastructure. From the moment an SMTP client connects to a POST request on its REST API, Postal processes, queues, and routes messages through a highly configurable pipeline that includes anti‑spam engines, IP pool management, and webhook callbacks. The system is designed to be horizontally scalable; workers can be added behind a load balancer, and message queues are persisted in PostgreSQL so that state survives restarts or node failures.
Architecture
Postal is built with Elixir on the BEAM VM, leveraging Phoenix for its web interface and API layer. The core runtime is a set of supervised worker processes that handle SMTP, HTTP, and queue consumption. Data persistence uses PostgreSQL for relational metadata (domains, users, logs) and Redis for lightweight pub/sub and rate‑limiting counters. Email bodies are stored as attachments in a local or S3‑compatible object store, allowing the system to keep logs without bloating the database. The architecture is intentionally modular: IP pools, spam filters (SpamAssassin, rspamd, ClamAV), and webhook endpoints are all plug‑in points that can be swapped or extended without touching the core codebase.
Core Capabilities
- SMTP & API Delivery – Accepts standard SMTP traffic and provides a JSON‑based REST API for programmatic sending.
- Queueing & Retry – Uses exponential backoff and configurable retry windows; workers can be scaled independently.
- IP Pool Management – Allows sending from multiple IP addresses, automatically rotating to maintain reputation and bypass rate limits.
- Spam & AV Integration – Hooks into external engines; results are stored in delivery logs and can trigger webhook callbacks.
- Webhooks & Callbacks – Exposes endpoints for delivery status, bounces, and clicks; developers can subscribe to events via a simple subscription API.
- Development Mode – A flag that holds outbound messages in a “hold” state, enabling local testing without external spam filters.
Deployment & Infrastructure
Postal is distributed as a Docker image, making it straightforward to deploy in Kubernetes or any container orchestration platform. The docker-compose.yml includes services for the web/API server, worker pool, PostgreSQL, Redis, and optional object storage. For high‑availability, replicas of the API server share a common PostgreSQL cluster and Redis instance; worker nodes can be added on demand to process growing queues. The system exposes health checks and metrics via Prometheus exporters, allowing integration with existing observability stacks.
Integration & Extensibility
Developers can extend Postal through its plugin architecture: custom modules written in Elixir can hook into the message lifecycle (pre‑send, post‑receive, delivery). The REST API is fully documented with OpenAPI specs, enabling automated client generation. Webhooks can target any HTTP endpoint, and the system supports JSON‑payload filtering to reduce noise. Additionally, Postal’s CLI exposes commands for domain and user management, making it a convenient tool in CI/CD pipelines.
Developer Experience
Postal’s documentation is comprehensive and versioned, with a dedicated FAQ section and an active Discord community. Configuration is driven by environment variables and a clear postal.yml file, allowing developers to bootstrap new instances with minimal friction. The web UI provides real‑time logs and analytics, while the API offers programmatic access for full automation. The open‑source license (MIT) removes vendor lock‑in, and the active issue tracker ensures rapid response to feature requests or bugs.
Use Cases
- Web Applications that require reliable transactional email (password resets, notifications) without relying on third‑party services.
- Enterprise Email Gateways where compliance mandates hosting all email traffic in‑house.
- SaaS Platforms that need to send bulk marketing emails from multiple IPs while maintaining deliverability.
- Testing Environments that use the development mode to capture and inspect outgoing mail without external delivery.
Advantages
Postal offers developers performance (Elixir’s lightweight processes), flexibility (full control over IP rotation and spam filtering), and cost efficiency (self‑hosted, no per‑message fees). Its modular architecture allows teams to replace or augment components (e.g., swap rspamd for a custom ML‑based spam filter) without refactoring the entire stack. Because it’s open source, teams can audit the code for security and compliance concerns, a critical requirement in regulated industries.
Open SourceReady to get started?
Join the community and start self-hosting Postal today
Related Apps in apis-services
Mastodon
Decentralized, real‑time social networking
Discourse
Open‑source community forum platform with real‑time chat and AI
Rocket.Chat
Secure, open‑source team communication platform
Novu
Unified notification platform for multi‑channel delivery
Mattermost
Secure, self‑hosted team collaboration with chat, voice, and AI
Jitsi Meet
Free, encrypted video conferencing for everyone
Weekly Views
Repository Health
Information
Explore More Apps
Mergeable
Better inbox for GitHub pull requests
Flarum
Fast, lightweight community forum software
CryptPad
Secure, real‑time collaboration suite
Svix
Enterprise‑ready webhook delivery and management
OpenTrashmail
Disposable email service with web UI, API, RSS and hooks
WebThings Gateway
Self‑hosted smart home hub for privacy and control
