Exim limit sender IP address only for certain local domain recipients

Hello, on a shared hosting, putting an antispam/antivirus proxy in front of exim only for certain local domains, I need to allow receiving from certain IPs only for that domains

Is there already a config file ready to do that?

I found this How to Configure Exim to receive email for domain only from specific IP addresses | Website Design West Midlands

that define a list of allowed IPs and a list of receipient domains restricted to receive from those IPs.

not sure the right place where to put this config

thanks