Some hints according postfix and mySQL
Add Domain:
inside sql:
insert into domains (domain) values ('newdomain.tld');
Add User:
doveadm pw -s SHA512-CRYPT
inside sql:
insert into accounts (username, domain, password, quota, enabled, sendonly) values ('username', 'domain.d', 'String from Doveadm pw', 2048, true, false);
Add Alias:
inside sql:
insert into aliases (source_username, source_domain, destination_username, destination_domain, enabled) values ('aliasname', 'domain.tdl', 'Target_User', 'domain.tld', true);
Refresh your dovecot with:
newaliases