smtp – Map a subdomain to an individual email address

say I want to redirect multiple subdomains to different email addresses

So:

*@it.example.tld –> it-support@mail.tld

*@finance.example.tld –> finance@mail.tld

*@hr.example.tld –> hr@mail.tld

*@mail.example.tld –> mail@mail.tld

*@example.tld –> 404@mail.tld

So I would like to be able to translate all emails sent to a specific subdomain to a single mailbox.