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 http://www.sant-media.co.uk/2010/03/how-to-configure-exim-to-receive-email-for-domain-only-from-specific-ip-addresses/

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