HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Syntax error in Quota? (http://www.howtoforge.com/forums/showthread.php?t=2514)

st2xo 13th February 2006 12:03

Syntax error in Quota?
 
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. 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

    "/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
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")
/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: HD_QUOTA=*1024:
syntax error: operand expected (error token is "*1024")

/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)

till 13th February 2006 12:17

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.

st2xo 13th February 2006 12:30

Quote:

Originally Posted by till
in the file /root/ispconfig/isp/conf/procmailrc.master

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/sho...=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 :)


All times are GMT +2. The time now is 21:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.