Postfix count relayed messages per user
- by Martino Dino
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)?