Package: postfix-cluebringer
Version: 2.0.10-1
Severity: normal

Message Cumulative Size in Quotas module does not work as intended:

I have the following configuration as policies, basically throttle SASL 
authenticated users:

Policy: Name Default Ext SASL auth              
Source Members: $*,!%internal_ips,!%whitelisted


I have the quotas set as:

Policy: Default Ext SASL auth
Name: Quote SASL USER
Track: SASLUsername
Period: 1800
Verdict: DEFER


And the limits for the above quota set to:

Type                    Counter Limit   
MessageCount            5       
MessageCumulativeSize   10485760

When a email comes in, MessageCount works fine, but the 
MessageCumulativeSize not as expected:

On the tests, during the protocol status RCPT I get the normal stuff:

Apr 26 03:15:19 juan cbpolicyd[13495]: module=Quotas, mode=update, 
host=60.234.162.14, helo=[192.168.0.37], from=j...@example.com, 
to=j...@test.com, reason=quota_update, policy=7, quota=3, 
limit=4, track=SASLUsername:j...@example.com, 
counter=MessageCount, quota=3/5 (54.4%)
Apr 26 03:15:19 juan cbpolicyd[13495]: module=Quotas, mode=update, 
host=60.234.162.14, helo=[192.168.0.37], from=j...@example.com, 
to=j...@test.com, reason=quota_update, policy=7, quota=3, 
limit=5, track=SASLUsername:j...@example.com, 
counter=MessageCumulativeSize, quota=952222/10485760 (9.1%)


But when the protocol reaches END-OF-MESSAGE I get:

Apr 26 03:16:27 juan cbpolicyd[15109]: module=Quotas, mode=update, 
host=60.234.162.14, helo=[192.168.0.37], from=j...@example.com, 
to=j...@test.com, reason=quota_update, policy=7, quota=3, 
limit=5, track=SASLUsername:j...@example.com, 
counter=MessageCumulativeSize, quota=5273748/10485760 (50.3%)


In the second message I send:

Apr 26 03:17:24 juan cbpolicyd[4995]: module=Quotas, mode=update, 
host=60.234.162.14, helo=[192.168.0.37], from=j...@example.com, 
to=j...@test.com, reason=quota_update, policy=7, quota=3, 
limit=4, track=SASLUsername:j...@example.com, 
counter=MessageCount, quota=4/5 (70.7%)
Apr 26 03:17:24 juan cbpolicyd[4995]: module=Quotas, mode=update, 
host=60.234.162.14, helo=[192.168.0.37], from=j...@example.com, 
to=j...@test.com, reason=quota_update, policy=7, quota=3, 
limit=5, track=SASLUsername:j...@example.com, 
counter=MessageCumulativeSize, quota=968333/10485760 (9.2%)


  - END OF MESSAGE protocol stats

Apr 26 03:18:47 juan cbpolicyd[4992]: module=Quotas, mode=update, 
host=60.234.162.14, helo=[192.168.0.37], from=j...@example.com, 
to=j...@test.com, reason=quota_update, policy=7, quota=3, 
limit=5, track=SASLUsername:j...@example.com, 
counter=MessageCumulativeSize, quota=5289861/10485760 (50.4%)

It is like MessageCumulativeSize gets updated to the latest message size, 
in the two stages, resetting, instead of work like MessageCount, getting the 
current value and topping up.

Each time I am sending a 3MB email.


Regards

Juan.-

-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32.28-xenU (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages postfix-cluebringer depends on:
ii  adduser                       3.112+nmu2 add and remove users and groups
ii  debconf                       1.5.36.1   Debian configuration management sy
ii  libcache-fastmmap-perl        1.35-1     Perl module providing a mmap'ed ca
ii  libconfig-inifiles-perl       2.52-1     Read .ini-style configuration file
ii  libmail-spf-perl              2.007-1    Perl implementation of Sender Poli
ii  libnet-cidr-perl              0.13-1     Manipulate IPv4/IPv6 netblocks in 
ii  libnet-server-perl            0.97-1     An extensible, general perl server
ii  perl                          5.10.1-17  Larry Wall's Practical Extraction 
ii  postfix-cluebringer-mysql     2.0.10-1   metapackage for mysql support in p

Versions of packages postfix-cluebringer recommends:
ii  postfix-cluebringer-webui     2.0.10-1   anti-spam plugin for Postfix

postfix-cluebringer suggests no packages.

-- Configuration Files:
/etc/cluebringer/cluebringer.conf changed [not included]

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to