Here is a script I created to delete aliased email accounts for you when deleting an aliased domain.
It searches the mySQL database for email accounts, then queries the LDAP using zmprov to delete these aliased emails for you. It's slow (4 or 5 hrs for 1800+ users to be checked/deleted) but far faster than doing it by hand. and it only left two accounts for me to have to delete myself. If you find this happens to you, you can run " zmprov sa mail=*@domain.tld " to get a list of aliased accounts stilll on the server. I'll be working on a new script for this soon that implements this option instead of going through the database and pulling accounts. This should clear up some errors regarding non-existant accounts that may be thrown through the deletion process.
I'm still working on getting this posted to the wiki but it doesn't like non image files being uploaded and seems to destroy formatting when i copy and paste. |