• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue opendkim test keeps saying "1 fail" when checking key pair, please help!

zoldos

Basic Pleskian
After spending almost 2 days getting opendkim to work, I finally did, and the service is running without error. However, when I run "sudo -u opendkim opendkim-testkey -vvvv" in console, I get the below error. I'm 99% sure my config is correct. Does anyone have any ideas? *Domain name changed to generic for privacy reasons:

Code:
opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: record 0 for 'mail._domainkey.site.net' retrieved
opendkim-testkey: checking key 'mail._domainkey.site.net'
opendkim-testkey: key mail._domainkey.site.net: keys do not match
opendkim-testkey: key mail._domainkey.site.net not secure
opendkim-testkey: 1 key checked; 0 pass, 1 fail

Thanks!
 
Have you checked your private key location?
 
Okay, I worked on my config removing KeyTable and SigningTable and moving my private key to /etc/opendkim Now when I run this in console:

Code:
opendkim-testkey -d site.net -k /etc/opendkim/default.private -s default

I get:

Code:
condor:~# opendkim-testkey: No key

Any ideas?
 
Back
Top