> >> I have set up policyd v2 to use Amavis module.
> >>
> >> But I m a little bit puzzled..
> >>
> >> I ve defined a Group (Group_test={email@<testdomain>}).
> >>
> >> I ve defined a Policy linked to the group Group_test (I ve enabled
> it
> >> and disabled the others).
> >>
> >> Finally I defined an Amavis rule, so that spam check is bypassedm,
> >> linked to Policy created above. (Im sure that amavis module il
> loaded
> >> and enabled).
> >>
> >> But SPAM is still checked.
> >>
> >> I can't figure out what kind of checking I have to do. Neverthless
I
> >> can
> >> find any clue to get Policyd to work as I would like.
> >>
> >
> > It would be nice to have some reasonable answers..
> >
> You've not given much data to allow us to help you, provide a full
> debug
> output of policyd v2 for the problem you have.
> 
> Also provide a mysql dump of the tables involved.

Thanks Nigel:

Here the log that I have collected, sending a mail destined to
email@<testdomain>

[2008/12/18-13:42:08 - 12594] [CORE] INFO: 2008/12/18-13:42:08 CONNECT
TCP Peer: "127.0.0.1:42472" Local: "127.0.0.1:10031"
[2008/12/18-13:42:08 - 12594] [PROTOCOLS/Postfix] DEBUG: Possible
Postfix protocol
[2008/12/18-13:42:08 - 12594] [PROTOCOLS/Postfix] INFO: Identified
Postfix protocol
[2008/12/18-13:42:08 - 12594] [TRACKING] DEBUG: No session tracking data
exists for request: $VAR1 = {
          'ccert_fingerprint' => '',
          'sasl_method' => '',
          'sasl_sender' => '',
          'size' => '4785',
          '_timestamp' => 1229604128,
          'helo_name' => 'domain.tld',
          'reverse_client_name' => 'unknown',
          'queue_id' => '877B22273FC',
          'encryption_cipher' => '',
          'encryption_protocol' => '',
          'etrn_domain' => '',
          'ccert_subject' => '',
          'request' => 'smtpd_access_policy',
          'protocol_state' => 'END-OF-MESSAGE',
          'recipient' => '[email protected]',
          'sasl_username' => '',
          'instance' => '26a2.494a4509.4a470.0',
          'protocol_name' => 'SMTP',
          'encryption_keysize' => '0',
          'recipient_count' => '1',
          'ccert_issuer' => '',
          'sender' => 'email@<testdomain>',
          'client_name' => 'unknown',
          'client_address' => '10.166.231.245',
          '_protocol_transport' => 'Postfix'
        };
[2008/12/18-13:42:08 - 12594] [TRACKING] DEBUG: Protocol state is
'END-OF-MESSAGE', decoding policy...
[2008/12/18-13:42:08 - 12594] [TRACKING] DEBUG: Decoded into: $VAR1 =
{};
[2008/12/18-13:42:08 - 12594] [TRACKING] DEBUG: Request translated into
session data: $VAR1 = {
          'SASLUsername' => '',
          'QueueID' => '877B22273FC',
          'RecipientData' => '',
          'Instance' => '26a2.494a4509.4a470.0',
          'EncryptionCipher' => '',
          'Size' => '4785',
          'EncryptionKeySize' => '0',
          'ParsedClientAddress' => {
                                     'Broadcast_Long' => 178710517,
                                     'Network' => '10.166.231.245',
                                     'IP_Long' => 178710517,
                                     'Broadcast' => '10.166.231.245',
                                     'IP' => '10.166.231.245',
                                     'Mask_Long' => 4294967295,
                                     'Network_Long' => 178710517
                                   },
          'ProtocolTransport' => 'Postfix',
          'EncryptionProtocol' => '',
          'Helo' => 'domain.tld',
          'ClientAddress' => '10.166.231.245',
          'ClientName' => 'unknown',
          'Sender' => 'email@<testdomain>',
          'SASLSender' => '',
          'Timestamp' => 1229604128,
          'ProtocolState' => 'END-OF-MESSAGE',
          '_Recipient_To_Policy' => {},
          'Protocol' => 'SMTP',
          'ClientReverseName' => 'unknown',
          'SASLMethod' => ''
        };
[2008/12/18-13:42:08 - 12594] [CBPOLICYD] DEBUG: Got request, running
modules...
[2008/12/18-13:42:08 - 12594] [CBPOLICYD] DEBUG: Running module: Quotas
Plugin
[2008/12/18-13:42:08 - 12594] [CBPOLICYD] DEBUG: Done with modules

Here amavis log entry:

  amavis[15245]: (15245-01-30) Passed CLEAN, LOCAL [10.166.231.245]
[63.10.249.142] <email@<testdomain>> -> <[email protected]>, Message-ID:
<N1msdrbJXNPfV4wg9>, mail_id: u38-HPEOs0eP, Hits: 3.771, size: 4860,
queued_as: 1157D2271B4, 12469 ms

so the message has been scanned against spam. While I defined an amavis
module applied to "<email@<testdomain>>" in which I have set Spam scan
off.

Where is the mistake?

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

Reply via email to