Newly installed IT flow via script, running on EC2 ubuntu server.

I got M365 set up, app password, etc. For some reason I just can't get this to work. Client is able to submit messages via the portal and that updates the ticket but when the client responds from their email ticket does not get updated. Can you please help me?