[vchkpw] quotawarn file in users maildir

2011-05-11 Thread Hartmut Wernisch | Domaintechnik.at
Hello!

I have installed vpopmail 5.4.33 and I plan to use quotas with vusaged.

After some research I found that the quota warning messages are sent
once in 24 hours (except the Maildir/quotawarn file is deleted
manually).

Therefor, the owner of the mailbox gets a warning mail, remove some
mails within the 24 hours and did not recognize if the mailbox is over
quota until the 24 hours are over. Even worse, he will think that he has
solved the problem while new mails are bouncing.

In my opinion it would be better if vpopmail removes the quotawarn file
if the user is below the quota warning threshold. Vpopmail anyway hast
to query if the mailbox is over quota on new mails so why not delete an existing
quotawarn file if the mailbox is below the threshold?

Best regards,
Hartmut

!DSPAM:4dca5bbf32711017712204!



Re: [vchkpw] quotawarn file in users maildir

2011-05-11 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/11/2011 04:49 AM, Hartmut Wernisch | Domaintechnik.at wrote:
 Hello!
 
 I have installed vpopmail 5.4.33 and I plan to use quotas with vusaged.
 
 After some research I found that the quota warning messages are sent
 once in 24 hours (except the Maildir/quotawarn file is deleted
 manually).
 
 Therefor, the owner of the mailbox gets a warning mail, remove some
 mails within the 24 hours and did not recognize if the mailbox is over
 quota until the 24 hours are over. Even worse, he will think that he has
 solved the problem while new mails are bouncing.
 
 In my opinion it would be better if vpopmail removes the quotawarn file
 if the user is below the quota warning threshold. Vpopmail anyway hast
 to query if the mailbox is over quota on new mails so why not delete an 
 existing
 quotawarn file if the mailbox is below the threshold?

It is done this way because quota usage percentages can easily stay the
same by regular usage.  A user gets some mail, deletes some mail.  The
usage percentage won't change much.

If you set a threshold at which the quota warning is sent, and the
user's regular usage keeps hitting above and below this area, the user
will receive many warnings.

What you really mean to do is adjust how often the user can receive a
warning.  You can find this hardcoded setting in vdelivermail.c around
line 1150 in the deliver_quota_warning function.
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3KqnkACgkQIwet2/rgZyx1GACfVg9R8OzDWl507hWN9pIEgVdB
eLwAnAknNp5/CkkewgviYd66Vsb57t30
=MFpE
-END PGP SIGNATURE-


Re: [vchkpw] quotawarn not always working

2006-06-29 Thread Paul Theodoropoulos

At 05:58 PM 6/28/2006, Charles Sprickman wrote:
Anyone else see this?  Any appropriate fixes in vdelivermail dealing 
with quota warnings since 5.4.10?  I noticed vdelivermail does have 
a few printfs with error messages, but I'm not seeing anything in 
the mail logs regarding this user or quotas or errros in general...


Ideas?


i've found that occasionally the 'maildirsize' file will misbehave - 
somehow getting confused info written into it. deleting it often 
cleared the problem.



Paul Theodoropoulos
http://www.anastrophe.com
http://www.smileglobal.com
http://www.forumgarden.com






[vchkpw] quotawarn not always working

2006-06-28 Thread Charles Sprickman

Hi all,

I have a user that came complaining (he's actually a lawyer and has sent 
four snail-mail, certified letters... ugh) that he's not being notified 
when going over quota.  So I grabbed a test account in the same domain and 
sent email to that account until the usage went above 90%.  Everything 
worked as expected - quotawarn file was created, warning email delivered, 
and it worked both with maildrop (used for spam/virus scanning here) and 
vdelivermail as the final delivery agent.


I figured it might be PEBKAC, but the user still complained, so we got 
permission to test on his live account.  And he's right...  No matter what 
I do, the warning message never gets delivered and no quotawarn file is 
created.  He has no filtering, so he's got direct vdelivermail delivery.


Looking in the db, other than his username, password and directory, he's 
exactly the same as my test user.


This is vpopmail 5.4.10, haven't gotten around to looking at all the 
release notes on newer versions yet for gotchas.


Anyone else see this?  Any appropriate fixes in vdelivermail dealing with 
quota warnings since 5.4.10?  I noticed vdelivermail does have a few 
printfs with error messages, but I'm not seeing anything in the mail logs 
regarding this user or quotas or errros in general...


Ideas?

Thanks,

Charles


Re: [vchkpw] quotawarn not always working

2006-06-28 Thread Michael Bowe
- Original Message - 
From: Charles Sprickman [EMAIL PROTECTED]




Hi all,

I have a user that came complaining (he's actually a lawyer and has sent 
four snail-mail, certified letters... ugh) that he's not being notified 
when going over quota.  So I grabbed a test account in the same domain and 
sent email to that account until the usage went above 90%.  Everything 
worked as expected - quotawarn file was created, warning email delivered, 
and it worked both with maildrop (used for spam/virus scanning here) and 
vdelivermail as the final delivery agent.


Is vuserinfo reporting accurate values for this quota and usage amounts ?

Do the permissions on his dir look same as the permissions on your test 
account dir ?


You could probably test sending a message like this

EXT=someuser HOST=somedomain.com strace vdelivermail '' bounce-no-mailbox
PASTE TEST MSG HERE
CTRL-D

That might show up whats going on with regards to access to the quota 
related files


Michael.



Re: [vchkpw] quotawarn not always working

2006-06-28 Thread Tom Collins

On Jun 28, 2006, at 5:58 PM, Charles Sprickman wrote:
This is vpopmail 5.4.10, haven't gotten around to looking at all the 
release notes on newer versions yet for gotchas.


vdelivermail was rewritten for 5.4.11 (or so).  5.4.16 is a pretty good 
release, I have a few patches to put into 5.4.17, but nothing serious 
enough to keep you from trying 5.4.16.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] quotawarn question

2005-03-24 Thread Greg Swift
Tom Collins wrote:
On Mar 23, 2005, at 1:10 PM, Juan Enciso Condeña wrote:
But also I have noticed that this file not delete as soon as the 
quota has
diminished, which brings like consequence that when it is arrived 
again at
the quota limit,  no alert quota is sent again.

Is it a bug or what should I do?

It's not a bug.  Only one warning is sent every 24 hours.  The file 
needs to stay there so that a user who's close to their quota doesn't 
get repeated warnings every time the delete mail and have more arrive.
actually considering it NEVER removes the quotawarn from the user, I 
would personally consider it a bug.  And a rather annoying one 
considering I have to go manually remove it else they get the warning 
even after emptying their box.

-Greg


Re: [vchkpw] quotawarn question

2005-03-24 Thread Tom Collins
On Mar 24, 2005, at 8:47 AM, Greg Swift wrote:
It's not a bug.  Only one warning is sent every 24 hours.  The file 
needs to stay there so that a user who's close to their quota doesn't 
get repeated warnings every time the delete mail and have more 
arrive.
actually considering it NEVER removes the quotawarn from the user, I 
would personally consider it a bug.  And a rather annoying one 
considering I have to go manually remove it else they get the warning 
even after emptying their box.
The quotawarn file is a 0-byte file stored in the user's directory and 
is only used to determine the last time an actual warning was sent.  
I'm not sure I understand why that is a problem.  If the file is over 
24 hours old, removing it will have no effect on the behavior of 
vdelivermail.  If it's less than 24 hours old, the user will get 
another warning the next time their box goes over 90% full.

If you wanted to, you could add a cron job on your system to find 
quotawarn files older than 24 hours and delete them, but I don't think 
there's a need to do so.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com



Re: [vchkpw] quotawarn question

2005-03-24 Thread Greg Swift
Tom Collins wrote:
On Mar 24, 2005, at 8:47 AM, Greg Swift wrote:
It's not a bug.  Only one warning is sent every 24 hours.  The file 
needs to stay there so that a user who's close to their quota 
doesn't get repeated warnings every time the delete mail and have 
more arrive.

actually considering it NEVER removes the quotawarn from the user, I 
would personally consider it a bug.  And a rather annoying one 
considering I have to go manually remove it else they get the warning 
even after emptying their box.

The quotawarn file is a 0-byte file stored in the user's directory and 
is only used to determine the last time an actual warning was sent.  
I'm not sure I understand why that is a problem.  If the file is over 
24 hours old, removing it will have no effect on the behavior of 
vdelivermail.  If it's less than 24 hours old, the user will get 
another warning the next time their box goes over 90% full.

If you wanted to, you could add a cron job on your system to find 
quotawarn files older than 24 hours and delete them, but I don't think 
there's a need to do so.
Welll.. then it is buggy, because even if their mailbox is not at quota, 
guess what? they still get the message!  This bug was reported to the 
list months ago (back around sept/oct).  If it actually worked the way 
you are specifying, I wouldn't be complaining, but the has been a 
repeatable occurance, and the fix is to delete the quoatawarn file.

-Greg
-Greg


[vchkpw] quotawarn question

2005-03-23 Thread Juan Enciso Condeña
Hi vpopmail users

I'm using qmail + vpopmail-5.4.9 + sqwebmail-4.0.7 

Recently, I enabled the warning quota message.
I create the file .quotawarn.msg into domain directory, and it work.
But I noticed that when reach the percent limit, the vpopmail create the file 
named quotawarn into user directory. 
For example: ~vopmail/domains/domain.com/user/Maildir/quotawarn

But also I have noticed that this file not delete as soon as the quota has 
diminished, which brings like consequence that when it is arrived again at 
the quota limit,  no alert quota is sent again.

Is it a bug or what should I do?

Thanks for your reply.



Re: [vchkpw] quotawarn question

2005-03-23 Thread Tom Collins
On Mar 23, 2005, at 1:10 PM, Juan Enciso Condeña wrote:
Recently, I enabled the warning quota message.
I create the file .quotawarn.msg into domain directory, and it work.
But I noticed that when reach the percent limit, the vpopmail create 
the file
named quotawarn into user directory.
For example: ~vopmail/domains/domain.com/user/Maildir/quotawarn

But also I have noticed that this file not delete as soon as the quota 
has
diminished, which brings like consequence that when it is arrived 
again at
the quota limit,  no alert quota is sent again.

Is it a bug or what should I do?
It's not a bug.  Only one warning is sent every 24 hours.  The file 
needs to stay there so that a user who's close to their quota doesn't 
get repeated warnings every time the delete mail and have more arrive.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com



Re: [vchkpw] quotawarn....

2004-08-22 Thread Werner Amon
shadowplay.net schrieb:
has neone else had this issue?
once again the issue is no removal of quotawarn messages 

 

I have the same 'problem'
Werner


Re: [vchkpw] quotawarn....

2004-08-22 Thread Dave Goodrich
shadowplay.net wrote:
has neone else had this issue?
once again the issue is no removal of quotawarn messages 
Yes I have had this issue, and stopped quotawarn messages as a solution. 
The bigger issue for us was getting the maildirsize file to properly 
update sometimes. Currently we just go through and delete them all and 
rerun vuserinfo which replaces the file. Everything has been fine once 
this was done.

I've never brought it to the list becasue I thought is was becasue we 
moved maildirs from a machine with maildirs and installed them on 
amchine with maildir++ after we installed courier.

DAve


RE: [vchkpw] quotawarn....

2004-08-21 Thread elger
hey all... 
I have been tracking a few issues that are slightly anoying and 
causing me great concern when running vpopmail on a production site.

vpopmail 5.4.5 (I know 5.4.6 is more current however ... 
the sql injection is the least of my wories at this time!)

netqmail-1.0.5
Maildir++ patches applied.
qmail-pop3d
mysql 

clean builds and 
all applicable patches applied.


we are using Maildir as the delivery method of choice.

issue one...

clearing a quotawarn message.

the systems fail to clear a quotawarn message for users
who pop in and remove mail (once they are over quota). 
in addition there does not appear to be a method to
force a recalculation of the maildirsize without deleting 
it entirly.

the 15min expirey and recalculation of maildir does not appear 
to be occuring 
or 
if it is it fails to remove the quotawarn message.

below is a maildirsize for an account in question... 
original maildirsize file

20971520S,1000C
20972344172
-16375287   -135
-3200873-3
-1396184-34
42348   1
-42348  -1
24151
18571
-4272   -2
18331
-1833   -1
56575   1
-56575  -1
25111
-2511   -1
24091
-2409   -1
18011
16121
-1801   -1
-1612   -1
16661
-1666   -1
11160   1
-11160  -1
55791
778 1
-6357   -2
12152   1
-12152  -1
25231
275814  1
69601
-285297 -3
52781
1880379 1
43591
39684   1
-1929700-4
301056  1
-301056 -1
780 1
10543   1
307468  1
-318791 -3
18231
-1823   -1
40581
-4058   -1
51644   1
51649   1
51648   1
51647   1
51646   1
51647   1
51643   1
51644   1
-51644  -1
-103297 -2
-154940 -3
-51643  -1
-51644  -1
1620451 1
-1620451-1
45781
95931
-14171  -2
18201
59651
56171
-1820   -1
-5965   -1
-5617   -1
19781
-1978   -1
19991
37071
37231
-1999   -1
-7430   -2
31261
-3126   -1
31371
-3137   -1
41311
-4131   -1
44671
-4467   -1
38771
-3877   -1
20221
-2022   -1
18730   1
-18730  -1
34341   1
33811
793 1
-37722  -2
-793-1
11952   1
-11952  -1
26771
-2677   -1
86911
-8691   -1
90461
-9046   -1
12023   1
-12023  -1
17741
-1774   -1
53091
32911
-5309   -1
-3291   -1
71411
27421
-7141   -1
-2742   -1
10827   1
-10827  -1
11441
-1144   -1
67711
-6771   -1
13935   1
-13935  -1
42068   1
-42068  -1
922079  1
20992   1
73091
54511
55341
789 1
20541   1
503616  1
556989  1
556991  1
787 1
354195  1
783 1
46471
57891
713230  1
69955   1
20871
2356089 1
38871
80781
58131
14341
-6127065-23
44631
794 1
-5257   -2
807946  1
-807946 -1
43801
-4380   -1
93591
-9359   -1
69181
-6918   -1
94971
-9497   -1
21651
19001
-4065   -2
11176   1
-11176  -1
33451
69778   1
-73123  -2
29651
-2965   -1
31321
-3132   -1
40951
-4095   -1
780 1
75901
16681
52681
114303  1
44809   1
96211
96261
-193665 -8
39645   1
-39645  -1
56949   1
-56949  -1
11441
-1144   -1
16201
-1620   -1
98955   1
-98955  -1
29801
-2980   -1

reported 0% usage of quota... 
(ps it all added up correctly)

in attempting to debug this issue... 
maildirsize was deleted from the users account
to cause maildirsize to be recalculated...
after 7 messages results were  

20971520S,1000C
0 0
971 1
-971 -1
778 1
-778 -1
3691 1
-3691 -1
4403 1
-4403 -1
3987 1
-3987 -1
6211 1
-6211 -1
2329 1
-2329 -1

this was looking good 
however

[EMAIL PROTECTED] Maildir]# ls -la
total 32
drwx--5 vpopmail vchkpw   4096 Aug 19 17:26 .
drwx--3 vpopmail vchkpw   4096 Jul 22 08:08 ..
drwx--2 vpopmail vchkpw   8192 Aug  4 21:48 cur
-rw---1 vpopmail vchkpw128 Aug 20 09:11 maildirsize
drwx--2 vpopmail vchkpw   8192 Aug 20 09:11 new
-rw---1 vpopmail vchkpw  0 Aug  3 21:50 quotawarn
drwx--2 vpopmail vchkpw   4096 Aug 20 09:10 tmp
 
note the quotawarn message ... set Aug 3 
that was not removed...
any thoughts?


thank you for your time 
kenneth gf brown

--

Hello Kenneth,

I'm absolutely NO expert but I found the next solution to your problem in my
quest to solve other problems:
On: http://www.pipeline.com.au/staff/mbowe/isp/vpopmail-mysql.htm




[vchkpw] quotawarn....

2004-08-20 Thread shadowplay.net

hey all... 
I have been tracking a few issues that are slightly anoying and 
causing me great concern when running vpopmail on a production site.

vpopmail 5.4.5 (I know 5.4.6 is more current however ... 
the sql injection is the least of my wories at this time!)

netqmail-1.0.5
Maildir++ patches applied.
qmail-pop3d
mysql 

clean builds and 
all applicable patches applied.


we are using Maildir as the delivery method of choice.

issue one...

clearing a quotawarn message.

the systems fail to clear a quotawarn message for users
who pop in and remove mail (once they are over quota). 
in addition there does not appear to be a method to
force a recalculation of the maildirsize without deleting 
it entirly.

the 15min expirey and recalculation of maildir does not appear 
to be occuring 
or 
if it is it fails to remove the quotawarn message.

below is a maildirsize for an account in question... 
original maildirsize file

20971520S,1000C
20972344172
-16375287   -135
-3200873-3
-1396184-34
42348   1
-42348  -1
24151
18571
-4272   -2
18331
-1833   -1
56575   1
-56575  -1
25111
-2511   -1
24091
-2409   -1
18011
16121
-1801   -1
-1612   -1
16661
-1666   -1
11160   1
-11160  -1
55791
778 1
-6357   -2
12152   1
-12152  -1
25231
275814  1
69601
-285297 -3
52781
1880379 1
43591
39684   1
-1929700-4
301056  1
-301056 -1
780 1
10543   1
307468  1
-318791 -3
18231
-1823   -1
40581
-4058   -1
51644   1
51649   1
51648   1
51647   1
51646   1
51647   1
51643   1
51644   1
-51644  -1
-103297 -2
-154940 -3
-51643  -1
-51644  -1
1620451 1
-1620451-1
45781
95931
-14171  -2
18201
59651
56171
-1820   -1
-5965   -1
-5617   -1
19781
-1978   -1
19991
37071
37231
-1999   -1
-7430   -2
31261
-3126   -1
31371
-3137   -1
41311
-4131   -1
44671
-4467   -1
38771
-3877   -1
20221
-2022   -1
18730   1
-18730  -1
34341   1
33811
793 1
-37722  -2
-793-1
11952   1
-11952  -1
26771
-2677   -1
86911
-8691   -1
90461
-9046   -1
12023   1
-12023  -1
17741
-1774   -1
53091
32911
-5309   -1
-3291   -1
71411
27421
-7141   -1
-2742   -1
10827   1
-10827  -1
11441
-1144   -1
67711
-6771   -1
13935   1
-13935  -1
42068   1
-42068  -1
922079  1
20992   1
73091
54511
55341
789 1
20541   1
503616  1
556989  1
556991  1
787 1
354195  1
783 1
46471
57891
713230  1
69955   1
20871
2356089 1
38871
80781
58131
14341
-6127065-23
44631
794 1
-5257   -2
807946  1
-807946 -1
43801
-4380   -1
93591
-9359   -1
69181
-6918   -1
94971
-9497   -1
21651
19001
-4065   -2
11176   1
-11176  -1
33451
69778   1
-73123  -2
29651
-2965   -1
31321
-3132   -1
40951
-4095   -1
780 1
75901
16681
52681
114303  1
44809   1
96211
96261
-193665 -8
39645   1
-39645  -1
56949   1
-56949  -1
11441
-1144   -1
16201
-1620   -1
98955   1
-98955  -1
29801
-2980   -1

reported 0% usage of quota... 
(ps it all added up correctly)

in attempting to debug this issue... 
maildirsize was deleted from the users account
to cause maildirsize to be recalculated...
after 7 messages results were  

20971520S,1000C
0 0
971 1
-971 -1
778 1
-778 -1
3691 1
-3691 -1
4403 1
-4403 -1
3987 1
-3987 -1
6211 1
-6211 -1
2329 1
-2329 -1

this was looking good 
however

[EMAIL PROTECTED] Maildir]# ls -la
total 32
drwx--5 vpopmail vchkpw   4096 Aug 19 17:26 .
drwx--3 vpopmail vchkpw   4096 Jul 22 08:08 ..
drwx--2 vpopmail vchkpw   8192 Aug  4 21:48 cur
-rw---1 vpopmail vchkpw128 Aug 20 09:11 maildirsize
drwx--2 vpopmail vchkpw   8192 Aug 20 09:11 new
-rw---1 vpopmail vchkpw  0 Aug  3 21:50 quotawarn
drwx--2 vpopmail vchkpw   4096 Aug 20 09:10 tmp
 
note the quotawarn message ... set Aug 3 
that was not removed...
any thoughts?


thank you for your time 
kenneth gf brown




[vchkpw] quotawarn messages

2003-12-14 Thread Werner Amon
Hi,

I have customers they become a quotawarnmessage, but their boxes are empty.
When i look in their box i can see a empty file quotawarn. It seems like 
that
vpopmail not delete this file automaticly, thats a great prob.

Any hints, someone?

greets from austria
Werner



[vchkpw] quotawarn file -- what does it do?

2003-06-08 Thread Moshe Jacobson
I have noticed that when a user gets a nearing-quota warning (from
.quotawarn.msg), that a file called quotawarn is created in their
maildir. However, when they go back in and delete all their messages,
the quotawarn file remains there.  Is this behavior correct?  What
purpose does this file serve?  Does it ever get deleted again?

Thanks,
Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom