You’ve configured opendkim for your smtp server but when clients use your smtp servers emails are not signed.
By default opendkim trust only local host, you have to specified all the host to trust.
Uncomment the following line in opendkim.conf:
# InternalHosts refile:/etc/opendkim/TrustedHosts
And inside this file specify the hosts you trust:
127.0.0.1 ::1 localhost <server_ip> hostname.example1.com example1.com hostname.example2.com example2.com <CIDR> # all kind of CIDR for instance: 172.30.3.0/24 ...
Reload opendkim service
systemctl reload opendkim
It is important to note that the same mechanism is used in postfix via the mynetworks parameter in main.cf (for instance: mynetworks = 10.0.3.0/24 10.0.4.0/24).
Leave a Reply