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?