Hi Zhang~ I've find the way to set the policyd v2 which is at www.zhengjinjun.com/?p=133 . Cause the policyd seems doesn't worl at all, I check the log file as below.
===============================================================================================
[2013/07/11-15:26:37 - 4209] [CORE] NOTICE: 2013/07/11-15:26:37 Server closing!
[2013/07/11-15:34:35 - 2450] [CORE] NOTICE: 2013/07/11-15:34:35 Server closing!
[2013/07/11-15:35:50 - 2134] [CORE] NOTICE: Process Backgrounded
[2013/07/11-15:35:50 - 2134] [CBPOLICYD] NOTICE: Policyd v2 / Cluebringer - v2.0.11a-debian
[2013/07/11-15:35:50 - 2134] [CBPOLICYD] NOTICE: Initializing system modules.
[2013/07/11-15:35:50 - 2134] [CBPOLICYD] NOTICE: System modules initialized.
[2013/07/11-15:35:50 - 2134] [CBPOLICYD] NOTICE: Module load started...
[2013/07/11-15:35:50 - 2134] [CORE] NOTICE: => AccessControl: enabled
[2013/07/11-15:35:50 - 2134] [CORE] NOTICE: => CheckHelo: enabled
[2013/07/11-15:35:50 - 2134] [CORE] NOTICE: => CheckSPF: enabled
[2013/07/11-15:35:50 - 2134] [CORE] NOTICE: => Greylisting: enabled
[2013/07/11-15:35:50 - 2134] [CORE] NOTICE: => Quotas: enabled
[2013/07/11-15:35:50 - 2134] [CORE] NOTICE: => Protocol(Postfix): enabled
[2013/07/11-15:35:50 - 2134] [CORE] NOTICE: => Protocol(Bizanga): enabled
[2013/07/11-15:35:50 - 2134] [CBPOLICYD] NOTICE: Module load done.
[2013/07/11-15:35:50 - 2134] [CORE] NOTICE: 2013/07/11-15:35:50 cbp (type Net::Server::PreFork) starting! pid(2134)
[2013/07/11-15:35:50 - 2134] [CORE] NOTICE: Using default listen value of 128
[2013/07/11-15:35:50 - 2134] [CORE] NOTICE: Binding to TCP port 10031 on host 127.0.0.1
[2013/07/11-15:38:14 - 2988] [CORE] ERROR: 2013/07/11-15:38:14 Pid_file already exists for running process (2134)... aborting
at line 278 in file /usr/share/perl5/Net/Server.pm
[2013/07/11-15:38:14 - 2988] [CORE] NOTICE: 2013/07/11-15:38:14 Server closing!
===============================================================================================
And the problem part of Server.pm as below:
Line 272) ### see if a daemon is already running
Line 273) if( defined $prop->{pid_file} ){
Line 274) if( ! eval{ check_pid_file( $prop->{pid_file} ) } ){
Line 275) if (! $ENV{BOUND_SOCKETS}) {
Line 276) warn $@;
Line 277) }
Line 278) $self->fatal( $@ );
Line 279) }
Line 280) }
===============================================================================================
Can you tell me what's going on? And how to resolve it ? Thx a lot~