Ok, cleanup and reinstall.
At policyd log I get now: (only amavis module enable to debug)
[2009/02/25-12:00:35 - 15810] [CBPOLICYD] NOTICE: Policyd v2 /
Cluebringer - v2.1.0a
[2009/02/25-12:00:35 - 15810] [CBPOLICYD] NOTICE: Initializing system
modules.
[2009/02/25-12:00:35 - 15810] [CBPOLICYD] NOTICE: System modules
initialized.
[2009/02/25-12:00:35 - 15810] [CBPOLICYD] NOTICE: Module load started...
[2009/02/25-12:00:35 - 15810] [CORE] NOTICE: => AccessControl: disabled
[2009/02/25-12:00:35 - 15810] [CORE] NOTICE: => Accounting: disabled
[2009/02/25-12:00:35 - 15810] [CORE] NOTICE: => Amavis: enabled
[2009/02/25-12:00:35 - 15810] [CORE] NOTICE: => CheckHelo: disabled
[2009/02/25-12:00:35 - 15810] [CORE] NOTICE: => CheckSPF: disabled
[2009/02/25-12:00:35 - 15810] [CORE] NOTICE: => Greylisting: disabled
[2009/02/25-12:00:35 - 15810] [CORE] NOTICE: => Quotas: disabled
[2009/02/25-12:00:35 - 15810] [CORE] NOTICE: => Protocol(Postfix): enabled
[2009/02/25-12:00:35 - 15810] [CORE] NOTICE: => Protocol(Bizanga): enabled
[2009/02/25-12:00:35 - 15810] [CBPOLICYD] NOTICE: Module load done.
[2009/02/25-12:00:35 - 15810] [CBPOLICYD] NOTICE: Session tracking is
ENABLED.
[2009/02/25-12:00:35 - 15810] [CBPOLICYD] DEBUG: Opening syslog.
[2009/02/25-12:00:35 - 15810] [CBPOLICYD] DEBUG: Syslog open.
But when policyd service is running I get:
[2009/02/25-12:02:01 - 15812] [CBPOLICYD] DEBUG: Got request, running
modules...
[2009/02/25-12:02:01 - 15812] [CBPOLICYD] DEBUG: Running module: Access
Control Plugin
[2009/02/25-12:02:01 - 15812] [CBPOLICYD] DEBUG: Running module:
HELO/EHLO Check Plugin
[2009/02/25-12:02:01 - 15812] [CBPOLICYD] DEBUG: Running module: SPF
Check Plugin
[2009/02/25-12:02:01 - 15812] [CBPOLICYD] DEBUG: Running module:
Greylisting Plugin
[2009/02/25-12:02:01 - 15812] [CBPOLICYD] DEBUG: Running module: Quotas
Plugin
[2009/02/25-12:02:01 - 15812] [CBPOLICYD] DEBUG: Running module:
Accounting Plugin
[2009/02/25-12:02:01 - 15812] [CBPOLICYD] DEBUG: Done with modules
I can't see any "Running module: Amavis Plugin". :-(
And at maillog, when amavis get a messages it shows:
Feb 25 11:57:57 mail amavis[14878]: (14878-06) (!!)[TRACKING] ERROR: No
session data
Feb 25 11:57:57 mail amavis[14878]: (14878-06)
(!)policyd/process_policy: No session data found
and at outbound messages it shows:
Feb 25 12:02:25 hermes amavis[14879]: (14879-09)
(!)policyd/process_policy: Failed to parse in queue id from received
line ' from USER ([XX.XX.XX.XX])\n\tby mail.example.com (Postfix) with
ESMTPA id 2CC8F84DF45\n\tfor <u...@other_example.com>; Wed, 25 Feb 2009
12:00:24 +0100 (CET)\n'
I realized that modules Amavis.pm and Quotas.pm has the same priority,
50. I modified Quota module to a lower priority, 40.
Thanks.
Nigel Kukard escribió:
> Antonio J. wrote:
>
>> Sorry for my persistence.
>> Resume of my steps:
>>
>> 1.- Update from subversion r422. Replaced files :
>> cluebringer/trunk/cbpadmin
>> cluebringer/trunk/cbpolicyd
>> cluebringer/trunk/cbp/*
>> cluebringer/trunk/cluebringer.conf
>>
>> 2.- Patched "amavisd-new-2.5.4" with
>> "amavisd-new-2.5.3_policyd-200802070918.patch".
>> Updated cluebringer/trunk/contrib/amavisd-policyd.pm
>>
>> 3.- Added include_config_files("...") at amavisd.conf with
>> amavisd-policyd.pm path
>>
>> 4.- Attached my clueringer.conf
>>
>> Now I get this error at maillog:
>>
>> Feb 24 19:56:34 mail amavis[31028]: (31028-01) (!!)[TRACKING] ERROR:
>> Failed to select session tracking info: cbp::dblayer::DBSelect(111):
>> Error executing select '\n\t\tSELECT\n\t\t\tInstance,
>> QueueID,\n\t\t\tUnixTimestamp,\n\t\t\tClientAddress, ClientName,
>> ClientReverseName,\n\t\t\tProtocol,\n\t\t\tEncryptionPr
>> otocol, EncryptionCipher, EncryptionKeySize,\n\t\t\tSASLMethod,
>> SASLSender,
>> SASLUsername,\n\t\t\tHelo,\n\t\t\tSender,\n\t\t\tSize,\n\t\t\tRecipientData\n\t\tFROM\n\t\t\tsession_tracking\n\t\tWHERE\n\t\t\tQueueID
>> = ?\n\t\t\tAND ClientAddress = ?\n\t\t\tAND Sender = ?\n\t\t': no such
>> table: session_tracking(1) at dbdimp.c line 271
>>
> "no such table" <= why is this?
>
>
>> And at policyd.log shows that amavis module doesn't start:
>>
>> [2009/02/24-19:46:43 - 30706] [CBPOLICYD] NOTICE: Policyd v2 /
>> Cluebringer - v2.1.0a
>> [2009/02/24-19:46:43 - 30706] [CBPOLICYD] NOTICE: Initializing system
>> modules.
>> [2009/02/24-19:46:43 - 30706] [CBPOLICYD] NOTICE: System modules
>> initialized.
>> [2009/02/24-19:46:43 - 30706] [CBPOLICYD] NOTICE: Module load started...
>> [2009/02/24-19:46:43 - 30706] [CORE] NOTICE: => AccessControl: enabled
>> [2009/02/24-19:46:43 - 30706] [CORE] NOTICE: => Accounting: enabled
>> [2009/02/24-19:46:44 - 30706] [CORE] NOTICE: => CheckHelo: enabled
>> [2009/02/24-19:46:44 - 30706] [CORE] NOTICE: => CheckSPF: enabled
>> [2009/02/24-19:46:44 - 30706] [CORE] NOTICE: => Greylisting: enabled
>> [2009/02/24-19:46:44 - 30706] [CORE] NOTICE: => Quotas: enabled
>> [2009/02/24-19:46:44 - 30706] [CORE] NOTICE: => Protocol(Postfix):
>> enabled
>> [2009/02/24-19:46:44 - 30706] [CORE] NOTICE: => Protocol(Bizanga):
>> enabled
>> [2009/02/24-19:46:44 - 30706] [CBPOLICYD] NOTICE: Module load done.
>>
>> I use mysql database. I observed that policyd is putting info into
>> database. There are data at session_tracking table.
>>
>>
>
> Using a clean installation of policyd from trunk, without changing any
> files whatsoever. I get this ....
>
> [2009/02/25-05:47:12 - 19590] [CBPOLICYD] NOTICE: Policyd v2 /
> Cluebringer - v2.1.0a
> [2009/02/25-05:47:12 - 19590] [CBPOLICYD] NOTICE: Initializing system
> modules.
> [2009/02/25-05:47:12 - 19590] [CBPOLICYD] NOTICE: System modules
> initialized.
> [2009/02/25-05:47:12 - 19590] [CBPOLICYD] NOTICE: Module load started...
> [2009/02/25-05:47:12 - 19590] [CORE] NOTICE: => AccessControl: enabled
> [2009/02/25-05:47:12 - 19590] [CORE] NOTICE: => Accounting: enabled
> [2009/02/25-05:47:12 - 19590] [CORE] NOTICE: => Amavis: disabled
> [2009/02/25-05:47:12 - 19590] [CORE] NOTICE: => CheckHelo: enabled
> [2009/02/25-05:47:12 - 19590] [CORE] NOTICE: => CheckSPF: enabled
> [2009/02/25-05:47:12 - 19590] [CORE] NOTICE: => Greylisting: enabled
> [2009/02/25-05:47:12 - 19590] [CORE] NOTICE: => Quotas: enabled
> [2009/02/25-05:47:12 - 19590] [CORE] NOTICE: => Protocol(Postfix): enabled
> [2009/02/25-05:47:12 - 19590] [CORE] NOTICE: => Protocol(Bizanga): enabled
> [2009/02/25-05:47:12 - 19590] [CBPOLICYD] NOTICE: Module load done.
> [2009/02/25-05:47:12 - 19590] [CBPOLICYD] NOTICE: Session tracking is
> ENABLED.
> [2009/02/25-05:47:12 - 19590] [CBPOLICYD] DEBUG: Opening syslog.
> [2009/02/25-05:47:12 - 19590] [CBPOLICYD] DEBUG: Syslog open.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.policyd.org/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users