I configured the Mail Gateway to sanitize incoming messages for my Exchange 2019, basically I'm using the default configurations, I just adjusted the filter settings below:
Mailproxy
Default Relay: IP Exchange 2019
Relay Domain: mydomain.com
DNSBL Sites...