You can create a new receive connector for anonymous relay scoped to the sending severs IP addresses
You will need to do this on the on-prem Exchange Server and allow the connection. You can not do this through 365
Go to the section:
External SMTP Relay with Exchange Server 2016 Using Anonymous Connection
https://practical365.com/exchange-2016-smtp-relay-connector/