postfix domain , alias mapping for multi domains

I noticed that when adding domains to cyberpanel , u need to configure postfix for every new domain…

is there a tutorial how to do this?

and is there a way for it to be done automatically without needing to edit master.cnf?