My server is running Ubuntu 18 and I installed a fresh virtualmin on it. I then went on to enable DKIM but there was an error during installation. i fixed those and installed opendkim manually through SSH. Then I enabled outgoing signing and it worked fine. The problem is outgoing mails are not being signed with DKIM. In the /var/log/mail.log I have several lines of
warning: connect to Milter service inet:localhost:8891: Connection refused
I’ve searched for this error and there are many posts out there but for me they either didn’t work or I couldn’t understand them. Could someone help me figure out what the issue is here and how can we fix this?
No. I guess the port is not open then? Should I open the port or change something in virtualmin? I have not made any manual firewall changes. Its all been setup by virtualmin.
Yes, you’ll need to open the port. Either manually or thru Webmin - Networking - Linux Firewall. Doing it manually will show up in the GUI and vice versa. Whatever suits.
I’m not sure enabling DKIM opens the relevant ports automatically. It may do - but in your case having had an error may have prevented that (if that does happen).
I’ve ended up in a new problem. I thought I’d disable DKIM signing and enable again to hopefully fix configuration issues. In Email Settings > DKIM, I turned Signing of outgoing emails to “No”. It worked. Then I tried to enable it again with option “Yes”. It wouldn’t turn back on. It doesn’t give any errors and says DKIM filter enabled but when I open the previous page again, the option is still set to “No”. Am I gonna have to do a fresh installation?