SMTP

Set up and run the Reloop outbound SMTP engine locally in Docker.

Complete Base Setup First

Ensure you've finished the Setup and have Docker Desktop running.

Service Overview

Outbound KumoMTA engine — accepts mail from mail and delivers via SMTP (Mailpit locally).

PropertyValue
Directoryapps/backend/smtp
Docker servicesmtp (container reloop-smtp)
SMTP ports587, 2025
HTTP port8020
StackKumoMTA Lua

Quick Start

Starts with the full Docker stack:

bun docker:up

Or start only SMTP + Mailpit from local/:

cd local && docker compose up -d smtp reloop-mailpit

Configuration

Key variables in local/docker-compose.yml:

VariableDefault
BASE_URLhttps://local.reloop.sh
NATS_URLreloop-nats:4222

Container Commands

CommandDescription
docker compose up -d smtpStart SMTP container
docker logs -f reloop-smtpStream logs
docker compose stop smtpStop container

Architecture

LayerDetail
SubmissionAccepts outbound mail on ports 587/2025 from the mail service.
PoliciesLua scripts in apps/backend/smtp/policy/ handle routing and DKIM.
Local deliveryCaptured by Mailpit at http://localhost:8025.
InboundPort 25 MX is handled by inbound, not this service.

Was this page helpful?

Edit this page