Hi Rafael
If you are copying files directly into peoples maildirs, then for sure the quota counts will be out of whack. (The quotas counts are generally updated during message delivery by the vdelivermail program)
You can leave the quotas files alone alone and over time they should sync back to the correct counts. This might confuse your users though in the short term (as you have already seen)...
Alternatively you can delete all the user's quota files and then next time each user receives some mail, their quota file will be recreated with the correct value. (This might not be a bad option for you, because if you go into squirrelmail for a user who has no quota file setup, then the quota plugin doesnt even display itself. As soon as the quota file is recreated then the quota display will magically appear again). Heres the command we have used in the past to zap all the quota files :
   find /home/vpopmail/domains -name 'maildirsize' | xargs -i --verbose rm '{}' 2>&1
When we migrated a couple of years back from our old Windows-based mail server to our vpopmail server, we pulled all existing mail across by using a script that ran the "fetchmail" program for each user. This program retrieved the existing mail via POP3 and inserted into the Linux mailbox for delivery via SMTP. This worked pretty well for us, and also prevented any problems with miscounted quotas etc.
Hope that helps
----- Original Message -----
Sent: Monday, June 16, 2003 11:54 AM
Subject: [vchkpw] Help with

Hi All,
I've currently setup a webmail server using redhat+qmail+apache+courier-imap+php+vpopmail+squirrelmail through the help of Michael Bowe's Webmail Howto (thanks mike!). Everything is working fine as well as the squirrelmail plugins that I have installed. The only problem I have right now is this ,, I'm supposed to migrate all our old mail server's emails (w/ attachments) coming from our old mail server which uses visualmail (emails are stored in mySQL DB) and I have created a perl script to do is. The script actually recreates all emails based on a given template using all necessary mail headers stored on the mySQL DB and moves the recreated emails to each users mailbox under vpopmail's home directory. The problem is that after moving the emails to each users mailbox, I noticed that the quota_plugin (quota usage bar) no longer reflects the correct quota usage. So in the event that a user deletes his/her emails, the quota usage bar shows a negative value. Is there anything I need to do in order for the quota plugin to detect the emails? Can I reset the quota plugin so that It will be back to zero usage if I deleted all the emails?
Thanks in advance,

Reply via email to