I am working with a new installation of RT 5 in a test environment. I’m in the process of testing wsgetmail with Microsoft 365 and am having some issues.
When I running wsgetmail --debug --dry-run --config=/home/user/wsgetmail.json and there are no unread messages I receive the following, which I assume is correct:
fetching mail using configuration /home/user/wsgetmail.json
making GET request to url https://graph.microsoft.com/v1.0/users/email@address.com/mailFolders at /usr/local/share/perl/5.38.2/App/wsgetmail/MS365/Client.pm line 224.
getting system access token at /usr/local/share/perl/5.38.2/App/wsgetmail/MS365/Client.pm line 290.
processed 0 messages
However, when there is a new email and I run the same command I get the following:
fetching mail using configuration /home/user/wsgetmail.json
making GET request to url https://graph.microsoft.com/v1.0/users/email@address.com/mailFolders at /usr/local/share/perl/5.38.2/App/wsgetmail/MS365/Client.pm line 224.
getting system access token at /usr/local/share/perl/5.38.2/App/wsgetmail/MS365/ Client.pm line 290.
making GET request to url https://graph.microsoft.com/v1.0/users/email@address.com/mailFolders/xxMkADU2MWY4ZGRlLTRlM2UtNDkxZS04ZWMwLWFhNTExZjg2NDlhNAAuxx AAAADSCwmqwu9nQ78gJpHME4taAQBIcix4Z4L2Q4Cz1TzNcfKqAAAAAAEMxxA=/messages at /usr/ local/share/perl/5.38.2/App/wsgetmail/MS365/Client.pm line 224.
making GET request to url https://graph.microsoft.com/v1.0/users/email@address.com/messages/xxMkADU2MWY4ZGRlLTRlM2UtNDkxZS04ZWMwLWFhNTExZjg2NDlhNABGAAAAA ADSCwmqwu9nQ78gJpHME4taBwBIcix4Z4L2Q4Cz1TzNcfKqAAxxAAEMAABIcix4Z4L2Q4Cz1TzNcfKqA AALj_GlAAA=/$value at /usr/local/share/perl/5.38.2/App/wsgetmail/MS365/Client.pm line 224.
file not found: /opt/rt4/bin/rt-mailgate at /usr/local/share/perl/5.38.2/App/wsg etmail/MDA.pm line 202.
processed 0 messages
there were errors with 1 messages
Does anyone have any suggestions on where to go from here?