Checkout https://github.com/appcoders/mailcowtools

A lot of people asked for a way to bulk create mailcow accounts via CSV file. Appcoders delivered a solution for this and other mailcow related tasks.

Big thanks to appcoders!