Hello,
i'm testing the 2.0.12 version of policyd. It seems like if
it cannot update quotas tracking information. I've found similar threads
with this problem but these solutions seems not working for me. I hope
you can help me.
This is clue conf i'm using:
[server]
protocols=<<EOT
Postfix
EOT
modules=<<EOT
Core
Quotas
EOT
log_level=9
log_file=/var/log/cbpolicyd.log
log_mail=daemon@syslog:native
log_mail=maillog
log_detail=tracking,
policies,
modules
proto=tcp
host=0.0.0.0/0
port=10031
timeout=120
[database]
DSN=DBI:mysql:database=policyd;host=localhost
Username=policyd
Password=policyd
bypass_mode=tempfail
bypass_timeout=30
[AccessControl]
enable=0
[Accounting]
enable=0
[Amavis]
[CheckHelo]
enable=0
[CheckSPF]
enable=0
[Greylisting]
enable=0
[Quotas]
enable=1
---------------
---------------
This is cb log:
[2012/09/19-18:51:33 - 2742] [CORE] NOTICE: Process
Backgrounded
[2012/09/19-18:51:33 - 2742] [CBPOLICYD] NOTICE: Policyd v2
/ Cluebringer - v2.0.12
[2012/09/19-18:51:33 - 2742] [CBPOLICYD] NOTICE:
Initializing system modules.
[2012/09/19-18:51:33 - 2742] [CBPOLICYD]
NOTICE: System modules initialized.
[2012/09/19-18:51:33 - 2742]
[CBPOLICYD] NOTICE: Module load started...
[2012/09/19-18:51:33 - 2742]
[CORE] NOTICE: => Quotas: enabled
[2012/09/19-18:51:33 - 2742] [CORE]
NOTICE: => Protocol(Postfix): enabled
[2012/09/19-18:51:33 - 2742]
[CBPOLICYD] NOTICE: Module load done.
[2012/09/19-18:51:33 - 2742]
[CBPOLICYD] DEBUG: Opening syslog, destination = 'native', facility =
'ARRAY(0x172b520)'.
[2012/09/19-18:51:33 - 2742] [CORE] NOTICE:
2012/09/19-18:51:33 cbp (type Net::Server::PreFork) starting!
pid(2742)
[2012/09/19-18:51:33 - 2742] [CORE] NOTICE: Binding to TCP
port 10031 on host 192.168.0.154 with IPv4
[2012/09/19-18:51:33 - 2742]
[CORE] WARNING: Group Not Defined. Defaulting to EGID '0 0 1 2 3 4 6
10'
[2012/09/19-18:51:33 - 2742] [CORE] WARNING: User Not Defined.
Defaulting to EUID '0'
[2012/09/19-18:51:33 - 2742] [CORE] INFO: Setting
up serialization via flock
[2012/09/19-18:51:33 - 2742] [CORE] INFO:
Beginning prefork (4 processes)
[2012/09/19-18:51:33 - 2742] [CORE]
INFO: Starting "4" children
[2012/09/19-18:51:33 - 2743] [CORE] DEBUG:
Child Preforked (2743)
[2012/09/19-18:51:33 - 2743] [CBPOLICYD] DEBUG:
Starting up caching engine
[2012/09/19-18:51:33 - 2744] [CORE] DEBUG:
Child Preforked (2744)
[2012/09/19-18:51:33 - 2744] [CBPOLICYD] DEBUG:
Starting up caching engine
[2012/09/19-18:51:33 - 2745] [CORE] DEBUG:
Child Preforked (2745)
[2012/09/19-18:51:33 - 2745] [CBPOLICYD] DEBUG:
Starting up caching engine
[2012/09/19-18:51:33 - 2742] [CORE] DEBUG:
Parent ready for children.
[2012/09/19-18:51:33 - 2746] [CORE] DEBUG:
Child Preforked (2746)
[2012/09/19-18:51:33 - 2746] [CBPOLICYD] DEBUG:
Starting up caching engine
[2012/09/19-18:52:06 - 2742] [CORE] INFO:
Starting "1" children
[2012/09/19-18:52:06 - 2746] [CORE] INFO:
2012/09/19-18:52:06 CONNECT TCP Peer: "[192.168.0.154]:60171" Local:
"[192.168.0.154]:10031"
[2012/09/19-18:52:06 - 2746] [TRACKING] DEBUG:
No session tracking data exists for request: $VAR1 = {
'ccert_fingerprint' => '',
'sasl_method' => 'PLAIN',
'sasl_sender' =>
'',
'size' => 450,
'_timestamp' => 1348066326,
'helo_name' =>
'[192.168.1.107]',
'reverse_client_name' => 'PC107',
'queue_id' =>
'833626B424FD',
'encryption_cipher' => '',
'encryption_protocol' =>
'',
'etrn_domain' => '',
'ccert_subject' => '',
'request' =>
'smtpd_access_policy',
'protocol_state' => 'END-OF-MESSAGE',
'stress'
=> '',
'recipient' => '[email protected]',
'sasl_username' =>
'[email protected]',
'instance' => 'ae3.5059dc0c.2cdd9.0',
'protocol_name' => 'ESMTP',
'encryption_keysize' => '0',
'recipient_count' => '1',
'ccert_issuer' => '',
'sender' =>
'[email protected]',
'client_name' => 'PC107',
'client_address' =>
'192.168.0.107',
'_protocol_transport' => 'Postfix'
};
[2012/09/19-18:52:06 - 2798] [CORE] DEBUG: Child Preforked
(2798)
[2012/09/19-18:52:06 - 2746] [TRACKING] DEBUG: Protocol state is
'END-OF-MESSAGE', decoding policy...
[2012/09/19-18:52:06 - 2746]
[TRACKING] DEBUG: Decoded into: $VAR1 = {};
[2012/09/19-18:52:06 - 2798]
[CBPOLICYD] DEBUG: Starting up caching engine
[2012/09/19-18:52:06 -
2746] [TRACKING] DEBUG: Request translated into session data: $VAR1 = {
'SASLUsername' => '[email protected]',
'QueueID' =>
'833626B424FD',
'RecipientData' => '',
'Instance' =>
'ae3.5059dc0c.2cdd9.0',
'EncryptionCipher' => '',
'Size' => '1',
'EncryptionKeySize' => '0',
'ParsedClientAddress' => {
'Broadcast_Long' => 1361870346,
'Network' => '192.168.0.107',
'IP_Long' => 1361870346,
'Broadcast' => '192.168.0.107',
'IP' =>
'192.168.0.107',
'Mask_Long' => 4294967295,
'Network_Long' =>
1361870346
},
'ProtocolTransport' => 'Postfix',
'EncryptionProtocol'
=> '',
'Helo' => '[192.168.1.107]',
'ClientAddress' =>
'192.168.0.107',
'ClientName' => 'PC107',
'Sender' =>
'[email protected]',
'SASLSender' => '',
'Timestamp' => 1348066326,
'ProtocolState' => 'END-OF-MESSAGE',
'_Recipient_To_Policy' => {},
'Protocol' => 'ESMTP',
'ClientReverseName' => 'PC107',
'SASLMethod' =>
'PLAIN'
};
[2012/09/19-18:52:06 - 2746] [CBPOLICYD] DEBUG: Got request,
running modules...
[2012/09/19-18:52:06 - 2746] [CBPOLICYD] DEBUG:
Running module: Quotas Plugin
[2012/09/19-18:52:06 - 2746] [CBPOLICYD]
DEBUG: Done with modules
---------------
---------------
This is
postfix's main.cf conf:
smtpd_recipient_restrictions =
permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination,
check_policy_service inet:192.168.0.154:10031
smtpd_end_of_data_restrictions = check_policy_service
inet:192.168.0.154:10031
---------------
---------------
If i
query quotas_tracking it return empty:
mysql> select * from
quotas_tracking;
Empty set (0.00 sec)
Regards
Pablo
--
PABLO
SARRIA
[email protected] _______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org