Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to apply per-hour mail limits using policyd in CentOS. I want to restrict each email account on the server to only be able to send out a maximum of 50 mails per hour. How can I do that?

share|improve this question

1 Answer 1

I realize this question is old, but it may help others that stumble upon it. Use Quotas!

http://www.policyd.org/content/quotas

Just define a quota linked to your default policy that tracks the sender over a period of 3600 seconds,

Track: Sender:user@domain
Period: 3600

And then apply a limit to said quota:

Type: MessageCount
CounterLimit: 50
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.