Configuring Open DKIM

Hello Community:

I'm trying to setup the DKIM using the guide below


My linux distro is Fedora Core 27.

I followed instructions in the document and things were fine upto
the testing command

opendkim-testkey -d -s 201904
opendkim-testkey: /etc/opendkim/keys/default.private: stat(): No such file or directory

I've been trying to debug this for sometime now and went through the entire process twice but no luck.

I'd appreciate any help.

Thanks in Advance.


1 Reply

Um looks like it's trying to open - and not finding - a file called /etc/opendkim/keys/default.private

That's all I can tell from that error message.

I'd check where your domain key files are supposed to be stored, under what names, if they're there.

Looking at man opendkim-test there is a -k parameter for specifying the private key file name.

So you could try:

opendkim-testkey -d -s 201904 -k my_domain_key_file.private

where my_domain_key_file.private is your actual *.private key file.

PS - my opendkim is set up a little differently, without using a domain / key mapping file (which is sufficient if you only have a single domain / key). A little easier to set up.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct