Nigel Kukard wrote: > Can you try add some logging info to cbp/modules/Quotas.pm?
So, I've spent some time on debugging and I think I found the bug. Maybe your patch addresses the same issue (the response from the quota module is not cleared when the quota is not reached), but unfortunately it did not work. The attached diff solved my problem -- if verdict is not set, I explicitly set the (in my opinion) correct protocol_response. Maybe you find a better solution for this issue... > No internal documentation at this time ;( public docs would also make it ;-) quam -- Markus Quaritsch E: [EMAIL PROTECTED] W: www.qwws.net P: +43 650 7997638
--- cbp/modules/Quotas.pm 2008-06-08 20:20:00.000000000 +0200 +++ /usr/local/lib/policyd-2.0/cbp/modules/Quotas.pm 2008-07-16 00:44:53.000000000 +0200 @@ -97,7 +97,6 @@ # stage # if ($sessionData->{'ProtocolState'} eq "RCPT") { - # Key tracking list, if quotaExceeded is not undef, it will contain the msg my %newCounters; # Indexed by QuotaLimitsID my @trackingList; @@ -458,9 +457,11 @@ $sessionData->{'Sender'}, $sessionData->{'Recipient'}); - return CBP_CONTINUE; + return $server->protocol_response(PROTO_PASS, ''); } if ($verdict =~ /^hold$/i) { return $server->protocol_response(PROTO_HOLD,$verdict_data); + } elsif ($verdict =~ /^defer$/i) { + return $server->protocol_response(PROTO_DEFER,$verdict_data); } elsif ($verdict =~ /^reject$/i) { return $server->protocol_response(PROTO_REJECT,$verdict_data); } elsif ($verdict =~ /^discard$/i) {
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ policyd-users mailing list policyd-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/policyd-users