O365 - modern way

Run the below command as this give more detail to the problem.

wsgetmail --debug --dry-run --config=wsgetmail.json