Syntax error in Quota?

Discussion in 'Installation/Configuration' started by st2xo, Feb 13, 2006.

  1. st2xo

    st2xo New Member

    if a mail arrives for a user who´s web size is out of quota (Maildir quota is -1) the mail will be defered and send back to sender as follows:

    Code:
    This is the Postfix program at host domain.tld.
    
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    
    For further assistance, please send mail to <postmaster>
    
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
    
    			The Postfix program
    
    <web21_test@domain.tld> (expanded from <test@recepient.tld>): can't
        create user output file. [COLOR="Red"]Command output: /bin/sh: let: HD_QUOTA=*1024:
        syntax error: operand expected (error token is "*1024") /bin/sh: line 1: [:
        !=: unary operator expected procmail: Quota exceeded while writing[/COLOR]
        "/home/www/web21/user/web21_test/Maildir/tmp/1139819195.25785_1.domain.tld"
        procmail: Quota exceeded while writing "/var/spool/mail/web21_test"
    
    Reporting-MTA: dns; domain.tld
    X-Postfix-Queue-ID: 968D5C30183
    X-Postfix-Sender: rfc822; sender@domain.tld
    Arrival-Date: Mon, 13 Feb 2006 09:26:35 +0100 (CET)
    
    Final-Recipient: rfc822; web21_test@domain.tld
    Original-Recipient: rfc822; test@recepient.tld
    Action: failed
    Status: 5.0.0
    [COLOR="Red"]Diagnostic-Code: X-Postfix; can't create user output file. Command output:
        /bin/sh: let: HD_QUOTA=*1024: syntax error: operand expected (error token
        is "*1024") [/COLOR]/bin/sh: line 1: [: !=: unary operator expected procmail: Quota
        exceeded while writing
        "/home/www/web21/user/web21_test/Maildir/tmp/1139819195.25785_1.domain.tld"
        procmail: Quota exceeded while writing "/var/spool/mail/web21_test"
    the same in /var/log/mail

    Code:
    Feb 13 10:44:50 linux postfix/local[28430]: 
    75355C30183: to=<web21_mail@domain.tld>, 
    orig_to=<webmaster@recepient.tld>, 
    relay=local, delay=1, status=bounced (can't create user output file. 
    Command output: /bin/sh: let: [COLOR="Red"]HD_QUOTA=*1024:
    syntax error: operand expected (error token is "*1024") [/COLOR]
    /bin/sh: line 1: [: !=: unary operator expected )
    If the quota is increased so that the mail will be accepted all works fine. If the quota is decreased again, the error occurs again. I have tested this in different ways, with/without responders, Web-Quota -1, 1, xy and so on ...

    according to
    http://www.howtoforge.com/forums/showthread.php?t=840#4
    I think to understand what happens - but I don´t know how to fix that.

    Can anybody give me a hint where I can put in this missing factor for quota calculation? Many thanks in advance!

    (system: Suse10-Perfect-Setup-System with Maildir)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Hi,

    the quota variable is not missing. If you use maildir, the complete quota script must be disabled. This is already fixed in the next ISPConfig release.

    If you want to fix it in your installation, you must change the line

    {QUOTA}

    to:

    # {QUOTA}

    in the file /root/ispconfig/isp/conf/procmailrc.master

    This will affect all new accounts. If you want to change existing accounts, you will have to edite the .procmailrc file in the home directories of the users or cahnge any setting of the user in ISPCOnfig and save the user.
     
  3. st2xo

    st2xo New Member

    Till, thank you very much! I read this in some other threads but thought that isn´t related to my problem.

    Falko wrote a tipp how to change existing accounts also
    http://www.howtoforge.com/forums/showthread.php?t=840&page=2#14

    I think I can go now to launch the first real sites and users. You let this week starting very well :)
     

Share This Page