On 04/10/2014 04:56 PM, Rob Tanner wrote:
Hi,

We depend heavily on Postfix’s ability to use LDAP for group aliases (basically 
an exploder list defined in LDAP).  The problem I’m having is that if I send to 
such a list with say 25 recipients, I will get 25 messages counted against my 
quota instead of just 1 message.  This is my Postfix configuration:

This is intended behavior, policyd does not yet have an option to count per-message, the count is currently per-recipient.


smtpd_helo_restrictions =
smtpd_client_restrictions =
smtpd_sender_restrictions =
smtpd_recipient_restrictions =
     hash:/etc/postfix/protected_destinations,proxy:ldap:limittag
     check_client_access hash:/etc/postfix/client_checks
     check_policy_service inet:127.0.0.1:10031
     permit_mynetworks
     reject_unauth_destination
     reject_invalid_hostname
     reject_non_fqdn_recipient
     reject_unknown_sender_domain
     reject_unknown_recipient_domain

smtpd_end_of_data_restrictions =
     check_policy_service inet:127.0.0.1:10031

As you can see, the check_policy_service parameter is where the documentation 
says it should be.  A gentleman on the postfix-users list suggested I take and 
move the check_policy_service to smtpd_data_restrictions and that resulted in 
policyd not seeing the message at all or at least not counting messages for 
quota limits.

Any ideas?  I’m open to any and ll suggestions.

~ Rob

You need both.

You could probably hack the code to only count once, this would probably be best.

-N

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to