Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to implement quota in postfix on all outgoing mails on user base with few exceptions.

My setup is something like this

SMTP Server 1 ( basic spam protection) ----> mail gateway(To have full av/spam scan) -----> original server

Now all the outgoing mails will be relayed from original server,which will in turn handled by mail gateway and will be released by SMTP1 server. (However all are having valid FQDN and mx/A records.)

i want to configure mail gateway in such a manner that no user will able to send more than configured emails on per hour and per day basis. (Say max 100 mails per hour,and max 1000 mails per day)
can you please help me?

share|improve this question

Take a look at Policyd.

share|improve this answer
Hi Janne,Thanks for your reply but its in accounting module as TODO list as of now it is not available :( i have checked it in 2.0.10 version. please correct me if i am wrong – nehal.dattani Jul 30 '10 at 12:47
I'm using that module just like you described. At the moment I'm unable to provide you an example, but will do that right after I get back to work :) – Janne Pikkarainen Jul 30 '10 at 13:12

Your Answer


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