The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

E-mail Quotas Not Working

Discussion in 'E-mail Discussions' started by Jay, Oct 21, 2003.

  1. Jay

    Jay Member

    Joined:
    Aug 15, 2001
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    One of my clients has e-mail quotas setup for about 25 e-mails users, and apparently none of them are working. I have verified that even if the quota limit is reached, e-mails still get through fine to that address. Anything I can do to resolve that?

    Thanks for your help!
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    Dear Jay,

    Please try a shellscript like this one for setting quota:


    ----------------------------snap------------------
    #! /bin/bash
    NEWQUOTA=50000
    cd /var/imap/quota
    for i in $(find . -name \"user.*\"); do
    cp $i $i.bak
    echo $(head -1 $i) > $i
    echo $NEWQUOTA >> $i
    done
    ----------------------------snap------------------

    Please make sure that the path of the quota file is correct.

    I think this will solve your problem.

    Regards,
     
Loading...

Share This Page