General fix: [SOLUTION]
No matter your domain is hosted on cloudflare, godaddy etc. this will work on all.
Quick fix (TXT record default._domainkey
and set TTL of default._domainkey
to 600 seconds or less.)
default._domainkey
is a DKIM TXT record value.
CyberPanel shows:
default._domainkey.domain.com
"v=DKIM1; h=sha256; k=rsa; " "p=CIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArp5UWF8v6qt25/GZIVc7ZbJg4IyiCNLqB1Y5zguBCcl5/I65mGMJaWVsN88a4vS5pMkSVQD+zZDylb5QewVWLYY27uJb2XGo8iJ2b+OiB2Ruf3OrhiU7IanGerh58E+h5hTxHc/wigCJJ0UgLh00aDS42YY4klhzqunoa1Tt2bY2Z4+m8xTmzLk9ryEZMtXXxnN3Wm6aBDMyCC" "NyutbF1ts25sjuRJZM12WFCNr1gQQ5JtR3XNgL1iP2hwMaQKbvayoNAuZpl6Fvosw4VCqcchYy+1zavm+G+WyoutUTkzcdu7CTC1G4iXSR51mD1hAqnmJJTyaksw+JzeNpIIoPYQIDAQAC"
Fixing:
Donβt remove all quotations (ββ)
Remove only 4 quotations.
e.g (Donβt remove any quotation inside p=)
v=DKIM1; h=sha256; k=rsa; p=CIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArp5UWF8v6qt25/GZIVc7ZbJg4IyiCNLqB1Y5zguBCcl5/I65mGMJaWVsN88a4vS5pMkSVQD+zZDylb5QewVWLYY27uJb2XGo8iJ2b+OiB2Ruf3OrhiU7IanGerh58E+h5hTxHc/wigCJJ0UgLh00aDS42YY4klhzqunoa1Tt2bY2Z4+m8xTmzLk9ryEZMtXXxnN3Wm6aBDMyCC" "NyutbF1ts25sjuRJZM12WFCNr1gQQ5JtR3XNgL1iP2hwMaQKbvayoNAuZpl6Fvosw4VCqcchYy+1zavm+G+WyoutUTkzcdu7CTC1G4iXSR51mD1hAqnmJJTyaksw+JzeNpIIoPYQIDAQAC
How to fix in details
remove quotation before v=DKIM1
remove quotation after k=rsa;
remove quotation before p=
remove last quotation.
Donβt remove any quotation inside p=
and then add that record in txt default._domainkey
by default TTL will be 1 Hour. ALERT!
change TTL of default._domainkey to 600 seconds or less.
and then test again mail with https://www.mail-tester.com/
and am sure this time the error fixed. If the error fixed then again change the TTL of default._domainkey to 1 Hour.
detailed article: https://hassam.me/dkim-signature-invalid/
link.