Hello Jagannath,

On 03/09/14 22:02, Jagannath Naidu wrote:

> As opposed to that, my requirements are
> 1. That  a user can not send mail that exceeds the mail size limit.
> "Message cumulative size"
> my work : I set the mail size limit to 3 MB. with time period 60 seconds.
> observation: When I send a mail of 2 MB, it passes by. When I send a
> second mail of 2 MB within 60 seconds, policyd blocks it (GOOD)
> problem : when I send mail larger than 3 MB at first, it passes by (BAD)
> 
> 2. That a user can not send mails to number not more than specified
> "Message Count"
> my work : I set the "Message count" to 20, within 3600 seconds.
> observation: When I send mail to 15 recipients at first. And then sent
> second mail to 10 recipients, policyd blocks it (GOOD)
> problem : when I sent mail to 21 recipients at first attempt, it passes by 
> (BAD)

given your requirements policyd quotas is the wrong solution. you should
configure your mailer accordingly. assuming you use postfix, check out
the documentation of 'message_size_limit' and
'default_destination_recipient_limit' in [1]

[1] http://www.postfix.org/postconf.5.html

best,
markus


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

Reply via email to