KumoMTA Configuration Guide: Sources, Queues & Shaping
KumoMTA is configured through a Lua policy and a handful of TOML helper files that control every IP, domain and delivery rule. This guide walks through the building blocks so you understand what any panel is really doing under the hood.
TL;DR
KumoMTA's behaviour lives in a Lua policy (init.lua) plus TOML helpers: sources.toml for IPs and pools, shaping.toml for per-provider throttling and dkim_data.toml for signing keys. Get the structure right and deliverability follows. If hand-editing scares you, AutoKumoMTA generates and manages this config visually.
The config structure
Everything starts in the policy entry point, init.lua, which on a standard install lives under /opt/kumomta/etc/policy/. Instead of one giant file, most deployments load small helper files from it: sources (egress IPs and pools), shaping (per-destination limits), queues (tenants and campaigns) and DKIM data.
1. Egress sources and pools (VMTAs)
An egress source ties a sending IP to a hostname — KumoMTA's equivalent of a VMTA. This is how you isolate streams:
[source."ip-1"]
source_address = "192.0.2.10"
ehlo_domain = "mail1.yourdomain.com"
[pool."default"]
[pool."default"."ip-1"]
weight = 1
You then group sources into pools so KumoMTA can rotate across IPs. Clean pool design is the foundation of IP warmup — each fresh IP gets its own ramp.
2. Traffic shaping rules
Mailbox providers will throttle or block you if you send too fast. KumoMTA lets you cap delivery per destination:
["gmail.com"]
connection_limit = 20
max_message_rate = "100/min"
Tuning these numbers per ISP is an art. Sending too aggressively triggers spam folder placement and 4xx throttling errors. Our deliverability guide covers the signals to watch.
3. DKIM signing
KumoMTA signs outbound mail with your DKIM key so receivers can verify it. You declare the domain, selector and private key path in the DKIM data file. If DKIM, SPF and DMARC are new to you, start with our SPF, DKIM and DMARC setup guide.
4. Bounce & feedback-loop handling
KumoMTA classifies bounces (hard vs soft), can parse feedback-loop reports and writes everything to structured logs. Feeding this data back into suppression lists protects your reputation over time.
Why teams move to a panel
A real production policy can span many files across dozens of IPs and domains. Editing it over SSH is slow and risky — a single syntax error can stop the service from loading the policy. A management layer validates changes, shows you live queue state and prevents typos.
Skip the hand-editing. AutoKumoMTA builds, validates and manages your KumoMTA config with a visual UI for VMTAs, ISP rules and warmup — see the plans.
Key takeaways
- init.lua plus TOML helpers control sources, pools, shaping and DKIM.
- Egress sources isolate IP/hostname streams; pools enable rotation.
- Per-destination shaping prevents blocks and 4xx errors.
- A panel removes the risk of hand-editing large policies.