Procmail and over quota

Discussion in 'Server Operation' started by MGStudioWEB, May 19, 2011.

  1. MGStudioWEB

    MGStudioWEB Member

    Hi,

    i've a mail server with postfix and procmail, all work fine but if user is over quota the serder receive this message:

    Code:
    can't create user output file. Command output: procmail: Couldn't create
    "/var/mail/test.domain.com"
    
    The message should be like this:

    Code:
    Account [email protected] is over quota...
    
    The Maildir of user is wrong too (it's in /var/spool/vmail/domain.com/test/Maildir/ and not /var/mail), this is my procmailrc:
    Code:
    # Use maildir-style mailbox in user's home directory
    DEFAULT=$HOME/Maildir/
    
    #LOG
    LOGFILE=$HOME/procmail.log
    VERBOSE=no
    LOG="
    "
    
    :0fw
    | /usr/local/bin/clamassassin
    
    :0:
    * ^X-Virus-Status: Yes
    /var/spool/quarantine
    
    
    :0
    * ^X-Attachments:.*name=".*\.(pif|scr|bat|vbs|vba|lnk|com)
    /var/spool/mail/virus
    
    :0:
    * ^X-Spam-Status: Yes
    $DEFAULT.Junk/
    
    
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the $HOME directory of your user? Is it /var/mail/test.domain.com/ or /var/spool/vmail/domain.com/test/?
     
  3. MGStudioWEB

    MGStudioWEB Member

    /var/spool/vmail/domain.com/test/
     
  4. MGStudioWEB

    MGStudioWEB Member

    Hi,

    I still have this problem, can someone help me?
    Can i set a custom message for the over quota error?
    There is a script that controls the size of the boxes according to the quota setting send an email that says that the box is almost full?

    Thanks in advance
     
  5. MGStudioWEB

    MGStudioWEB Member

    Up...........
     

Share This Page