> > So I'd like to know why the mail is not accepted although the quota is > not reached.... > > cd /cluebringer > grep -r 'more transa' * > > no hits > > so its not policyd
Users can configure their own return data in v2 :) I have a idea this could possibly be caused by pipelining policy requests .... 1. Sending 1st request which doesn't trigger quota will go through 2. Sending 2nd request which triggers quota will be $verdict'd (be it DEFER, REJECT, whatever) 3. Sending 3rd request which doesn't trigger quota will be rejected with same result as #2 Markus, can you try apply the attached patch? if the above is the case for you? -N
Index: cbpolicyd =================================================================== --- cbpolicyd (revision 261) +++ cbpolicyd (working copy) @@ -381,6 +389,9 @@ # Set protocol handler $server->{'_protocol_handler'} = $found; + + # If we have a init function, call it before processing... + $server->{'_protocol_handler'}->{'protocol_init'}($self) if (defined($server->{'_protocol_handler'}->{'protocol_init'})); # Process buffer my $request = $server->{'_protocol_handler'}->{'protocol_parse'}($self,$buf); Index: cbp/protocols/Postfix.pm =================================================================== --- cbp/protocols/Postfix.pm (revision 261) +++ cbp/protocols/Postfix.pm (working copy) @@ -64,6 +64,13 @@ } +# Initialize per request data... +sub protocol_init { + $response = undef; + $response_data = undef; +} + + # Check the buffer to see if this protocol is what we want sub protocol_check { my ($server,$buffer) = @_;
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------- 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