Spam my blog and I report your site to Google for banning. You've been warned!

« Upgrading the processor | Main | Installing windows without the original CD »

November 08, 2005

Determining number of users on a qmail server

If you've got a qmail server with a large number of users spread out over hundreds of domains, how will you figure out how many users you have? I don't know of any official way, but there are ways to guesstimate.

Let's say you're using vpopmail. Let's say there's a file called lastauth - telling you when each user last checked e-mail and from what IP address.

Then you could get a guesstimate of the number of users by doing this:
find /home/vpopmail/domains | grep lastauth > yourfile

This will take quite a while, if you've got many users.

Then check number of lines in that file, by typing:
wc -l yourfile

Finally remove yourfile

And no, I don't provide support on this. This is for qmail admins, not regular users.

Posted by Ann at November 8, 2005 02:14 PM

Trackback Pings

TrackBack URL for this entry:
http://www.annelisabeth.com/blog/mt-tb.cgi/300

Comments

Why do not use:
`find /home/vpopmail/domains -name lastauth | wc -l'
?
It will do the exactly the same in one step, avoid additional grep call and doesn't require a temporary file.

Posted by: seo black & white at November 12, 2005 10:07 PM

The requested page could not be found.

include(/home/annelisa/public_html/blog/refer/refer.php) [function.include]: failed to open stream: No such file or directory