Nigel!
> >>>> If install a stable version I can't esclude mail from "<>".. :-(
> >>>>
> >>>> Otherwise I have installed a clean trunk but I still get:
> >>>>
> >>>> [2009/02/18-17:50:32 - 19814] [CBPOLICYD] ERROR: Error running
> >>>> module
> >>>> request_process(): Undefined subroutine &cbp::protocols::PROTO_OK
> >>>> called at /usr/local/l ib/policyd-2.0/cbp/protocols/Postfix.pm
> line
> >>>> 131.
> >>>> Undefined subroutine &cbp::protocols::PROTO_OK called at
> >>>> /usr/local/lib/policyd-2.0/cbp/protocols/Postfix.pm line 131.
> >>>>
> >>>> Every time the quota is overcomed.
> >>>>
> >>>>
> >>> There is no line 131 with PROTO_OK in Postfix.pm . I think you are
> >>> forgetting to install the rest of the files.
> >>>
> >>> Remove your entire /usr/local/lib/policyd-2.0 directory and
install
> >>> fresh from a clean checkout of trunk.
> >>>
> >> I will do and let you know soon!
> >>
> >
> > I have installed a fresh cdb directory from rev416 but I still get:
> >
> > [2009/02/18-23:23:13 - 31135] [CBPOLICYD] ERROR: Error running
module
> > request_process(): Undefin
> > ed subroutine &cbp::protocols::PROTO_OK called at
> > /usr/local/lib/policyd-2.0/cbp/protocols/Postf
> > ix.pm line 131, <_READ> line 143.
> > Undefined subroutine &cbp::protocols::PROTO_OK called at
> > /usr/local/lib/policyd-2.0/cbp/protocol
> > s/Postfix.pm line 131, <_READ> line 143.
> >
> >
> Try with r417.
It works! Thanks. Now I will observe that really the mail from "<>" are
not considered for the quota that I have defined.
Indeed, from the log below:
[2009/02/19-11:35:54 - 30992] [CORE] INFO: 2009/02/19-11:35:54 CONNECT
TCP Peer: "127.0.0.1:43626" Local: "127.0.0.1:10031"
[2009/02/19-11:35:54 - 30992] [PROTOCOLS/Postfix] DEBUG: Possible
Postfix protocol
[2009/02/19-11:35:54 - 30992] [PROTOCOLS/Postfix] INFO: Identified
Postfix protocol
[2009/02/19-11:35:54 - 30992] [TRACKING] DEBUG: No session tracking data
exists for request: $VAR1 = {
'ccert_fingerprint' => '',
'sasl_method' => '',
'sasl_sender' => '',
'size' => '1876',
'_timestamp' => 1235039754,
'helo_name' => 'Mail.CRCSBO.IT',
'reverse_client_name' => 'unknown',
'queue_id' => '',
'encryption_cipher' => '',
'encryption_protocol' => '',
'etrn_domain' => '',
'ccert_subject' => '',
'request' => 'smtpd_access_policy',
'protocol_state' => 'RCPT',
'stress' => '',
'_protocol_peeraddr' => '127.0.0.1',
'recipient' => 'roc...@rcpt',
'sasl_username' => '',
'instance' => '75f5.499d360a.a651d.0',
'protocol_name' => 'ESMTP',
'encryption_keysize' => '0',
'recipient_count' => '0',
'ccert_issuer' => '',
'sender' => '',
'client_name' => 'unknown',
'client_address' => 'xxx.yyy.zzz.uuu',
'_protocol_transport' => 'Postfix'
};
[2009/02/19-11:35:54 - 30992] [TRACKING] DEBUG: Added session tracking
information for: $VAR1 = {
'ccert_fingerprint' => '',
'sasl_method' => '',
'sasl_sender' => '',
'size' => '1876',
'_timestamp' => 1235039754,
'helo_name' => 'Mail.CRCSBO.IT',
'reverse_client_name' => 'unknown',
'queue_id' => '',
'encryption_cipher' => '',
'encryption_protocol' => '',
'etrn_domain' => '',
'ccert_subject' => '',
'request' => 'smtpd_access_policy',
'protocol_state' => 'RCPT',
'stress' => '',
'_protocol_peeraddr' => '127.0.0.1',
'recipient' => 'roc...@rcpt',
'sasl_username' => '',
'instance' => '75f5.499d360a.a651d.0',
'protocol_name' => 'ESMTP',
'encryption_keysize' => '0',
'recipient_count' => '0',
'ccert_issuer' => '',
'sender' => '',
'client_name' => 'unknown',
'client_address' => 'xxx.yyy.zzz.uuu',
'_protocol_transport' => 'Postfix'
};
[2009/02/19-11:35:55 - 30992] [TRACKING] DEBUG: Protocol state is
'RCPT', resolving policy...
[2009/02/19-11:35:55 - 30992] [POLICIES] DEBUG: Going to resolve session
data into policy: $VAR1 = {
'Recipient' => 'roc...@rcpt',
'SASLUsername' => '',
'QueueID' => '',
'RecipientData' => '',
'Instance' => '75f5.499d360a.a651d.0',
'EncryptionCipher' => '',
'Size' => '1876',
'EncryptionKeySize' => '0',
'EncryptionProtocol' => '',
'Helo' => 'Mail.CRCSBO.IT',
'ClientAddress' => 'xxx.yyy.zzz.uuu',
'ClientName' => 'unknown',
'Sender' => '',
'SASLSender' => '',
'Protocol' => 'ESMTP',
'ClientReverseName' => 'unknown',
'SASLMethod' => ''
};
[2009/02/19-11:35:55 - 30992] [POLICIES] DEBUG: Found policy member with
ID '1' in policy 'Default'
[2009/02/19-11:35:55 - 30992] [POLICIES] DEBUG: [ID:1/Name:Default]:
Main policy sources '!@'
[2009/02/19-11:35:55 - 30992] [POLICIES] DEBUG: [ID:1/Name:Default]: -
Resolved source '@' to a email blank address specification, match = 1
[2009/02/19-11:35:55 - 30992] [POLICIES] INFO: [ID:1/Name:Default]:
Source matching result: matched=0
[2009/02/19-11:35:55 - 30992] [TRACKING] DEBUG: Policy resolved into:
$VAR1 = {};
[2009/02/19-11:35:55 - 30992] [TRACKING] DEBUG: Request translated into
session data: $VAR1 = {
'Recipient' => 'roc...@rcpt',
'SASLUsername' => '',
'QueueID' => '',
'RecipientData' => '',
'Instance' => '75f5.499d360a.a651d.0',
'EncryptionCipher' => '',
'Size' => '1876',
'EncryptionKeySize' => '0',
'UnixTimestamp' => 1235039754,
'ParsedClientAddress' => {
'Broadcast_Long' => 2533970946,
'Network' => 'xxx.yyy.zzz.uuu',
'IP_Long' => 2533970946,
'Broadcast' => 'xxx.yyy.zzz.uuu',
'IP' => 'xxx.yyy.zzz.uuu',
'Mask_Long' => 4294967295,
'Network_Long' => 2533970946
},
'ProtocolTransport' => 'Postfix',
'EncryptionProtocol' => '',
'Helo' => 'Mail.CRCSBO.IT',
'ClientAddress' => 'xxx.yyy.zzz.uuu',
'ClientName' => 'unknown',
'Sender' => '',
'SASLSender' => '',
'ProtocolState' => 'RCPT',
'Policy' => {},
'Protocol' => 'ESMTP',
'ClientReverseName' => 'unknown',
'SASLMethod' => ''
};
[2009/02/19-11:35:55 - 30992] [CBPOLICYD] DEBUG: Got request, running
modules...
[2009/02/19-11:35:55 - 30992] [CBPOLICYD] DEBUG: Running module: Quotas
Plugin
[2009/02/19-11:35:55 - 30992] [CBPOLICYD] DEBUG: Done with modules
Seems that is matched (Resolved source '@' to a email blank address
specification, match = 1), but then logs say: Source matching result:
matched=0. Its it OK? I can't figure out! Anyway no data is inserted in
" session_tracking" table.
But the same happe for certain email that have a "non blank" envelope
sender, just like the following:
[2009/02/19-11:51:00 - 30989] [CORE] INFO: 2009/02/19-11:51:00 CONNECT
TCP Peer: "127.0.0.1:51877" Local: "127.0.0.1:10031"
[2009/02/19-11:51:00 - 30989] [PROTOCOLS/Postfix] DEBUG: Possible
Postfix protocol
[2009/02/19-11:51:00 - 30989] [PROTOCOLS/Postfix] INFO: Identified
Postfix protocol
[2009/02/19-11:51:00 - 30989] [TRACKING] DEBUG: No session tracking data
exists for request: $VAR1 = {
'ccert_fingerprint' => '',
'sasl_method' => '',
'sasl_sender' => '',
'size' => '395',
'_timestamp' => 1235040660,
'helo_name' => 'LAPVSCAPPATURA',
'reverse_client_name' => 'unknown',
'queue_id' => 'EC27115B832',
'encryption_cipher' => '',
'encryption_protocol' => '',
'etrn_domain' => '',
'ccert_subject' => '',
'request' => 'smtpd_access_policy',
'protocol_state' => 'END-OF-MESSAGE',
'stress' => '',
'_protocol_peeraddr' => '127.0.0.1',
'recipient' => 'roc...@rcpt',
'sasl_username' => '',
'instance' => '78a1.499d3993.e9ee3.0',
'protocol_name' => 'ESMTP',
'encryption_keysize' => '0',
'recipient_count' => '1',
'ccert_issuer' => '',
'sender' => 'roc...@snd',
'client_name' => 'unknown',
'client_address' => 'xxx.yyy.zzz.uuu',
'_protocol_transport' => 'Postfix'
};
[2009/02/19-11:51:00 - 30989] [TRACKING] DEBUG: Protocol state is
'END-OF-MESSAGE', decoding policy...
[2009/02/19-11:51:00 - 30989] [TRACKING] DEBUG: Decoded into: $VAR1 =
undef;
[2009/02/19-11:51:00 - 30989] [TRACKING] DEBUG: Request translated into
session data: $VAR1 = {
'SASLUsername' => '',
'QueueID' => 'EC27115B832',
'RecipientData' => '',
'Instance' => '78a1.499d3993.e9ee3.0',
'EncryptionCipher' => '',
'Size' => '395',
'EncryptionKeySize' => '0',
'UnixTimestamp' => 1235040660,
'ParsedClientAddress' => {
'Broadcast_Long' => 3641487370,
'Network' => 'xxx.yyy.zzz.uuu',
'IP_Long' => 3641487370,
'Broadcast' => 'xxx.yyy.zzz.uuu',
'IP' => 'xxx.yyy.zzz.uuu',
'Mask_Long' => 4294967295,
'Network_Long' => 3641487370
},
'ProtocolTransport' => 'Postfix',
'EncryptionProtocol' => '',
'Helo' => 'LAPVSCAPPATURA',
'ClientAddress' => 'xxx.yyy.zzz.uuu',
'ClientName' => 'unknown',
'Sender' => 'roc...@snd',
'SASLSender' => '',
'ProtocolState' => 'END-OF-MESSAGE',
'Protocol' => 'ESMTP',
'ClientReverseName' => 'unknown',
'SASLMethod' => ''
};
[2009/02/19-11:51:00 - 30989] [CBPOLICYD] DEBUG: Got request, running
modules...
[2009/02/19-11:51:00 - 30989] [CBPOLICYD] DEBUG: Running module: Quotas
Plugin
[2009/02/19-11:51:00 - 30989] [CBPOLICYD] DEBUG: Done with modules
Even if in the latter case I have no clue of matching '@' source
address.
It ther could be sometingh tha does not work still?
rocsca
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users