
4th February 2007, 20:00
|
|
Junior Member
|
|
Join Date: Feb 2007
Location: California, USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Daily Quota report empty
Hello,
I used Falko's "Virtual Users And Domains With Postfix, Courier And MySQL (+
SMTP-AUTH, Quota, SpamAssassin, ClamAV) howto on Debian, everything works nicely - great howto by the way - only the daily quota report looks a bit anemic every time:
====begin====
DAILY QUOTA REPORT:
----------------------------------------------
| % USAGE | ACCOUNT NAME |
----------------------------------------------
--
My Company
====end====
There are multiple virtual domains and users in the mysql database,
and the virtual_mailbox_base variable in main.cf is set to /home/vmail.
Thanks for any hints/pointers,
Daniel
|

5th February 2007, 13:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
Did you save the quota_notify script with Unix linebreaks?
Also make sure you produced no syntax error when you modified the script.
|

6th February 2007, 03:14
|
|
Junior Member
|
|
Join Date: Feb 2007
Location: California, USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks for your fast response, Falko!
I used 'wget' to download the file, and after I edited the variables at the top I issued the command 'chmod 755 quota_notify'. (I did the entire procedure a couple of times during troubleshooting.) I also couldn't find any syntax errors. Could it be that the quota patch for Postfix wasn't applied correctly by me? Is there a way to find out, and would it be possible to (re-)apply the patch?
Daniel
|

7th February 2007, 18:13
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
I think the script works independently from the Postfix quota patch.
Do you get any errors when you run
Code:
/usr/local/sbin/quota_notify
on the shell?
|

9th February 2007, 03:30
|
|
Junior Member
|
|
Join Date: Feb 2007
Location: California, USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
No errors...
debian:~#
debian:~# /usr/local/sbin/quota_notify
debian:~#
All I get is the (almost) empty Daily Quota Report email.
Daniel
|

10th February 2007, 20:08
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
To be honest I don't know what's wrong...
|

14th March 2007, 19:27
|
|
Junior Member
|
|
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
|
|
This is because the mailbox is nearly empty (integer percent is zero).
Edit "/usr/local/sbin/quota_notify" and change:
Code:
close(QF);
next if (! $used);
my $percent = int($used / $quota * 100);
$lusers{$user} = $percent unless not $percent;
by:
Code:
close(QF);
next if (! $used);
my $percent = int($used / $quota * 100);
$lusers{$user} = $percent;
and the report becomes:
Code:
DAILY QUOTA REPORT:
----------------------------------------------
| % USAGE | ACCOUNT NAME |
----------------------------------------------
| 0 | user@domain.com |
----------------------------------------------
|
|
The Following User Says Thank You to rafota For This Useful Post:
|
|

27th September 2007, 05:05
|
|
Junior Member
|
|
Join Date: Sep 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by rafota
This is because the mailbox is nearly empty (integer percent is zero).
Edit "/usr/local/sbin/quota_notify" and change:
Code:
close(QF);
next if (! $used);
my $percent = int($used / $quota * 100);
$lusers{$user} = $percent unless not $percent;
by:
Code:
close(QF);
next if (! $used);
my $percent = int($used / $quota * 100);
$lusers{$user} = $percent;
and the report becomes:
Code:
DAILY QUOTA REPORT:
----------------------------------------------
| % USAGE | ACCOUNT NAME |
----------------------------------------------
| 0 | user@domain.com |
----------------------------------------------
|
I' ve made this sujest chanche but still not work. As told, I execute in shell lines, I have no errors. And got a empty mail. My virtual home isn´t in /home/vmail. I made a separate partition to it. It's could be the problem ???
|

6th February 2009, 13:36
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
it doesnt work to me too...
my virtual_mailbox_base variable in main.cf is set to /home/vmail too and there are some domain and users there..
|

7th March 2009, 11:04
|
|
Junior Member
|
|
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I've the same problem, my daily report dosn't show ANY user!!
Any idea on what's wrong?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 11:56.
|
|
Recent comments
5 hours 46 min ago
10 hours 38 min ago
19 hours 31 min ago
20 hours 30 min ago
1 day 17 min ago
1 day 1 hour ago
1 day 5 hours ago
1 day 12 hours ago
1 day 21 hours ago
1 day 22 hours ago