You may need these to configure your 3rd party antispam software/appliance.
There were lots of articles on the internet with complicated solutions, which did not work for me. Here a Powershell one-liner for Exchange management shell:
Within regular Powershell, add this line at the very start:
If you plan to run it as a batch job, the whole script could look like the following: