Hi @rowansc1
Do you have a certificate which includes mail.domain.co.uk on your Exchange server?
If not, this may be the expected behavior as the tool cannot find a valid certificate for this domain, thus the error message Host name mail.domain.co.uk doesn't match any name found on the server certificate is returned.
Here is also a thread discussing the similar scenario for your reference:
Multiple certificates on Exchange 2019 server
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.