Export Contact E-Mails

Is there a way to (programmatically or otherwise) export all contact e-mails of all domains/servers of a Virtualmin installation? I would like to regularly write an HTML newsletter with an external newsletter tool to my hosting clients. I know about the "email server owners" feature, but this is not sufficient for a professional looking newsletter.

Status: 
Closed (fixed)

Comments

The best way to do this would be programatically, using the Virtualmin command-line API.

The following would output all email addresses :

virtualmin list-domains --simple-multiline | grep "Contact email" | awk '{ print $3 }' | sort | uniq

Awesome, thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.