On 11/27/2013 10:32 AM, David TOUREL wrote: > Hi, > > I've problems using quotas module (accouting too) on my outbound policy. > When I send an email from a mailbox of an "internal_domain" to an > external one, nothing append in the quota module. Policyd log nothing > in the mail.log, however email was send and received correctly. > > I send my email with the SASLusername [email protected] > <mailto:[email protected]> > > The goal of this config is to control the number of email sent by my > internal_domain in 1 hour. > > Quotas on inbound policy works correctly, the quotas_tracking table in > MySQL and postfix log are ok. > > Please, can you help me understanding why my config is not working > > Regards > David TOUREL > > Here you can find pieces of my config. > > */etc/postfix/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, > reject_non_fqdn_recipient, > reject_unknown_sender_domain, > reject_non_fqdn_sender, > reject_unknown_recipient_domain, > reject_invalid_helo_hostname, > reject_unlisted_recipient, > reject_unlisted_sender, > permit_mynetworks, > permit_sasl_authenticated, > reject_non_fqdn_helo_hostname, > reject_unauth_destination, > permit > > smtpd_end_of_data_restrictions = check_policy_service > inet:127.0.0.1:10031 <http://127.0.0.1:10031> , permit > > > *Default Outbound* > Source: %internal_ips,%internal_domains > Destination: !%internal_domains > Disabled: no > > *internal_domains members* > @testmx.espace8.com <http://testmx.espace8.com>* > * > > *Quotas* > Policy: Default Outbound > Track: SASLUsername > Period: 3600 > Verdict: REJECT > Disabled: no > > *Limit* > Type: MessageCount > Counter Limit: 200 > Disabled: no
Enable full debugging in policyd, you can then see the matching of the policy request. Its concerning if your postfix log doesn't show your mail, both the postfix log and policyd log should at least show the connection. -N
_______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org
