Repeat until there are no directories with free entries except the last.
1) Scan the directory for all .qmail-alias and user .qmail files, looking for Maildir delivery pathnames that need to be updated (including for vacation messages?)
2) Scan the directory for ezmlm lists that need to have pathnames updated.
3) What about autoresponders? Would those break?
4) If using valiases, look for any maildir deliveries and update pathnames.
I personally would be very hesitant to relocate a domain's directory to a new hash point.
Here's a better possible solution. Write a program that runs from cron once every 5 minutes (unless you forsee adding a huge amount of domains in a 5 minute period, in which case it may need to be every minute). Or, it can stay running and just sleep between checks.
This program caches the modification time of .dir-control. When it runs, it checks to see if .dir-control has been modified (by vpopmail). If so, it rescans the domain directory to find the first slot to put a new domain and updates .dir-control appropriately.
Tom Collins - [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: sniffter.com