This is a rather slow and heavy thing to do if you have thousands of users on your server, I think it is better to do parse the log files via a cron job to see the last access.

Franky Van Liedekerke wrote:

There is no such command, but it's easy to emulate:

do a find on your popserver for all directories for which the oldest
file in the subdir "new" is older than 6 months, or if that subdir is
empty: where the modify timestamp of new and cur is older than 6
months (best to do in perl). This will give you a list of maildirs that
you can map to accounts to delete. I have such a script lying around
somewhere but I can't dig it up right now ...

Franky

On Mon, 16 Jun 2003 04:10:49 -0500 (CDT)
[EMAIL PROTECTED] wrote:



Hi all, is therea way to delete accounts older than X date?

something like the vdelolduser command on vpopmail?

what i want is to delete all the accounts that have not been used fore
more than 6 months for example.


regards.
















-- Taymour A El Erian System Division Manager CNA, MCSE, CCNA, LPIC T.E. Data E-mail: [EMAIL PROTECTED] Web: www.tedata.net Tel: +(202)-4166600 Ext: 1101





Reply via email to