Table of Contents

Name

postfix-saslusernames - show/count usernames of mails in queue

Synopsis

postfix-saslusernames [ -t ] [ spooldir ]

Description

Search for string "sasl_username=" or "(Authenticated sender: " in mail files. All files in directories "active", "deferred" and "." in postfix spooldir (default: /var/spool/postfix/) are scanned.
On success the sasl_username and the postfix id is printed.

Options

-t
Suppress normal output. Show up to 20 top mailbox names.

Examples

Simple usage:
$ postfix-saslusernames |sort |head
u22144p9 71B151FAA51
u22144p9 7F4481FA50D
u22144p9 997F01F815A
u22144p9 B5CF71F8043
u22144p9 B99701FAB67
u22254p2 CD1D31FBA6D
u22403p1 EDBBF1FBAE8
u2322p1 7E0C91FB9FA
u23425p4 43F7F1FA0B3
u23657p1 9AF801F83AD
Show the top usernames with most mails in queue:
$ postfix-saslusernames -t
u314270p1=26
u32795p1=38
u311342p4=82

Author

Frank Bergmann, http://www.tuxad.com


Table of Contents