In the process of setting up an external mailserver to process email before delivering to my DA-server, I'm looking for a way to populate a list of all existing addresses that the mailserver should accept mail for.
Is there an easy way of getting a list of *all* email-addresses that are valid on a given DirectAdmin system?
Things to note:
* Catchall addresses means all addresses are valid
* Majordomo addresses are not really stored anywhere (?)
* Alias-domains have valid email-addresses too
* Probably more
I was planning to use the API to do something like this:
* Fetch all domains (which there seems to be no API-call for)
* Fetch all email-options/settings for each domain
Instead, it looks like I have to do this:
* Recursively fetch all users created by other users
* Fetch all domains owned by the list of users I now have
* Fetch all email-options/settings for each domain
Am I way off here, or is this the way to do it?
Thanks for any pointers or ideas.
Is there an easy way of getting a list of *all* email-addresses that are valid on a given DirectAdmin system?
Things to note:
* Catchall addresses means all addresses are valid
* Majordomo addresses are not really stored anywhere (?)
* Alias-domains have valid email-addresses too
* Probably more
I was planning to use the API to do something like this:
* Fetch all domains (which there seems to be no API-call for)
* Fetch all email-options/settings for each domain
Instead, it looks like I have to do this:
* Recursively fetch all users created by other users
* Fetch all domains owned by the list of users I now have
* Fetch all email-options/settings for each domain
Am I way off here, or is this the way to do it?
Thanks for any pointers or ideas.