For anyone that has the same problem, here is how I solved the warning. Still I am unable to send mail from my server to a specific endpoint, perhaps my IP is blocked I don’t know.
To fix the warning for the path using Ubuntu 18.10 I modified two files:
/etc/postfix/main.cf
smtpd_milters = inet:localhost:8892
non_smtpd_milters = inet:localhost:8892
/etc/opendkim.conf
Socket inet:8892@localhost
You’ll have to restart opendkim and postfix
sudo systemctl restart opendkim
sudo systemctl restart postfix
** How to Check if opendkim is running and on what port **
sudo lsof -i
This should show you a line like this:
opendkim 960 opendkim 3u IPv4 20033 0t0 TCP localhost:8892 (LISTEN)
I’ll post back if I ever find the answer to my problem, but at least now there are no errors or warnings in my log files. Thanks for all who attemtped to help me.