Thank you both for your help!
As my application is not adding anything to the header (just using *web/email) and as it's really just one customer whose exchange server is rejecting our emails, I'm more and more convinced it must be a problem on his side, not ours. And I found out that the email address where we send the mails to is not an exchange server but a mail account hostet by his provider and there it's forward it to a Microsoft exchange address (like bla.bla.bla@companyname.onmicrosoft.com). And it's that exchange server that rejects the mails. So I guess hat when the emails are forwarded to the onmicrosoft.com domain, something happens to the email that makes the microsoft server reject them.
That would explain a lot. Except that when I send the emails using Outlook (classic) instead of our application using *web/email, then the mails aren't rejected. Maybe this is because Outlook creates the headers differently than *web/email. Anyway it's just like my father said: we use computers to solve problems we wouldn't have without them
Update 5th March 2026: The problem is now solved. We found out that the customer forwarded his incoming e-mails (hosted by his providers mailing servers) to the exchange server (hosted by Microsoft) and that this forwarding caused DMARC tests to fail. Now he rearranged his email structure and that solved the problem. Thanks to Mike King and yonman for your help!
As my application is not adding anything to the header (just using *web/email) and as it's really just one customer whose exchange server is rejecting our emails, I'm more and more convinced it must be a problem on his side, not ours. And I found out that the email address where we send the mails to is not an exchange server but a mail account hostet by his provider and there it's forward it to a Microsoft exchange address (like bla.bla.bla@companyname.onmicrosoft.com). And it's that exchange server that rejects the mails. So I guess hat when the emails are forwarded to the onmicrosoft.com domain, something happens to the email that makes the microsoft server reject them.
That would explain a lot. Except that when I send the emails using Outlook (classic) instead of our application using *web/email, then the mails aren't rejected. Maybe this is because Outlook creates the headers differently than *web/email. Anyway it's just like my father said: we use computers to solve problems we wouldn't have without them
Update 5th March 2026: The problem is now solved. We found out that the customer forwarded his incoming e-mails (hosted by his providers mailing servers) to the exchange server (hosted by Microsoft) and that this forwarding caused DMARC tests to fail. Now he rearranged his email structure and that solved the problem. Thanks to Mike King and yonman for your help!
