I can’t stress it enough that you can’t work on relationship while she’s having an affair.
For her to come home I would suggest your boundaries be for her to send him a no contact letter and give you full transparency including phone and email accounts.