HCHTech
Well-Known Member
- Reaction score
- 4,203
- Location
- Pittsburgh, PA - USA
Once upon a time, there was a little company owned by Larry. Nope, no way I can carry that all the way through - forget it, let's start over.
I have a client that sells things from their website. They have a Wordpress site with the various Woocommerce plugins. I'm not in charge of that (I have a web guy referral partner, it's one of his sites), but I get pulled into the sphere when there are problems.
The original domain is also the domain used for the client's email addresses with M365.
There is a public facing part of the website, and a "wholesale" side which is accessed by their wholesale customers to place orders. The wholesale stuff was originally on a subdomain.
A couple of months ago, something happened and they got an infection in one of the scripts on the wholesale site. It took a few days to nail down, but it was found and removed. I think they used a WP plugin called "Wordfence" that initially identified the bad guy. In those few days when the problem was active, their wholesale site was put on the bad list by Norton. Any customer that had Norton's antivirus and tried to access the site got a block message. This continued, unfortunately, even after removing the infection and having several customers report the site to Norton as good. Repeated scans of the site with various products have all since come back clean.
Because 80% of their business comes through the website, this became an emergency fairly quickly. Trying to talk to Norton was an exercise in futility. Reporting the site as a false positive went nowhere. Ultimately, the web guy remade the entire wholesale side of the site on a different domain than the public site. As before, when a wholesale customer places an order, Woocommerce generates (and a plugin called "Mailgun" sends) an email to "orders@originaldomain.com", with a copy also going to the customer. The "from" address in this email was also "orders@originaldomain.com"
Before the separation of the wholesale side of the site, this process all worked well with pretty standard SPF, DKIM & DMARC records.
Now that the site has been separated, I'm having trouble getting those order emails delivered. The wholesaledomain.com does not currently have an MX record, which may be the problem, but I'm going in circles trying to figure it out.
If we code Woocommerce and Mailgun to use the "from" email we want (orders@originaldomain.com), then SPF fails because originaldomain.com =! wholesaledomain.com.
If we code Woocommerce and Mailgun to use the from email of "orders@wholesaledomain.com", then SPF fails with a PERMERROR, probably because wholesaledomain.com doesn't have an MX record.
I have tried adding wholesaledomain.com to the SPF record of originaldomain.com's DNS, and vice versa - neither of which solved the problem.
What do I need to put where in order to get SPF & DMARC alignment on emails sent from wholesaledomain.com's site using a from address of email@originaldomain.com? We do have mailgun.org in the SPF record of originaldomain.com, and they are the ones actually sending the email.
When there is only one domain involved, this stuff is fairly easy to setup & troubleshoot. Because there are two domains in the mix on this problem, I'm in the weeds.
I have a client that sells things from their website. They have a Wordpress site with the various Woocommerce plugins. I'm not in charge of that (I have a web guy referral partner, it's one of his sites), but I get pulled into the sphere when there are problems.
The original domain is also the domain used for the client's email addresses with M365.
There is a public facing part of the website, and a "wholesale" side which is accessed by their wholesale customers to place orders. The wholesale stuff was originally on a subdomain.
A couple of months ago, something happened and they got an infection in one of the scripts on the wholesale site. It took a few days to nail down, but it was found and removed. I think they used a WP plugin called "Wordfence" that initially identified the bad guy. In those few days when the problem was active, their wholesale site was put on the bad list by Norton. Any customer that had Norton's antivirus and tried to access the site got a block message. This continued, unfortunately, even after removing the infection and having several customers report the site to Norton as good. Repeated scans of the site with various products have all since come back clean.
Because 80% of their business comes through the website, this became an emergency fairly quickly. Trying to talk to Norton was an exercise in futility. Reporting the site as a false positive went nowhere. Ultimately, the web guy remade the entire wholesale side of the site on a different domain than the public site. As before, when a wholesale customer places an order, Woocommerce generates (and a plugin called "Mailgun" sends) an email to "orders@originaldomain.com", with a copy also going to the customer. The "from" address in this email was also "orders@originaldomain.com"
Before the separation of the wholesale side of the site, this process all worked well with pretty standard SPF, DKIM & DMARC records.
Now that the site has been separated, I'm having trouble getting those order emails delivered. The wholesaledomain.com does not currently have an MX record, which may be the problem, but I'm going in circles trying to figure it out.
If we code Woocommerce and Mailgun to use the "from" email we want (orders@originaldomain.com), then SPF fails because originaldomain.com =! wholesaledomain.com.
If we code Woocommerce and Mailgun to use the from email of "orders@wholesaledomain.com", then SPF fails with a PERMERROR, probably because wholesaledomain.com doesn't have an MX record.
I have tried adding wholesaledomain.com to the SPF record of originaldomain.com's DNS, and vice versa - neither of which solved the problem.
What do I need to put where in order to get SPF & DMARC alignment on emails sent from wholesaledomain.com's site using a from address of email@originaldomain.com? We do have mailgun.org in the SPF record of originaldomain.com, and they are the ones actually sending the email.
When there is only one domain involved, this stuff is fairly easy to setup & troubleshoot. Because there are two domains in the mix on this problem, I'm in the weeds.