Rocco Scappatura wrote:
>
>
>>>> Please enable full debugging and paste the entire log. This is only a
>>>> portion of it.
>>>>
>>>>
>>> I ve sent you the entire log (3MB), but the max size accepted by mailing
>>> list is 40KB. Please exactly what I have to sent or if you can read my
>>> log file...
>>>
>>>
>> 1. Remove the Amavis.pm module and remove it from your config. This is
>> not required or supported in 2.0.5. In trunk it has a special feature
>> where by tracking of mail is dynamically enabled and disabled.
>>
>
> - I have deleted Amavis.pm.
> - I have removed the entries:
>
> Amavis (from Modules to load)
> and
> # Amavis module
> [Amavis]
> enable=1
>
> - I have restarted policyd
>
>
>> 2. Amavis integration is simply a plugin to amavisd which requires the
>> patch to be applied to a vanilla amavisd to work (as it adds an
>> additional hook). This plugin then checks the mail tracking table and
>> pulls out the policy matched in policyd for the mail-id it gets from the
>> last received: header, it then pulls in the amavis config for the
>> policies that were matched. Make sure you have patched a vanilla version
>> of amavis, all you need is the one file for it to work.
>>
>
> I ve already patched amavisd, as explained in INSTALL file of source package.
>
>
>> 3. You will see entries in your session tracking table. This is what the
>> amavisd plugin uses.
>>
>
> Here the output generated for a message sent by the email address
> belonging to the Group whose is member of a policy bound to an amavis
> module.
>
> [2008/12/19-01:00:04 - 20054] [CBPOLICYD] DEBUG: Got request, running
> modules...
> [2008/12/19-01:00:04 - 20054] [CBPOLICYD] DEBUG: Running module: Quotas
> Plugin
> [2008/12/19-01:00:04 - 20054] [CBPOLICYD] DEBUG: Done with modules
> [2008/12/19-01:00:05 - 20055] [CORE] INFO: 2008/12/19-01:00:05 CONNECT TCP
> Peer: "127.0.0.1:33172" Local: "127.0.0.1:10031"
> [2008/12/19-01:00:05 - 20055] [PROTOCOLS/Postfix] DEBUG: Possible Postfix
> protocol
> [2008/12/19-01:00:05 - 20055] [PROTOCOLS/Postfix] INFO: Identified Postfix
> protocol
> [2008/12/19-01:00:05 - 20055] [TRACKING] DEBUG: No session tracking data
> exists for request: $VAR1 = {
> 'ccert_fingerprint' => '',
> 'sasl_method' => '',
> 'sasl_sender' => '',
> 'size' => '4798',
> '_timestamp' => 1229644805,
> 'helo_name' => 'sttspa.it',
> 'reverse_client_name' => 'unknown',
> 'queue_id' => 'DE6E6226F14',
> 'encryption_cipher' => '',
> 'encryption_protocol' => '',
> 'etrn_domain' => '',
> 'ccert_subject' => '',
> 'request' => 'smtpd_access_policy',
> 'protocol_state' => 'END-OF-MESSAGE',
> 'recipient' => '[email protected]',
> 'sasl_username' => '',
> 'instance' => '2f56.494ae3f1.5c8e8.0',
> 'protocol_name' => 'SMTP',
> 'encryption_keysize' => '0',
> 'recipient_count' => '1',
> 'ccert_issuer' => '',
> 'sender' => '[email protected]',
> 'client_name' => 'unknown',
> 'client_address' => '10.166.231.245',
> '_protocol_transport' => 'Postfix'
> };
> 'SASLUsername' => '',
> 'QueueID' => 'DE6E6226F14',
> 'RecipientData' => '',
> 'Instance' => '2f56.494ae3f1.5c8e8.0',
> 'EncryptionCipher' => '',
> 'Size' => '4798',
> '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' => 'mydomain.tld',
> 'ClientAddress' => '10.166.231.245',
> 'ClientName' => 'unknown',
> 'Sender' => 'email@<testdomain.tld>',
> 'SASLSender' => '',
> 'Timestamp' => 1229644805,
> 'ProtocolState' => 'END-OF-MESSAGE',
> '_Recipient_To_Policy' => {},
> 'Protocol' => 'SMTP',
> 'ClientReverseName' => 'unknown',
> 'SASLMethod' => ''
> };
>
>
That sender looks odd .... email@<testdomain.tld> is not a valid email
address?
You should see more data, that is just the policyd side, not the amavisd
plugin side. You should also have an entry in your session_tracking
table after the message has passed through policyd.
Regards
Nigel
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users