Hello everyone, I'm trying to configure policyd with postfix under plesk 11
on Centos 6. I have installed cluebringer-v2.1.x-201211111115.tar.gz on my
server with this configuration on main.cf

smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10031,
permit_mynetworks, check_client_access pcre:/var/spool/postfix/plesk/
no_relay.re, permit_sasl_authenticated, reject_unauth_destination
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031

I have created one rule where it should count and limit emails to send to
gmail account, but when I trying to send email from my desktop I'm getting
the following errors:

This is error that I'm getting on maillog of postfix

May 22 21:15:43 mailserver01 postfix/smtpd[10050]: warning: 190.244.50.251:
address not listed for hostname 251-50-244-190.fibertel.com.ar
May 22 21:15:43 mailserver01 postfix/smtpd[10050]: connect from
unknown[190.244.50.251]
May 22 21:15:45 mailserver01 postfix/smtpd[10050]: warning: problem talking
to server 127.0.0.1:10031: Success
May 22 21:15:45 mailserver01 postfix/smtpd[10050]: NOQUEUE: reject: RCPT
from unknown[190.244.50.251]: 451 4.3.5 *Server configuration problem*;
from=<[email protected]> to=<[email protected]> proto=ESMTP
helo=<winxpsabf0de79>
May 22 21:15:45 mailserver01 postfix/smtpd[10050]: disconnect from
unknown[190.244.50.251]
May 22 21:15:45 mailserver01 /usr/lib64/plesk-9.0/psa-pc-remote[11512]:
Message aborted.
May 22 21:15:45 mailserver01 /usr/lib64/plesk-9.0/psa-pc-remote[11512]:
Message aborted.

And the following is the output of debug message of policyd.

[2013/05/22-21:15:44 - 10226] [CORE] INFO: Starting "1" children
[2013/05/22-21:15:44 - 10228] [CORE] INFO: 2013/05/22-21:15:44 CONNECT TCP
Peer: "127.0.0.1:47833" Local: "127.0.0.1:10031"
[2013/05/22-21:15:44 - 10228] [PROTOCOLS/Postfix] DEBUG: Possible Postfix
protocol
[2013/05/22-21:15:44 - 10228] [PROTOCOLS/Postfix] INFO: Identified Postfix
protocol
[2013/05/22-21:15:44 - 10278] [CORE] DEBUG: Child Preforked (10278)
[2013/05/22-21:15:44 - 10278] [CBPOLICYD] DEBUG: Starting up caching engine
[2013/05/22-21:15:44 - 10228] [TRACKING] DEBUG: No session tracking data
exists for request: $VAR1 = {
          'ccert_fingerprint' => '',
          'sasl_method' => 'LOGIN',
          'sasl_sender' => '',
          'size' => 0,
          '_timestamp' => 1369271744,
          'helo_name' => 'winxpsabf0de79',
          'reverse_client_name' => '251-50-244-190.fibertel.com.ar',
          'queue_id' => '',
          'encryption_cipher' => '',
          'encryption_protocol' => '',
          'etrn_domain' => '',
          'ccert_subject' => '',
          'request' => 'smtpd_access_policy',
          'protocol_state' => 'RCPT',
          'stress' => '',
          '_peer_address' => '127.0.0.1',
          'recipient' => '[email protected]',
          'sasl_username' => '[email protected]',
          'instance' => '2742.519d6dc0.810a3.0',
          'protocol_name' => 'ESMTP',
          'encryption_keysize' => '0',
          'recipient_count' => '0',
          'ccert_issuer' => '',
          'sender' => '[email protected]',
          'client_name' => 'unknown',
          'client_address' => '190.244.50.251',
          '_protocol_transport' => 'Postfix'
        };
[2013/05/22-21:15:44 - 10228] [TRACKING] DEBUG: Added session tracking
information for: $VAR1 = {
          'ccert_fingerprint' => '',
          'sasl_method' => 'LOGIN',
          'sasl_sender' => '',
          'size' => 0,
          '_timestamp' => 1369271744,
          'helo_name' => 'winxpsabf0de79',
          'reverse_client_name' => '251-50-244-190.fibertel.com.ar',
          'queue_id' => '',
          'encryption_cipher' => '',
          'encryption_protocol' => '',
          'etrn_domain' => '',
          'ccert_subject' => '',
          'request' => 'smtpd_access_policy',
          'protocol_state' => 'RCPT',
          'stress' => '',
          '_peer_address' => '127.0.0.1',
          'recipient' => '[email protected]',
          'sasl_username' => '[email protected]',
          'instance' => '2742.519d6dc0.810a3.0',
          'protocol_name' => 'ESMTP',
          'encryption_keysize' => '0',
          'recipient_count' => '0',
          'ccert_issuer' => '',
          'sender' => '[email protected]',
          'client_name' => 'unknown',
          'client_address' => '190.244.50.251',
          '_protocol_transport' => 'Postfix'
        };
[2013/05/22-21:15:44 - 10228] [TRACKING] DEBUG: Protocol state is 'RCPT',
resolving policy...
[2013/05/22-21:15:44 - 10228] [POLICIES] DEBUG: Going to resolve session
data into policy: $VAR1 = {
          'Recipient' => '[email protected]',
          'SASLUsername' => '[email protected]',
          'QueueID' => '',
          'RecipientData' => '',
          'Instance' => '2742.519d6dc0.810a3.0',
          'EncryptionCipher' => '',
          'Size' => '0',
          'EncryptionKeySize' => '0',
          'EncryptionProtocol' => '',
          'Helo' => 'winxpsabf0de79',
          'ClientAddress' => '190.244.50.251',
          'ClientName' => 'unknown',
          'Sender' => '[email protected]',
          'SASLSender' => '',
          '_ClientAddress' => bless( {
                                       'raw_ip' => '190.244.50.251',
                                       'ip' => '190.244.50.251',
                                       'ip_version' => 4,
                                       'cidr' => 32
                                     }, 'awitpt::netip' ),
          'Protocol' => 'ESMTP',
          'ClientReverseName' => '251-50-244-190.fibertel.com.ar',
          'SASLMethod' => 'LOGIN'
        };
[2013/05/22-21:15:44 - 10228] [POLICIES] DEBUG: Found policy member with ID
'1' in policy 'Default'
[2013/05/22-21:15:44 - 10228] [POLICIES] DEBUG: Found policy member with ID
'2' in policy 'Default Outbound'
[2013/05/22-21:15:44 - 10228] [POLICIES] DEBUG: Found policy member with ID
'3' in policy 'Default Inbound'
[2013/05/22-21:15:44 - 10228] [POLICIES] DEBUG: Found policy member with ID
'4' in policy 'Default Internal'
[2013/05/22-21:15:44 - 10228] [POLICIES] DEBUG: Found policy member with ID
'5' in policy 'Test'
[2013/05/22-21:15:44 - 10228] [POLICIES] DEBUG: Found policy member with ID
'6' in policy 'STD_Out_domains'
[2013/05/22-21:15:44 - 10228] [POLICIES] DEBUG: Found policy member with ID
'7' in policy 'STD_Out_domains'
[2013/05/22-21:15:44 - 10228] [POLICIES] DEBUG: [ID:1/Name:Default]: Source
not defined or 'any', explicit match: matched=1
[2013/05/22-21:15:44 - 10228] [POLICIES] INFO: [ID:1/Name:Default]: Source
matching result: matched=1
[2013/05/22-21:15:44 - 10228] [POLICIES] DEBUG: [ID:1/Name:Default]:
Destination not defined or 'any', explicit match: matched=1
[2013/05/22-21:15:44 - 10228] [POLICIES] INFO: [ID:1/Name:Default]:
Destination matching result: matched=1
[2013/05/22-21:15:44 - 10228] [POLICIES] DEBUG: [ID:2/Name:Default
Outbound]: Main policy sources '%internal_ips,%internal_domains'
*Can't call method "get" on an undefined value at
/usr/local/lib/cbpolicyd-2.1/awitpt/cache.pm line 256.*
[2013/05/22-21:15:45 - 10226] [CORE] INFO: Starting "1" children
[2013/05/22-21:15:45 - 10229] [CORE] INFO: 2013/05/22-21:15:45 CONNECT TCP
Peer: "127.0.0.1:47834" Local: "127.0.0.1:10031"
[2013/05/22-21:15:45 - 10229] [PROTOCOLS/Postfix] DEBUG: Possible Postfix
protocol
[2013/05/22-21:15:45 - 10229] [PROTOCOLS/Postfix] INFO: Identified Postfix
protocol
[2013/05/22-21:15:45 - 10280] [CORE] DEBUG: Child Preforked (10280)
[2013/05/22-21:15:45 - 10280] [CBPOLICYD] DEBUG: Starting up caching engine
[2013/05/22-21:15:45 - 10229] [TRACKING] DEBUG: Protocol state is 'RCPT',
resolving policy...
[2013/05/22-21:15:45 - 10229] [POLICIES] DEBUG: Going to resolve session
data into policy: $VAR1 = {
          'Recipient' => '[email protected]',
          'SASLUsername' => '[email protected]',
          'QueueID' => '',
          'RecipientData' => undef,
          'EncryptionCipher' => '',
          'Instance' => '2742.519d6dc0.810a3.0',
          'Size' => '0',
          'EncryptionKeySize' => '0',
          'UnixTimestamp' => '1369271744',
          'EncryptionProtocol' => '',
          'Helo' => 'winxpsabf0de79',
          'ClientAddress' => '190.244.50.251',
          'ClientName' => 'unknown',
          'Sender' => '[email protected]',
          'SASLSender' => '',
          '_ClientAddress' => bless( {
                                       'raw_ip' => '190.244.50.251',
                                       'ip' => '190.244.50.251',
                                       'ip_version' => 4,
                                       'cidr' => 32
                                     }, 'awitpt::netip' ),
          'Protocol' => 'ESMTP',
          'ClientReverseName' => '251-50-244-190.fibertel.com.ar',
          'SASLMethod' => 'LOGIN'
        };
[2013/05/22-21:15:45 - 10229] [POLICIES] DEBUG: Found policy member with ID
'1' in policy 'Default'
[2013/05/22-21:15:45 - 10229] [POLICIES] DEBUG: Found policy member with ID
'2' in policy 'Default Outbound'
[2013/05/22-21:15:45 - 10229] [POLICIES] DEBUG: Found policy member with ID
'3' in policy 'Default Inbound'
[2013/05/22-21:15:45 - 10229] [POLICIES] DEBUG: Found policy member with ID
'4' in policy 'Default Internal'
[2013/05/22-21:15:45 - 10229] [POLICIES] DEBUG: Found policy member with ID
'5' in policy 'Test'
[2013/05/22-21:15:45 - 10229] [POLICIES] DEBUG: Found policy member with ID
'6' in policy 'STD_Out_domains'
[2013/05/22-21:15:45 - 10229] [POLICIES] DEBUG: Found policy member with ID
'7' in policy 'STD_Out_domains'
[2013/05/22-21:15:45 - 10229] [POLICIES] DEBUG: [ID:1/Name:Default]: Source
not defined or 'any', explicit match: matched=1
[2013/05/22-21:15:45 - 10229] [POLICIES] INFO: [ID:1/Name:Default]: Source
matching result: matched=1
[2013/05/22-21:15:45 - 10229] [POLICIES] DEBUG: [ID:1/Name:Default]:
Destination not defined or 'any', explicit match: matched=1
[2013/05/22-21:15:45 - 10229] [POLICIES] INFO: [ID:1/Name:Default]:
Destination matching result: matched=1
[2013/05/22-21:15:45 - 10229] [POLICIES] DEBUG: [ID:2/Name:Default
Outbound]: Main policy sources '%internal_ips,%internal_domains'
*Can't call method "get" on an undefined value at
/usr/local/lib/cbpolicyd-2.1/awitpt/cache.pm line 256.*

I don't know what I'm doing wrong or if I'm forget something but it doesn't
work.

Can someone have any idea about that?.

Some packages that it has installed:

perl, v5.10.1
mysql-server-5.1.69
perl-Cache-FastMmap-1.34-1.el6.rf.x86_64


Thanks in advance
-- 
Gustavo
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to