curl -X POST "https://mail.example.com/api/v1/add/domain" -H "X-API-Key: $MAILCOW_API_KEY" -H "Content-Type: application/json" -d '{"domain":"example.com","aliases":"10","mailboxes":"10","defquota":"10240","maxquota":"102400","quota":"102400"}'

Category: Mail Servers & Postfix

curl -X POST "https://mail.example.com/api/v1/add/domain" -H "X-API-Key: $MAILCOW_API_KEY" -H "Content-Type: application/json" -d '{"domain":"example.com","aliases":"10","mailboxes":"10","defquota":"10240","maxquota":"102400","quota":"102400"}'

Add a mail domain through the Mailcow API

This registers example.com with limits for aliases, mailboxes, default per-mailbox quota, and total domain quota. MX and autodiscover DNS records must already point at your server. New mailboxes inherit defquota unless overridden.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.