Though there is now the vdeloldusers program that comes with vpopmail to do just that now, but it does require that vpopmail is built with the --enable-auth-logging=y option for mysql.
Im using it in association with some php pages at the moment to delete users when the accounts are no longer needed. I just cron vdeloldusers to run every 15 minutes. Being able to access the information from the billing system though is a major benefit. Shane >Not to mention the benefits of being able to query this information for >use in other programs... For instance, we want to know when a user is >not using their mailbox so it can be tagged for deletion. With the >database backend, I can have a program on a completely >different machine >query the database, determine the last time the user used >their mailbox, >and tag the mailbox for deletion if needed.
