I am needing to find out the simplest way to simply get a list of all main domains and their associated alias domains that accept email on a cpanel server. Unfortunately I cant just scrape the /etc/localdomains list as it doesnt tell me whats aliases to what and it also includes every single subdomain even if no email accounts are even associated with it. I am going to be scripting this up to sync with our external anti-spam gateways. Suggestions?
Thanks,
Mark
Thanks,
Mark