When you send an email through a 3rd-party system (it depends), the email is transmitted through the 3rd-party servers instead of Office 365 server. Email can be easy to forge, so the system will automatically authenticates all emails sent through its system using multiple authentication methods to help improve deliverability.
In order to let it authorized in Office 365, what you need is adding the DNS record to allow the 3rd-party domain in SPF record.
v=spf1 include:spf.protection.outlook.com include:3rd-party.domain.com -all