HELP: Forced reseting Quota for users?

Discussion in 'General' started by edge, Mar 5, 2007.

  1. edge

    edge Active Member Moderator

    One of my users is having a problem receiving email at the moment.
    Email is bounced back to sender with the following message
    Code:
    <[email protected]> (expanded from <[email protected]>): can't create
        user output file. Command output: ==================== QUOTA: 26214400
        INBOXSIZE: 20270 MAXMSG:    26194130 /bin/cat: write error: Disk quota
        exceeded procmail: Program failure (1) of
        "/home/admispconfig/ispconfig/tools/clamav/bin/clamassassin" procmail:
        Rescue of unfiltered data succeeded [29372] warn: config: configuration
        file
    
    
    /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/20_porn.cf"
        requires version 3.001007 of SpamAssassin, but this is code version
        3.001008. Maybe you need to use the -C switch, or remove the old config
        files? Skipping this file at
    
    
    /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.8.4/Mail/Sp
    amAssassin/Conf/Parser.pm
        line 345. procmail: Quota exceeded while writing "/var/mail/web22_bas"
    
    The crazy thing is the "INBOXSIZE: 20270 MAXMSG: 26194130" part!
    Other users on that domain do not have a problem! It's only web22_bas who has this!

    Anyway. I've now set the domain to 10GB (Space MB), and would like to get the "Quota exceeded" problem fixed right away!

    Is there a command that I can run to start using the new (Space MB / Quota)?

    Or.. Do I need to do something else? I really need to get the web22_bas going again a.s.a.p!

    Some more info:

    repquota -a
    Code:
    *** Report for user quotas on device /dev/sda1
    Block grace time: 7days; Inode grace time: 7days
                            Block limits                File limits
    User            used    soft    hard  grace    used  soft  hard  grace
    ----------------------------------------------------------------------
    
    web22_bas +-    6140    5120    6144  6days      21     0     0
    
    quota web22_bas
    Code:
    Disk quotas for user web22_bas (uid 10039):
         Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
          /dev/sda1    6140*   5120    6144   6days      21       0       0
    
    du -h --max-depth=1 /var/www/web22/log
    Code:
    13M     /var/www/web22/log/2006
    8.8M    /var/www/web22/log/2007
    23M     /var/www/web22/log
    
    find /* -user web22_bas
    Code:
    find: /proc/3481/task: No such file or directory
    find: /proc/3483/task: No such file or directory
    find: /proc/3485/task: No such file or directory
    find: /proc/3497/task/3497/fd/4: No such file or directory
    /tmp/clamav-24465acfba690eb49a98090fe5bd3f70
    /tmp/clamav-24465acfba690eb49a98090fe5bd3f70/COPYING
    /tmp/clamav-24465acfba690eb49a98090fe5bd3f70/main.db
    /tmp/clamav-24465acfba690eb49a98090fe5bd3f70/main.hdb
    /tmp/clamav-24465acfba690eb49a98090fe5bd3f70/main.ndb
    /tmp/clamav-1d03d1f461af0bde85a34f126a131995
    /tmp/clamav-8347042fe600026f8eddb946364dda48
    /tmp/clamav-8347042fe600026f8eddb946364dda48/COPYING
    /tmp/clamav-c7b86e7471e5ab3cf97f157433f258ff
    /tmp/clamav-c7b86e7471e5ab3cf97f157433f258ff/COPYING
    /tmp/clamav-6d162a217546a84d66378e6efbbd731e
    /tmp/clamav-6d162a217546a84d66378e6efbbd731e/COPYING
    /var/mail/web22_bas
    /var/www/web22/user/web22_bas
    /var/www/web22/user/web22_bas/web
    /var/www/web22/user/web22_bas/web/index.html
    /var/www/web22/user/web22_bas/.forward
    /var/www/web22/user/web22_bas/.spamassassin
    /var/www/web22/user/web22_bas/.spamassassin/auto-whitelist
    /var/www/web22/user/web22_bas/.spamassassin/bayes_toks
    /var/www/web22/user/web22_bas/.spamassassin/bayes_seen
    host:/var/www/web22/user/web22_bas#
    
     
    Last edited: Mar 5, 2007
  2. martinfst

    martinfst Member Moderator

    You can delete without any problem the files in /tmp.

    I have /tmp in a seperate filesystem without quota management, so temp files don't count for user quota.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    ls -lah /var/mail/web22_bas
     
  4. edge

    edge Active Member Moderator

    sure...

    ls -lah /var/mail/web22_bas
    Code:
    -rw-------  1 web22_bas mail 552 2007-03-05 12:42 /var/mail/web22_bas
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Hi,

    the quota of the user web2_bas is currently set to 5MB and not 10 GB. Please set the disk quota of this user to a higher value to fix the problem.

    Till
     
  6. edge

    edge Active Member Moderator

    Hmm I see now.. I think the user did set this himself.
    I've now set it to -1 (for now)

    Will this start working right away, or do I need to wait for some time?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    You will have to wait approx 1 minute. You can run:

    repquota -avug | grep web2_bas

    to see if the quota has changed.
     
  8. edge

    edge Active Member Moderator

    Yes.. It looks like it's working now

    repquota -avug | grep web22_bas
    Code:
    web22_bas --    6140       0       0             21     0     0
    
    Thank you for your help (again)
     
    Last edited: Mar 5, 2007

Share This Page