Richard G
Verified User
It seems I'm having issues with DMARC and Gmail, while my server is configured perfectly for this to work.
So this is how it looks in Gmail at dmarcian:

The wildcard name is not my domain, but the domain from the servers hostname. However, this is about mail I send from my domain.
Now *exactly* the same but then from Outlook, also mail send from my domain:

So Gmail says "wrong" and Microsoft says "great!".
I've found 1 report from google which was stated as being pass. However, this had the source ip of my ISP in there.
which could be possible because I send my business mail from home, but using the smtp of my own server. But just to be sure I added some ISP ip's in my SPF record. However, my SPF record -also- contains my MX and MX ip and even the hostname of the server and still I get these Google fails.
So how come now my ISP's source ip is used, it's got a pass, while I don't even use the SMTP of my ISP for my company domain (is not possible anymore either).
I just also seen that this mail was send from mydomain.nl and not from server.hostingdomain.nl. Maybe that was the reason of passing.
This is my SPF:
The first 3 ip's are this server my domain is residing on and the other 2 are from other servers which might send mail from my domain.
The hostingdomain.nl is different than my companydomain.
The correct ip gets a pass from Outlook, but a fail from Google:
Now the only difference with Outlook is the last part, seems to Google they are send from the hostname (maybe via DA or Softaculous) and Outlook is probably direct mail send by myself.
From google:
So at the end for the hostname server.hostingdomain.nl it will get a pass but the evaluated policy is both fail.
This is one from outlook:
What I can see from this, is that mails send via the hostname are failed, at least by Google.
But that is odd, because I have the server's hostname in my SPF record so at least the SPF should not say "fail".
Hostname is a seperate DNS entry with SPF record:
What's going wrong here? How can I fix this?
Is this the issue caused by the hostname not really effectively signing with DKIM?
Maybe @mxroute?
Edit: The hostingdomain.nl has this SPF:
That shouldn't matter should it? While the server name is not in there and setup as seperate record, right?
So this is how it looks in Gmail at dmarcian:

The wildcard name is not my domain, but the domain from the servers hostname. However, this is about mail I send from my domain.
Now *exactly* the same but then from Outlook, also mail send from my domain:

So Gmail says "wrong" and Microsoft says "great!".
I've found 1 report from google which was stated as being pass. However, this had the source ip of my ISP in there.
Code:
<source_ip>212.xx.xx.xx</source_ip>
<count>1</count>
<policy_evaluated>
<disposition>none</disposition>
<dkim>pass</dkim>
<spf>pass</spf>
</policy_evaluated>
which could be possible because I send my business mail from home, but using the smtp of my own server. But just to be sure I added some ISP ip's in my SPF record. However, my SPF record -also- contains my MX and MX ip and even the hostname of the server and still I get these Google fails.
So how come now my ISP's source ip is used, it's got a pass, while I don't even use the SMTP of my ISP for my company domain (is not possible anymore either).
I just also seen that this mail was send from mydomain.nl and not from server.hostingdomain.nl. Maybe that was the reason of passing.
This is my SPF:
Code:
"v=spf1 a mx ip4:95.xx.xx.xx/32 ip4:95.xx.xx.xx/32 ip4:144.xx.xx.xx/32 include:server.hostingdomain.nl include:smtp.spf.myisp.nl -all"
The first 3 ip's are this server my domain is residing on and the other 2 are from other servers which might send mail from my domain.
The hostingdomain.nl is different than my companydomain.
The correct ip gets a pass from Outlook, but a fail from Google:
Code:
source_ip>95.xx.xx.xx</source_ip>
<count>1</count>
<policy_evaluated>
<disposition>quarantine</disposition>
<dkim>fail</dkim>
<spf>fail</spf>
</policy_evaluated>
Now the only difference with Outlook is the last part, seems to Google they are send from the hostname (maybe via DA or Softaculous) and Outlook is probably direct mail send by myself.
From google:
Code:
<policy_published>
<domain>mycompany.nl</domain>
<adkim>r</adkim>
<aspf>s</aspf>
<p>quarantine</p>
<sp>reject</sp>
<pct>100</pct>
</policy_published>
<record>
<row>
<source_ip>95.XX.XX.XX</source_ip>
<count>1</count>
<policy_evaluated>
<disposition>quarantine</disposition>
<dkim>fail</dkim>
<spf>fail</spf>
</policy_evaluated>
</row>
<identifiers>
<header_from>mycompany.nl</header_from>
</identifiers>
<auth_results>
<dkim>
<domain>server.hostingdomain.nl</domain>
<result>pass</result>
<selector>x</selector>
</dkim>
<spf>
<domain>server.hostingdomain.nl</domain>
<result>pass</result>
</spf>
</auth_results>
</record>
So at the end for the hostname server.hostingdomain.nl it will get a pass but the evaluated policy is both fail.
This is one from outlook:
Code:
<policy_published>
<domain>mycompany.nl</domain>
<adkim>r</adkim>
<aspf>s</aspf>
<p>quarantine</p>
<sp>reject</sp>
<pct>100</pct>
<fo>0</fo>
</policy_published>
<record>
<row>
<source_ip>95.XX.XX.XX</source_ip>
<count>1</count>
<policy_evaluated>
<disposition>none</disposition>
<dkim>pass</dkim>
<spf>pass</spf>
</policy_evaluated>
</row>
<identifiers>
<envelope_to>outlook.com</envelope_to>
<envelope_from>mycompany.nl</envelope_from>
<header_from>mycompany.nl</header_from>
</identifiers>
<auth_results>
<dkim>
<domain>mycompany.nl</domain>
<selector>x</selector>
<result>pass</result>
</dkim>
<spf>
<domain>mycompany.nl</domain>
<scope>mfrom</scope>
<result>pass</result>
</spf>
</auth_results>
</record>
What I can see from this, is that mails send via the hostname are failed, at least by Google.
But that is odd, because I have the server's hostname in my SPF record so at least the SPF should not say "fail".
Hostname is a seperate DNS entry with SPF record:
"v=spf1 a mx ip4:95.xx.xx.xx ~all"
What's going wrong here? How can I fix this?
Is this the issue caused by the hostname not really effectively signing with DKIM?
Maybe @mxroute?
Edit: The hostingdomain.nl has this SPF:
v=spf1 a mx ip4:95.xx.xx.xx -all
That shouldn't matter should it? While the server name is not in there and setup as seperate record, right?