DKIM Postfix configuration- opendkim-testkey returns unknown hash error
opendkim-testkey -vvv
command and receive error:
opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: checking key '201702._domainkey.example.co'
opendkim-testkey: unknown hash 'rsa-sha256'
Current TXT record on DNS looks like so:````
v=DKIM1; h=rsa-sha256; k=rsa; s=email;kjlksjjlsjjdls….
2\. Here is what I have done that seems to have a positive effect on the situation.
If I edit and remove````
h=rsa-sha256
from TXT record on my DNS to look like following:````
v=DKIM1; k=rsa; s=email;kjlksjjlsjjdls….
When I run opendkim-testkey -vvv this time around key seem to be OK but not secure.
opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: checking key '201702._domainkey.example.co'
opendkim-testkey: key not secure
opendkim-testkey: key OK
````
What do I need to do to correct the unknown hash error? Am I missing something on my server configurations that is causing the error?
3 Replies
this script
here is the: opendkim.conf
I re-read the linode instructions again and it seems that in their implementation, they simply omitted the "h=rsa-sha256" section.
They also seems to indicate that moving forward after the "key not secure message" is fine. :-/
Since then I've been running with the key as with the "h=rsa-sha256" flag and DKIM test and checks came back positive.
Solution suggest by @alexfornuto link here at
Thanks again!!!