curl -X POST "https://mail.example.com/api/v1/add/dkim" -H "X-API-Key: $MAILCOW_API_KEY" -H "Content-Type: application/json" -d '{"dkim_selector":"default","domains":["example.com"],"key_size":2048}'

Category: Mail Servers & Postfix

curl -X POST "https://mail.example.com/api/v1/add/dkim" -H "X-API-Key: $MAILCOW_API_KEY" -H "Content-Type: application/json" -d '{"dkim_selector":"default","domains":["example.com"],"key_size":2048}'

Generate a DKIM key pair for a domain

This creates a 2048-bit DKIM signing key for example.com under the selector default. DKIM lets receiving servers verify mail authenticity, so publish the returned TXT record at default._domainkey.example.com. Without the DNS record, signed mail fails verification.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.