Tom Collins wrote:
> On Feb 17, 2005, at 6:07 AM, Brad Pinkston wrote:
>> I tried to reopen this old thread.  Quick question about creating
>> accounts with SQL queries.  If you can create accounts using a PHP,
>> PERL interface by using SQL queries, then it would be assumed that
>> you will also remove accounts using this method.  By removing a
>> user's record will vpopmail somehow automagically remove the maildir
>> for the user at some time, or does any custom interface need to take
>> into account the need to clean up the filesystem?
> 
> It would take additional work.
> 
> You could create another table of users scheduled for deletion, and
> have a cron job running as root that queried that table hourly to
> delete the mail for that user.  Or, just use the existing table and
> set the users flags to a special value (one that bounces mail,
> doesn't allow POP/IMAP/SMTP/Webmail access, etc.).  Have your cron
> job search for those records, delete the files for the user and then
> delete the record.      

Or just have your app exec ~vpopmail/bin/vdeluser


Reply via email to