If you’ve struggled with then the answer is most likely to do with relaying. Check the following:
Exchange System Manager
–First Admin Group
Right click properties on Default SMTP Virtual Server
Click the Access tab
Click Relay button at the bottom.
Add your scanner IP on the allow list.