How to force postfix to relay mails to other SMTP servers for particular domains

I'm new to postfix and could you some guidance. I have a task to send email for specific domains to another SMTP server. The rest of the email needs to go somewhere else. Is this a type of configuration that is supported by postfix?