On 10/01/2012 10:05 AM, Robert Anderson wrote:
> On 28/09/2012 20:01, Robby Pedrica wrote:
>> I've got Centos 5, postfix 2.8.3, policyd 2.1.0a (
>> cluebringer-snapshot-201104210611 ) and use this server for 2 functions:
>>
>> 1. quota control for relayed email to destinations not on this server (
>> high volume )
>> 2. greylisting for domains hosted on the server ( low volume )
>>
>> Postfix config:
>>
>> smtpd_recipient_restrictions =
>> permit_mynetworks
>> check_policy_service inet:127.0.0.1:10031
>> permit_sasl_authenticated
>>
>> smtpd_end_of_data_restrictions =
>> check_policy_service inet:127.0.0.1:10031
>>
>> If I send an email relaying through the server to a single recipient,
>> then accounting info is as expected. If I send to more than one
>> recipient ( eg. 1 x to and 1 x cc ) then accounting doesn't seem to
>> catch the second recipient or rather it displays info incorrectly.
>> Postfix log as follows:
>>
>> /Sep 28 11:01:17 server cbpolicyd[18041]: module=Quotas, mode=update,
>> host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domaina.com,
>> reason=quota_update, policy=6, quota=7, limit=9,
>> track=Sender:@send_domain.co.za, counter=MessageCount, quota=6.81/2000
>> (0.3%) //
>> //Sep 28 11:01:17 server cbpolicyd[18041]: module=Quotas, mode=update,
>> host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domaina.com,
>> reason=quota_update, policy=6, quota=8, limit=11,
>> track=Sender:sender@send_domain.co.za, counter=MessageCount,
>> quota=6.46/500 (1.3%)/
>>
>> user and domain quota for recipient A
>>
>> /Sep 28 11:01:17 server cbpolicyd[18041]: module=Accounting,
>> mode=update, host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domaina.com,
>> reason=accounting_update, policy=6, accounting=12,
>> track=Sender:@send_domain.co.za, period=2012/39, count=/-, size=/- //
>> //Sep 28 11:01:17 server cbpolicyd[18041]: module=Accounting,
>> mode=update, host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domaina.com,
>> reason=accounting_update, policy=6, accounting=13,
>> track=Sender:sender@send_domain.co.za, period=2012/39, count=/-,
>> size=/- /
>>
>> account info for recipient A - notice the count/size info is empty
>>
>> /Sep 28 11:01:18 server cbpolicyd[18398]: module=Quotas, mode=update,
>> host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domainb.com,
>> reason=quota_update, policy=6, quota=7, limit=9,
>> track=Sender:@send_domain.co.za, counter=MessageCount, quota=7.81/2000
>> (0.4%) //
>> //Sep 28 11:01:18 server cbpolicyd[18398]: module=Quotas, mode=update,
>> host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domainb.com,
>> reason=quota_update, policy=6, quota=8, limit=11,
>> track=Sender:sender@send_domain.co.za, counter=MessageCount,
>> quota=7.46/500 (1.5%) /
>>
>> user and domain quota for recipient B
>>
>> /Sep 28 11:01:18 server cbpolicyd[18398]: module=Accounting,
>> mode=update, host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domainb.com,
>> reason=accounting_update, policy=6, accounting=12,
>> track=Sender:@send_domain.co.za, period=2012/39, count=/-, size=/- //
>> //Sep 28 11:01:18 server cbpolicyd[18398]: module=Accounting,
>> mode=update, host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domainb.com,
>> reason=accounting_update, policy=6, accounting=13,
>> track=Sender:sender@send_domain.co.za, period=2012/39, count=/-,
>> size=/- /
>>
>> account info for recipient B - notice the count/size info is empty
>>
>> /Sep 28 11:01:19 server cbpolicyd[18125]: module=Accounting,
>> mode=update, host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domaina.com,
>> reason=accounting_update, policy=6, accounting=12,
>> track=Sender:@send_domain.co.za, period=2012/39, count=168/-,
>> size=10503/- //
>> //Sep 28 11:01:19 server cbpolicyd[18125]: module=Accounting,
>> mode=update, host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domaina.com,
>> reason=accounting_update, policy=6, accounting=13,
>> track=Sender:sender@send_domain.co.za, period=2012/39, count=128/-,
>> size=10257/- //
>> //
>> //Sep 28 11:01:19 server cbpolicyd[18125]: module=Accounting,
>> mode=update, host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domainb.com,
>> reason=accounting_update, policy=6, accounting=12,
>> track=Sender:@send_domain.co.za, period=2012/39, count=168/-,
>> size=10507/- //
>> //Sep 28 11:01:19 server cbpolicyd[18125]: module=Accounting,
>> mode=update, host=41.177.69.168, helo=mail.send_domain.co.za,
>> from=sender@send_domain.co.za, to=sender@rec_domainb.com,
>> reason=accounting_update, policy=6, accounting=13,
>> track=Sender:sender@send_domain.co.za, period=2012/39, count=128/-,
>> size=10261/-/
>
> Looks like those logs are from the Accounting module. Are you
> intending to use Accounting or Quotas?
>
> Have you got limits set?
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org
I'm using both quotas and accounting ( is this wrong? ); and yes I have
quota limits set.

Regards, Robby

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to