API function to add custom dkim domains

As an addition to this issue: https://www.virtualmin.com/node/68967

We have DNS managed somewhere else (with fallback on different locations etc), so we cannot use the default integration. What I'm looking for is a way to add custom domains through the api.

I'm now manually putting them in through "Email Settings" -> "DomainKeys Identified Mail" -> "Domains to sign for" (technical name: extra).

It would be nice if there would be an API for that.

Fixed (pending)
Virtualmin version: 
Webmin version: 


I've just implemented this API for inclusion in the next release. You'll be able to run :

virtualmin set-dkim --add-extra example.com

Status: Active ยป Fixed (pending)

Just an additional question in regards to this, is the remove alternative present as well?

For example?

virtualmin set-dkim --remove-extra example.com