Do have a look at the zmprov command and what you can do with it:
Code:
zmprov help commands
Try adding a forwarding address to an account and list the account with:
Code:
zmprov ga account@mydomain.com
then have a look at the forwarding address and see what the name of the attribute is. You can dump the required address with zmprov then script the creation (zmprov ma .....) of a forwarding address for those accounts. The alternative would be to do it manually from the Admin UI.