Incoming and Outgoing email filter

For eg i have domain name abc.com in my cyberpanel
Having [email protected]

What I need is it can communicate only with xyz.com

Else the email should get bounced

I was using exim in cpanel in which i made a custom filter script with if…else but not sure how to create filter in postfix

It would be great if anyone could just help me out!

Welcome @ideveloppro Happy you are here

We can achieve incoming email filter by using the above documentation but we need to achieve outgoing email filter
Makes sense?

Understood. Nothing postfix has achieved will help you. Last time I tried something like this postfix firewall daemon worked. I think its still updated give it a try.

it would be great if you share the documentation for the same

Read the documentation adds rule to config