2 # Sample configuration file for mailbox-count.
5 # The name of the database (or file, if SQLite) to which we should connect.
7 # Default: The name of the current user (Postgres only)
9 # database = "postfixadmin"
12 # Produce a detailed report listing all mailboxes by domain.
19 # SQL query used to produce the detail report. This should return the
20 # set of all (domain, username) pairs. See the default value for an
23 # Default: "SELECT domain,username FROM mailbox ORDER BY domain;"
25 # detail_query = "SELECT domain,username FROM mailbox LIMIT 1000;"
28 # Hostname where the database is located (Postgres-only).
30 # Default: None, a UNIX domain socket connection is attempted (Postgres only)
35 # Password used to connect to the database (Postgres-only).
37 # Default: None (assumes passwordless authentication)
39 # password = "hunter2"
42 # Port number used to connect to the database (Postgres-only).
44 # Default: None, a UNIX domain socket connection is attempted (Postgres only)
49 # SQL query used to produce the summary report. This should return
50 # (domain, user count) pairs. See the default value for an
53 # Default: "SELECT domain,COUNT(username) FROM mailbox GROUP BY domain ORDER BY domain;"
55 # summary_query = "SELECT domain,COUNT(username) as cnt GROUP BY domain ORDER by cnt;"
58 # Username used to connect to the database (Postgres-only).
60 # Default: The current user
62 # username = "postgres"