HELP: Forced reseting Quota for users?

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

  1. edge

    edge HowtoForge Supporter

    One of my users is having a problem receiving email at the moment.
    Email is bounced back to sender with the following message
    <web22_bas@host.domain.tld> (expanded from <bas@user-domain.tld>): 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
        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
        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
    *** 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
    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
    13M     /var/www/web22/log/2006
    8.8M    /var/www/web22/log/2007
    23M     /var/www/web22/log
    find /* -user web22_bas
    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
    Last edited: Mar 5, 2007
  2. martinfst

    martinfst HowtoForge Supporter

    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

    Please post the output of:

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

    edge HowtoForge Supporter


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

    till Super Moderator


    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.

  6. edge

    edge HowtoForge Supporter

    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

    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 HowtoForge Supporter

    Yes.. It looks like it's working now

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

Share This Page