docker compose -f /opt/mailcow-dockerized/docker-compose.yml exec postfix-mailcow postfix check

Category: Mail Servers & Postfix

docker compose -f /opt/mailcow-dockerized/docker-compose.yml exec postfix-mailcow postfix check

Verify Postfix configuration inside the container

postfix check validates main.cf, master.cf, and queue directory permissions inside the Postfix container. Silent output with exit code zero means the configuration is sane. Run it before restarting postfix-mailcow after any manual map change.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.