Problem/Motivation
Running Commerce Core with SMTP authentication module and Commerce Invoice Receipt module. All emails are being property authenticated except for my receipt emails. So the welcome email, password retrieval emails, emails I send myself through outlook, etc... Those all work. However ALL my receipt emails are being flagged as being sent from "Example.com", not from my domain. So lets say my email address is mail@johnsdomain.com The dmarc reports will read something like this for the failed emails.
hotmail.com
example.com THIS LINE IS WRONG
myactualdomainwhichiscorrect.com THIS LINE IS CORRECT
After this it will go on to say that spf checks have failed and that my IP address is not an approved designated sender for Example.com.
Also when I open emails at my gmail, outlook, or any other provider it will say basically the same thing. That SPF has failed and my IP address is not an authorized sender. And same things show up. That the email was sent from my IP address, and the header will show my websites email address, but the FROM address is example.com which is incorrect.
So the ISP check and think that my ipaddress is sending emails for example.com and that I'm not authorized to do so. I also send marketing emails using moosend and email octopus and those are all working correctly as well. For the time being I'm sending the receipts to myself and then forwarding them to my customers manually.
I've tried researching this extensively, I'm using all common settings, I haven't altered any code. Just out of the box it isn't working. This has probably been a problem for two years now. I migrated from a drupal 6 website to a drupal 7 website almost exactly two years ago. And now its causing me problems cause the likes of gmail, hotmail are starting to flag my server as a bad server I think because of this. And who can blame them it appears I'm trying to spoof example.com which is kind of funny cause there actually is an example.com which doesn't do anything.
Steps to reproduce
Well I've installed:
Commerce Core 7.x-1.17
Commerce Invoice Receipt 7.x-1.1
Commerce Paypal 7.x-2.7
SMTP Authentication Support 7.x-1.7 (there are two newer versions looking into that now)
Php Version 7.4
As far as set up I'm sending from the recommended defaults. Just hoping someone else is having or was having the same problem and can help with a solution.