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.
How does /etc/postfix/main.cf
looks like and 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 cyberpanel.net opendkim[579]: 3447740AAD: DKIM-Signature field added (s=default, d=wpmautic.net)
?
Here’s what I got.
It means messages are not being signed…
What if you do same procedure with
journalctl -f | grep postfix
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?
Syslog yes
SyslogSuccess yes
Canonicalization relaxed/simple
OversignHeaders From
UserID opendkim
UMask 007
Socket inet:8891@localhost
PidFile /run/opendkim/opendkim.pid
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