Results 1 to 5 of 5

Thread: Zimbra 8.06 policyd quota tracking counts multiple times

  1. #1
    rduran is offline Beginner Member
    Join Date
    Feb 2014
    Posts
    1
    Rep Power
    1

    Default Zimbra 8.06 policyd quota tracking counts multiple times

    Hi,

    I am having trouble with policyd quota tracking as it counts twice for the messages sent via webinterface:

    Code:
    Feb 24 13:09:25 mx2 cbpolicyd[26053]: module=Quotas, mode=update, host=79...., helo=mx2...., from=rduran@..., to=...@gmail.com, reason=quota_update, policy=6, quota=3, limit=4, track=Sender:rduran@..., counter=MessageCount, quota=15.87/1000 (1.6%)
    Feb 24 13:09:25 mx2 cbpolicyd[26053]: module=Quotas, mode=update, host=79...., helo=mx2..., from=rduran@...r, to=...@gmail.com, reason=quota_update, policy=6, quota=3, limit=4, track=Sender:rduran@..., counter=MessageCount, quota=16.87/1000 (1.7%)
    Sending via sasl (outlook, thunderbird) is OK. It counts as it should.

    Any advice?

    Here the policyd debug logs:
    [2014/02/24-13:09:25 - 26053] [TRACKING] DEBUG: No session tracking data exists - Pastebin.com

  2. #2
    fab
    fab is offline Active Member
    Join Date
    Oct 2008
    Posts
    38
    Rep Power
    6

    Default

    We have the same problem, looking at cbpolicyd.log I discovered that quota tracking is counting twice every message passing through cbpolicyd.
    No specific policy is set up for sasl but have different policies and quota limits for inbound messages (from external domains to our users) and outbound messages (from our users to external domains).
    This didn't happen with ZCS7, where I had manually enabled cbpolicyd.

  3. #3
    fab
    fab is offline Active Member
    Join Date
    Oct 2008
    Posts
    38
    Rep Power
    6

    Unhappy

    After further investigation, see this excerpt from my logs:
    https://www.dropbox.com/s/o1tnu4zorr...otas_twice.txt
    I thought the problem was that in /opt/zimbra/postfix/conf/main.cf we have:
    Code:
    smtpd_recipient_restrictions = check_policy_service inet:localhost:10031, reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unlisted_recipient, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_rbl_client b.barracudacentral.org, reject_rbl_client zen.spamhaus.org, permit
    smtpd_sender_restrictions = check_policy_service inet:localhost:10031
    smtpd_end_of_data_restrictions = check_policy_service inet:localhost:10031
    so every message would be passed twice from postfix to cbpolicyd: the first time to check the sender/recipient addresses (smtpd_delay_reject waits until the RCPT TO, so the sender and recipient restrictions are evaluated with a single check) and a second time to check the smtp END-OF-DATA command.

    I was partially right because after I have set
    Code:
    smtpd_end_of_data_restrictions =
    in main.cf and restarted the mta service (zmmtactl stop && zmmtactl start) I no longer see the
    Code:
    Protocol state is 'END-OF-DATA'
    section in cbpolicyd.log; I wrote partially because the quota limit values are still increased twice for each single message matching a policy.

    After a deeper inspection I noticed that the quotas_limits value is not increased when
    Code:
    Protocol state is 'END-OF-DATA'
    while the policy is triggered twice with
    Code:
    Protocol state is 'RCPT'
    The only difference between pass_1 and pass_2 of the 'RCPT' state is that the first time we have
    Code:
    'RecipientData' => '/<info@external-domain.com>#10=2;'
    but then
    Code:
    'RecipientData' => ''
    Now the real question is: why?

  4. #4
    ccelis5215 is offline Elite Member
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    461
    Rep Power
    4

  5. #5
    fab
    fab is offline Active Member
    Join Date
    Oct 2008
    Posts
    38
    Rep Power
    6

    Default

    I have seen and voted bug #83968, but it is not strictly related with the issue reported here because we have different policies for inbound and outbound messages, each one bound to its own quotas and limits.
    Just to be sure, I tried to remove all policies and quotas from my cbpolicyd configuration except the outbound policy bound to a single quota limit, but the problem persists.
    Just filed bug #90828
    Last edited by fab; 05-26-2014 at 03:12 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 08-14-2011, 08:53 PM
  2. Mail sent MULTIPLE times
    By sajjanj in forum General Questions
    Replies: 1
    Last Post: 07-31-2009, 02:26 AM
  3. Tracking Mail Times
    By langs in forum Developers
    Replies: 0
    Last Post: 11-27-2007, 04:34 PM
  4. zimbra calendar all entries multiple times - help!
    By fisch09 in forum Administrators
    Replies: 3
    Last Post: 08-29-2007, 04:15 PM
  5. Mail being delivered multiple times ?
    By kechols in forum Administrators
    Replies: 10
    Last Post: 06-11-2007, 05:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •