I'm looking to generate a flatfile list of all users and aliases on the system for use at the gateway MX-- later in time I'll query LDAP directly, but right now that's unworkable for a couple reasons.

There a zmprov command or an LDAP query to do this?