mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-06-06 18:39:45 +00:00
mailcow-agent
Each mailcow service container (postfix, dovecot, …) runs mailcow-agent as
ENTRYPOINT. It supervises the original service main process and exposes its
control commands over a Redis Pub/Sub bus:
mailcow.control.<service>— request channel (Backend → Agent)mailcow.reply.<request_id>— per-request reply channelmailcow.events.<topic>— broadcast eventsmailcow.nodes.<service>(ZSET) +mailcow.node.<service>.<node_id>(HASH) — heartbeat registrymailcow.stats.<service>.<node_id>(HASH) — per-node cpu/memory stats
Service behaviour is selected via MAILCOW_AGENT_SERVICE=<service>. The main
process command is configured via MAILCOW_AGENT_MAIN_CMD (string, executed via
sh -c so existing entrypoints/supervisord commands keep working).