SPF + DMARC pass anf DKIM fails

91 Views Asked by At

I have a problem when sending a message via mail.mydomain.com, it sends the message to spam emails, and I don’t know why I used tools to check the DNS, such as mxtoolbox, and the SPF, DKIM, and DMARC did not have any problem, but when I send a message, it is for Gmail. He gives me SPF: PASS with IP 31.220.31.138 Learn more DKIM: 'FAIL' with domain theopgate.com Learn more DMARC: 'PASS' Learn more I don't know why, and this is the DNS record for my domain enter image description here I use webuzo control panel Hostinger My domain

theopgate.com

1

There are 1 best solutions below

3
Pim On

DKIM cannot be properly checked based on the DNS records alone, for example in the case of a configuration error or selector/key mismatch in the mailserver DKIM implementation. What you could do is send an email from a mailbox on your own domain to [email protected]. You will get back a reply in which you can see more details about DKIM selector used and signature verification. That might help you to track down the DKIM failure that Google reports.

See https://mxtoolbox.com/deliverability for more details about this check.

Edit: Saw there is some whitespace in the public key inside the TXT record. I'm not sure if this is explicitly allowed or forbidden according to the spec, but it might be best avoided altogether. whitespace in TXT record