• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question DKIM Setup errors

Richard Proctor

New Pleskian
I have just tried to setup dkim on one of my servers.

Looking at the mail log I now see:

Nov 8 09:43:03 wimbornefolk dk_sign[24943]: DKIM error: DKIM Feed: Syntax error
Nov 8 09:43:03 wimbornefolk journal: plesk sendmail[24940]: Error during 'dd51-domainkeys' handler

What might be wrong and where?

Plesk Onyx 17.0.17
OS: ‪CentOS Linux 7.4.1708
 
I installed the recommend fix, restarted but the error is still there.

Nov 8 10:27:45 wimbornefolk dk_sign[1727]: Starting the dk_sign filter...
Nov 8 10:27:45 wimbornefolk dk_sign[1727]: DKIM error: DKIM Feed: Syntax error
Nov 8 10:27:45 wimbornefolk journal: plesk sendmail[1724]: Error during 'dd51-domainkeys' handler
 
Have you checked that permissions are correct with

# stat /usr/local/psa/handlers/hooks/dk_check /usr/local/psa/handlers/hooks/dk_sign /usr/lib64/plesk-9.0/postfix-local | egrep "File|Uid"

?
 
File: ‘/usr/local/psa/handlers/hooks/dk_check’
Access: (0750/-rwxr-x---) Uid: ( 0/ root) Gid: ( 31/ popuser)
File: ‘/usr/local/psa/handlers/hooks/dk_sign’
Access: (0750/-rwxr-x---) Uid: ( 0/ root) Gid: ( 31/ popuser)
File: ‘/usr/lib64/plesk-9.0/postfix-local’
Access: (0755/-rwxr-xr-x) Uid: ( 30/ popuser) Gid: ( 31/ popuser)
 
Try to re-enable DKIM. Also

# plesk repair mail

may be useful.
 
Disabled then re-enabled dkim on that domain (but not server wise) it is only active domain on the server.

plesk repair mail :

Repairing the mail server configuration

Reconfigure all domains and mailboxes? [Y/n] y
Reconfiguring all domains and mailboxes ......................... [OK]

Error messages: 0; Warnings: 0; Errors resolved: 0

New test email same result...
 
I can only recommend creating a request to support team to do the in-depth investigation to find the reason and to fix it. Please create a ticket to support at Plesk Help Center
 
Back
Top