Introduction
This guide documents the steps I found necessary to get DKIM signing working correctly on a Virtualmin server running Postfix with multiple virtual domains.
The goal was to allow websites hosted on Virtualmin to send authenticated email using their own domain names.
A common assumption is that if a domain is only sending email and does not need mailboxes, then mail does not need to be enabled.
During testing, I found that Virtualmin needed the domain to be recognised as a mail-enabled domain before the DKIM signing configuration was generated correctly.
This applies even when the domain is only being used for outbound email.