Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

In Postfix, how do I measure how much traffic is used by each user or domain?

I can see no "out of the box" means of doing this with vanilla postfix, however, I am sure this is a pretty common need. So how do you solve it?

Bonus info would be to also measure dovecot traffic as well.

share|improve this question
up vote 3 down vote accepted

For Postfix logs, how about isoqlog? It's a bit dusty and old, but generates nice HTML summaries. If you want a command line tool, pflogsumm is excellent.

I don't know about Dovecot statistics, I'm more familiar with Cyrus.

share|improve this answer
..and contains some primo PHP exploit opportunities. Please, avoid isoqlog like the proverbial. – adaptr Aug 2 '12 at 8:17

How much traffic is generated in what way ? Where ?
On the network, coming in, going out, being processed ?

You can parse the logs to determine how many messages are received, sent, etc - the well-known mailgraph webapp is good at that.

For actual message sizes per domain, you may be better off piping the postfix logs to a database, where they can be efficiently processed.

share|improve this answer

Your Answer


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.