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

Is there some good way to limit outbound mail in postfix? I want to limit number of sent messages by domain per some time interval.

Imaginary example:

I have email accounts in 3 different domains: tld1, tld2 and tld3. It is not relevant how many accounts in what domain.

  • All accounts in tld1 can send at most 20 messages per hour.
  • All accounts in tld2 can send at most 10 messages per hour.
  • All accounts in tld3 can send at most 25 messages per hour.

Can this be done? And how?

share|improve this question
add comment

1 Answer

I suspect you want policyd -- it appears to do what you want.

share|improve this answer
    
Yes, I found policyd. But, i am not really expert in those thing. I can't figure out hoe to configure it. I understand that I can create different policies (policyd.org/…) but, where can I do this? Is there some configuration file? –  sasap Nov 18 '09 at 17:44
1  
I've never used it, Google told me all about it. Based on 30 seconds with the docs, though, it looks like you want the Quota module -- there's an example to do pretty much exactly what you want right there. –  womble Nov 18 '09 at 18:17
add comment

Your Answer

 
discard

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