cbpolicy quota module - working via Zimbra web client, not working with smtp emails
Posted: Mon Aug 26, 2013 6:31 pm
Hi,
I have gone thru Postfix Policyd - Zimbra :: Wiki and How-to for cbpolicyd - Zimbra :: Wiki .
I have setup quota policies and limits.
While someting must be wrong, it works OK when I send emails from Zimbra web client, but it does not work for emails sent from Thunderbird (with encrypted smtp to 587 port).
What may I be missing?
Some debugs are:
[2013/08/27-00:25:00 - 17814] [TRACKING] DEBUG: Request translated into session data: $VAR1 = {
'SASLUsername' => '',
'QueueID' => '0A114E3A40',
'RecipientData' => '/#0=1,6;',
'EncryptionCipher' => '',
'Instance' => '4c85.521bd5bb.de80e.0',
'Size' => '1',
'EncryptionKeySize' => '0',
'UnixTimestamp' => 1377555900,
'ProtocolTransport' => 'Postfix',
'EncryptionProtocol' => '',
'Helo' => 'OFFICE.xxx.xxx',
'ClientAddress' => '192.168.47.50',
'ClientName' => 'yyy.xxx.xxx',
'Sender' => 'piotr@xxx.xxx',
'SASLSender' => '',
'_ClientAddress' => bless( {
'raw_ip' => '192.168.47.50',
'ip' => '192.168.47.50',
'ip_version' => 4,
'cidr' => 32
}, 'awitpt::netip' ),
'ProtocolState' => 'END-OF-MESSAGE',
'_Recipient_To_Policy' => {
'pkam@XXX' => {
'0' => [
'1',
'6'
]
}
},
'Protocol' => 'ESMTP',
'ClientReverseName' => 'yyy.xxx.xxx',
'SASLMethod' => ''
};
This is followed by
[2013/08/27-00:24:59 - 17814] [CBPOLICYD] DEBUG: Running module: Quotas Plugin
[2013/08/27-00:25:00 - 17814] [CORE] INFO: module=Quotas, mode=update, host=192.168.47.50,
[cut]
And the bad one:
[2013/08/27-01:00:48 - 17815] [TRACKING] DEBUG: Request translated into session data: $VAR1 = {
'SASLUsername' => 'piotr@xxx.xxx',
'QueueID' => '2567EE3A42',
'RecipientData' => '',
'Instance' => '6ee1.521bde20.1a1cf.0',
'EncryptionCipher' => 'ECDHE-RSA-AES256-SHA',
'Size' => '1',
'EncryptionKeySize' => '256',
'UnixTimestamp' => 1377558048,
'ProtocolTransport' => 'Postfix',
'EncryptionProtocol' => 'TLSv1',
'Helo' => '[192.168.47.201]',
'ClientAddress' => '192.168.47.1',
'ClientName' => 'unknown',
'Sender' => 'piotr@xxx.xxx',
'SASLSender' => '',
'_ClientAddress' => bless( {
'raw_ip' => '192.168.47.1',
'ip' => '192.168.47.1',
'ip_version' => 4,
'cidr' => 32
}, 'awitpt::netip' ),
'ProtocolState' => 'END-OF-MESSAGE',
'Protocol' => 'ESMTP',
'ClientReverseName' => 'unknown',
'SASLMethod' => 'PLAIN'
};
This is followed by
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] INFO: Got request #1
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: Access Control Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'Access Control Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: HELO/EHLO Check Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'HELO/EHLO Check Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: SPF Check Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'SPF Check Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: Greylisting Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'Greylisting Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: Quotas Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'Quotas Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: Accounting Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'Accounting Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Done with modules
[2013/08/27-01:00:48 - 28390] [CORE] DEBUG: Child Preforked (28390)
[2013/08/27-01:00:48 - 28390] [CBPOLICYD] DEBUG: Starting up caching engine
Please help! I have run out of ideas where to look for a mistake.
Regards
Piotr
I have gone thru Postfix Policyd - Zimbra :: Wiki and How-to for cbpolicyd - Zimbra :: Wiki .
I have setup quota policies and limits.
While someting must be wrong, it works OK when I send emails from Zimbra web client, but it does not work for emails sent from Thunderbird (with encrypted smtp to 587 port).
What may I be missing?
Some debugs are:
[2013/08/27-00:25:00 - 17814] [TRACKING] DEBUG: Request translated into session data: $VAR1 = {
'SASLUsername' => '',
'QueueID' => '0A114E3A40',
'RecipientData' => '/#0=1,6;',
'EncryptionCipher' => '',
'Instance' => '4c85.521bd5bb.de80e.0',
'Size' => '1',
'EncryptionKeySize' => '0',
'UnixTimestamp' => 1377555900,
'ProtocolTransport' => 'Postfix',
'EncryptionProtocol' => '',
'Helo' => 'OFFICE.xxx.xxx',
'ClientAddress' => '192.168.47.50',
'ClientName' => 'yyy.xxx.xxx',
'Sender' => 'piotr@xxx.xxx',
'SASLSender' => '',
'_ClientAddress' => bless( {
'raw_ip' => '192.168.47.50',
'ip' => '192.168.47.50',
'ip_version' => 4,
'cidr' => 32
}, 'awitpt::netip' ),
'ProtocolState' => 'END-OF-MESSAGE',
'_Recipient_To_Policy' => {
'pkam@XXX' => {
'0' => [
'1',
'6'
]
}
},
'Protocol' => 'ESMTP',
'ClientReverseName' => 'yyy.xxx.xxx',
'SASLMethod' => ''
};
This is followed by
[2013/08/27-00:24:59 - 17814] [CBPOLICYD] DEBUG: Running module: Quotas Plugin
[2013/08/27-00:25:00 - 17814] [CORE] INFO: module=Quotas, mode=update, host=192.168.47.50,
[cut]
And the bad one:
[2013/08/27-01:00:48 - 17815] [TRACKING] DEBUG: Request translated into session data: $VAR1 = {
'SASLUsername' => 'piotr@xxx.xxx',
'QueueID' => '2567EE3A42',
'RecipientData' => '',
'Instance' => '6ee1.521bde20.1a1cf.0',
'EncryptionCipher' => 'ECDHE-RSA-AES256-SHA',
'Size' => '1',
'EncryptionKeySize' => '256',
'UnixTimestamp' => 1377558048,
'ProtocolTransport' => 'Postfix',
'EncryptionProtocol' => 'TLSv1',
'Helo' => '[192.168.47.201]',
'ClientAddress' => '192.168.47.1',
'ClientName' => 'unknown',
'Sender' => 'piotr@xxx.xxx',
'SASLSender' => '',
'_ClientAddress' => bless( {
'raw_ip' => '192.168.47.1',
'ip' => '192.168.47.1',
'ip_version' => 4,
'cidr' => 32
}, 'awitpt::netip' ),
'ProtocolState' => 'END-OF-MESSAGE',
'Protocol' => 'ESMTP',
'ClientReverseName' => 'unknown',
'SASLMethod' => 'PLAIN'
};
This is followed by
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] INFO: Got request #1
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: Access Control Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'Access Control Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: HELO/EHLO Check Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'HELO/EHLO Check Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: SPF Check Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'SPF Check Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: Greylisting Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'Greylisting Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: Quotas Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'Quotas Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Running module: Accounting Plugin
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Module 'Accounting Plugin' returned CBP_SKIP
[2013/08/27-01:00:48 - 17815] [CBPOLICYD] DEBUG: Done with modules
[2013/08/27-01:00:48 - 28390] [CORE] DEBUG: Child Preforked (28390)
[2013/08/27-01:00:48 - 28390] [CBPOLICYD] DEBUG: Starting up caching engine
Please help! I have run out of ideas where to look for a mistake.
Regards
Piotr