10 Sentinels Active
SENTINEL 01: [AEGIS] AUDITING POCKETBASE INFRASTRUCTURE...
Back to Self-Hosted Stacks
Postal

Deploy Postal

A fully featured open source mail delivery platform for incoming & outgoing e-mail.

Quick Start

1

Create a directory

mkdir postal-self-hosted && cd postal-self-hosted
2

Create config file

Copy the content from the Config tab below into a file named docker-compose.yml

3

Deploy

docker compose up -d
Fast Track

Deploy Postal in Minutes

Use our optimized Docker templates to deploy Postal on any cloud provider. Get $200 in free credit to start on DigitalOcean.

Start with free creditDeploy on DigitalOcean
$200

Metadata

License
MIT
Language
Ruby
Last Updated
10/6/2026
Category
Marketing

Configuration

yaml
services:
  postal:
    image: ghcr.io/postalserver/postal:latest
    container_name: postal
    restart: unless-stopped
    depends_on:
      db:
        condition: service_healthy
      rabbitmq:
        condition: service_started
    ports:
      - "25:25"
      - "5000:5000"
    environment:
      - POSTAL_FNAME=Postal
      - POSTAL_LNAME=Admin
      - POSTAL_EMAIL=admin@localhost

  db:
    image: mariadb:10.11
    container_name: postal-db
    restart: unless-stopped
    environment:
      - MARIADB_ROOT_PASSWORD=rootpass
      - MARIADB_DATABASE=postal
      - MARIADB_USER=postal
      - MARIADB_PASSWORD=postal
    volumes:
      - postal_db_data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
      interval: 10s
      timeout: 5s
      retries: 5

  rabbitmq:
    image: rabbitmq:3-management-alpine
    container_name: postal-rabbitmq
    restart: unless-stopped

volumes:
  postal_db_data:

Community Notes

Help others by adding context, corrections, or warnings about this tool. Sign in to contribute.

No community notes yet. Be the first to add context.