>From: [email protected] [mailto:[email protected]] 
>On Behalf Of Muzammel Asghar
>Sent: 27 May 2010 19:19
>To: [email protected]
>Subject: Re: [policyd-users] Help require Outgoing ratelimit on per sender
>
>Right, thanks for your comments
>
>I am sending mail from same server, and only relay allowed for localhost , and 
>my aim is apply quota for localhost (127.0.0.1) 
>for each sender user not send maximum like 3 mails on each day.
>
>u...@localhost-localdomian 
>us...@localhost-localdomain
>
>I removed the defaul policies in policyd and only active one outbound policy 
>and set one quota policy for sender:u...@domain with the counter limit 2.
>
>Regards
>Muzi

Right, so what's happening is that postfix permits the message as per your 
permit_mynetworks restriction and doesn't get as far as the policy check.

Try changing to the following;

smtpd_recipient_restrictions =
        check_policy_service inet:127.0.0.1:10031,
        permit_mynetworks,
        reject_unauth_destination
 
Also, you will benefit from thoroughly reading through; 
http://www.postfix.com/BASIC_CONFIGURATION_README.html

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

Reply via email to