Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've just set up OpenDKIM on my CentOS 6 server but keep getting the following warning each time I start the service:

Cannot determine host's domain name, so skipping default key generation.

I have my server's hostname and domain name set up in /etc/sysconfig/network as well as in /etc/hosts but yet it seems that OpenDKIM fails to pick up that info.

Any ideas how I can fix this?

share|improve this question
add comment

1 Answer

Check you /etc/hosts, must like this:   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 myhost.com
share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.