curl -X POST "https://mail.example.com/api/v1/add/alias" -H "X-API-Key: $MAILCOW_API_KEY" -H "Content-Type: application/json" -d '{"address":"info@example.com","goto":"jane@example.com"}'

Category: Mail Servers & Postfix

curl -X POST "https://mail.example.com/api/v1/add/alias" -H "X-API-Key: $MAILCOW_API_KEY" -H "Content-Type: application/json" -d '{"address":"info@example.com","goto":"jane@example.com"}'

Create an alias that forwards to a mailbox

This creates info@example.com as an alias whose mail is delivered to jane@example.com. The goto field can hold several comma-separated recipients. Aliases do not consume quota and cannot log in by themselves.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.