How to Setup tow Mail Domain with two Separate IPs

I have two domains names that I need to have an email server set up for them, can anyone share the correct setup for this scenario, for instance setting up the SPF records, editing the exim files, etc. to have two mail domains set up correctly?