Message not signed with DKIM

No matter what I do, mail-tester never reports that my message is DKIM signed. And my mails don’t deliver to Gmail at all. I’ve even deleted and re-added the website but still no joy. Someone help me please.

Where do you manage your DNS?

I manage on Cyberpanel. And I think my settings are correct according to Mxtoolbox. I just don’t know why my emails are not DKIM signed.

Here’s my Cyberpanel configuration, please.

How does /etc/postfix/ looks like and opendkim is running?

These are screenshots of cat /etc/postfix/

I also think Opendkim is running

Give me output of these 2 (frist go to cd /etc/opendkim)

cat KeyTable
cat SigningTable

then what do you have in ls -la /etc/opendkim/keys

Also output of opendkim -n

Output of ls -la /etc/opendkim/keys

Output of cat SigningTable

Output of cat KeyTable

opendkim -n gave no output

Go on command line and run

journalctl -f | grep opendkim

Then send email from snappy mail, do you get an output like

root@cyberpanel:~# journalctl -f | grep dkim
Jan 10 10:49:17 opendkim[579]: 3447740AAD: DKIM-Signature field added (s=default,


Here’s what I got.

It means messages are not being signed…

What if you do same procedure with

journalctl -f | grep postfix

What I got

I see, it seems that connection to opendkim milter is being refused as you can see on second line.

what is content of /etc/opendkim.conf ?

Also check if any process using port 8891 ?

how can I check any process using 8891?

content of /etc/opendkim.conf

Syslog			yes
SyslogSuccess		yes

Canonicalization	relaxed/simple
OversignHeaders		From

UserID			opendkim
UMask			007

Socket  inet:8891@localhost

PidFile			/run/opendkim/

TrustAnchorFile		/usr/share/dns/root.key

Mode	sv
Canonicalization	relaxed/simple
KeyTable	refile:/etc/opendkim/KeyTable
SigningTable	refile:/etc/opendkim/SigningTable
ExternalIgnoreList	refile:/etc/opendkim/TrustedHosts
InternalHosts	refile:/etc/opendkim/TrustedHosts

Make the file look like this then restart opendkim systemctl restart opendkim also restart postfix, then check.

I did as you asked me to, but somehow email delivered to Gmail spam, mail-tester also reported DKIM isn’t signed yet, also I get this on my terminal

You can contact our support here. Looks like your OpenDKIM service is not working as it should.

Okay. Thanks