On 18/10/2012 23:53, Gustavo Etchudez wrote:
2012/10/18 Nigel Kukard <[email protected] <mailto:[email protected]>> On 18/10/2012 15:38, Gustavo Etchudez wrote:Hello everyone, I'm trying to configure policyd with postfix under Plesk environment. I read the install procedure and i have running policyd without problems # ps xau | grep policy root 18652 0.0 0.0 58944 536 pts/3 S+ 11:59 0:00 tail -f /var/log/cbpolicyd.log root 20590 0.0 0.2 123408 16352 ? Ss 12:06 0:00 /usr/bin/perl /usr/local/sbin/cbpolicyd --config /etc/cluebringer.conf root 20592 0.1 0.2 155352 18064 ? S 12:06 0:01 /usr/bin/perl /usr/local/sbin/cbpolicyd --config /etc/cluebringer.conf root 20593 0.1 0.2 155368 18080 ? S 12:06 0:01 /usr/bin/perl /usr/local/sbin/cbpolicyd --config /etc/cluebringer.conf root 20595 0.0 0.2 155352 18040 ? S 12:06 0:00 /usr/bin/perl /usr/local/sbin/cbpolicyd --config /etc/cluebringer.conf root 20602 0.0 0.2 155364 18064 ? S 12:06 0:00 /usr/bin/perl /usr/local/sbin/cbpolicyd --config /etc/cluebringer.conf root 20727 0.0 0.2 155364 18044 ? S 12:07 0:00 /usr/bin/perl /usr/local/sbin/cbpolicyd --config /etc/cluebringer.conf root 23332 0.0 0.2 155248 17612 ? S 12:24 0:00 /usr/bin/perl /usr/local/sbin/cbpolicyd --config /etc/cluebringer.conf root 23444 0.0 0.2 155248 17664 ? S 12:25 0:00 /usr/bin/perl /usr/local/sbin/cbpolicyd --config /etc/cluebringer.conf root 23979 0.0 0.2 155248 17612 ? S 12:29 0:00 /usr/bin/perl /usr/local/sbin/cbpolicyd --config /etc/cluebringer.conf this is my cluebringer.conf configuration protocols=<<EOT Postfix EOT modules=<<EOT Core Accounting EOT pid_file=/var/run/cbpolicyd/cbpolicyd.pid cache_file=/var/run/cbpolicyd/cache log_level=2 log_file=/var/log/cbpolicyd.log log_mail=mail@syslog:unix log_detail=modules,tracking,policies,protocols,cache port=10031 timeout_idle=1015 timeout_busy=115 [database] DSN=DBI:mysql:database=policyd;host=localhost Username=policyd Password=newpass bypass_mode=tempfail bypass_timeout=30 [AccessControl] enable=0 [Accounting] enable=1 [Amavis] [CheckHelo] enable=0 [CheckSPF] enable=0 [Greylisting] enable=0 [Quotas] enable=0 I have the following two lines on main.cf <http://main.cf> smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10031 <http://127.0.0.1:10031>, permit_mynetworks, check_client_access pcre:/var/spool/postfix/plesk/no_relay.re <http://no_relay.re>, permit_sasl_authentitn smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031 <http://127.0.0.1:10031> On accounting table on mysql i have this register Name gmail.com <http://gmail.com> Link to policy Default Outbound Track Sender:user@domain Period Daily Message Count Limit 3 Message Cumulative Size Limit -none- Kbyte Verdict REJECT Data Account limit exceeded Stop processing here yes Comment A lot of message for gmail Disabled no But when I send email it just leaving without any control. I dunno what I'm doing wrong or what I am not doing. If anyone could help me on this will appreciate thank youAre you submitting the mails using local submission or using SMTP? Postfix does not send policy requests for local submission, only for SMTP. -N _______________________________________________ Users mailing list [email protected] <mailto:[email protected]> http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org I'm submitting emails using SMTP
Enable full debugging and check the results provided, if its not matching a policy you can then see which one. You can also see if postfix is connecting to Policyd to make a policy request.
-N
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org
