I'm just leaving this here so it may help other people. I've been screwing with this for several hours to get it working.
Originally here is what I did to get the keys
Google would return something like this:
The fix was to re-generate the keys. I cannot find the public key on the system anywhere, but you can tell that the private key gets re-written by looking at /etc/pmg/dkim/pmg2021.private
I'd like to use something like below to verify that the keys are right if anyone can point in the correct direction (verify the fingerprint)
Basically:
Also Note: Both values are required for the DKIM record. I'm not used to seeing it this way, and that caused problems as well.
The text record ends up looking something like:
Selector
Value
Validate with mxtoolbox dkim checker
Test Google again
Originally here is what I did to get the keys
- enable DKIM
- create selector (pmg2021)
- tick the box to sign outgoing mail.
- View the DNS
- change DNS records
- add a domain to sign.
Google would return something like this:
Code:
ARC-Authentication-Results: i=1; mx.google.com;
dkim=fail header.i=@example.com header.s=pmg2021 header.b=PRuLiID1;
The fix was to re-generate the keys. I cannot find the public key on the system anywhere, but you can tell that the private key gets re-written by looking at /etc/pmg/dkim/pmg2021.private
I'd like to use something like below to verify that the keys are right if anyone can point in the correct direction (verify the fingerprint)
Code:
ssh-keygen -l -f /etc/pmg/dkim/pmg2021.private
ssh-keygen -l -f /etc/pmg/PUBLIC_KEY_WHERE-EVER-YOU-ARE
Basically:
- edit selector
- leave it as PMG2021 with key size 2048
- tick the overwrite existing file box
- click the view DNS Record button
Also Note: Both values are required for the DKIM record. I'm not used to seeing it this way, and that caused problems as well.
The text record ends up looking something like:
Selector
Code:
pmg2021._domainkey
Code:
"v=DKIM1; h=sha256; k=rsa; "p=first_long_key_from_pmg" "second_shorter_key_from_pmg"
Validate with mxtoolbox dkim checker
Test Google again
Code:
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@example.com header.s=pmg2021 header.b=YxEWmdGn;