0

I would like to know if it's possible to count the outgoing (relayed) messages on a per user basis in postfix.

I'm managing a small commercial SMTP relay and decided that it would be nice to have a detailed daily report on how much mail a single user have sent (and eventually enforce some limits) possibly in realtime.

I've looked almost everywhere and started to think that writing my own milter would be the way to go...

Are you aware of anything that already exists for postfix that can count and report relayed mail for authenticated users (a script, milter or whatever)?

Martino Dino
  • 1,145
  • 1
  • 10
  • 17
  • possible duplicate of [Limit number of outgoing messages in postfix](http://serverfault.com/questions/85957/limit-number-of-outgoing-messages-in-postfix) – mailq Nov 23 '12 at 20:28
  • Well it's not exactly a duplicate of that question, but indeed the answer solves my problem too! Thanks mailq – Martino Dino Nov 24 '12 at 10:13

1 Answers1

1

Thanks to mailq I found the solution, as womble pointed out on the previous question, policyd is the answer. From the 2.1x version (unstable branch) there is an accounting module which can enforce limits.

Martino Dino
  • 1,145
  • 1
  • 10
  • 17