Package: postfwd
Version: 1.35-2
Severity: normal

Postfwd1 counts the size of a message only once even if the number
of recipients is > 1. For example

  May 15 20:21:48 iac postfix/qmgr[5056]: CB2141329: 
  from=<syl...@example.com>, size=12229263, nrcpt=69 (queue active)

will add only 12229263 for a rule like

  id=QUOTA ; action=size(sasl_username/200000000/86400/WARN ...)

It seems that in /usr/sbin/postfwd1 in %postfwd_actions at the line

  my($rcount) =  ( ($mycmd =~ /^size/) ? $request{size} :
    (($mycmd =~ /^rcpt/) ? $request{recipient_count} : 1 ) );

recipient_count is ignored, i.e. it is always assumed to be 1 for 
($mycmd =~ /^size/).


-- System Information:
Debian Release: 7.5
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages postfwd depends on:
ii  adduser             3.113+nmu3
ii  libnet-dns-perl     0.66-2+b2
ii  libnet-server-perl  2.006-1+deb7u1
ii  perl                5.14.2-21+deb7u1


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