3

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?

masegaloeh
  • 17,978
  • 9
  • 56
  • 104
Zishan Neno
  • 505
  • 1
  • 6
  • 14

2 Answers2

2

Check you /etc/hosts, must like this:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

93.170.131.123 myhost.com
-1

After setting you /etc/hosts a restart is required.

techraf
  • 4,163
  • 8
  • 27
  • 44
alizeyn
  • 101
  • 3