DKIM fail in DMARC report

ladass

New Member
Mar 17, 2025
4
2
3
Hi everybody,

I would like to ask, how to properly set DKIM on PMG. The problem description: Few weeks ago I set DMARC record for our domain and set rua parameters to get aggregate reports about functionality. Microsoft and Google servers send back "fail" for DKIM. I tried to search for some information and discovered that our PMG has unusual DKIM record. When I click the View DNS Record button in PMG GUI, I can see:
mail.ourdomain.com._domainkey IN TXT ( "v=DKIM1; h=sha256; k=rsa; "
"p=MIIBIjANBgkqh ..... S"

"L79Nj3vzkkmQ ..... B" ) ; ----- DKIM key mail.ourdomain.com

including empty raw in the middle. But when I look at other DKIM records, they have no brackets () and second key. I tried to remove middle empty raw (it is a TAB) in TXT DNS record, but it did not helped.

Can somebody give me advice, how can I correct our PMG DKIM record, please? I predict it must corespond to private key in /etc/pmg/dkim/mail.ourdomain.com.private or generate new, correct one? At PMG documentation is nothing about generating new one.
 
mail.ourdomain.com._domainkey IN TXT ( "v=DKIM1; h=sha256; k=rsa; "
"p=MIIBIjANBgkqh ..... S"

"L79Nj3vzkkmQ ..... B" ) ; ----- DKIM key mail.ourdomain.com
Hi, @ladass
I don't know how the PMG GUI presents DNS records but the form shown in your post is unusual when it comes to DNS generally.
Usually this has the form:

<selector>._domainkey.ourdomain.com. IN TXT ...

I mean the order: first is the selector., then the string _domainkey. , then the domain.