96a834eb2c2996c474b335d594d06a13ac0b848f
[list-remote-forwards.git] / doc / list-remote-forwardsrc.example
1 #
2 # Sample configuration file for list-remote-forwards.
3 #
4
5 # The name of the database (or file, if SQLite) to which we should connect.
6 #
7 # Default: The name of the current user (Postgres only)
8 #
9 # database = "postfixadmin"
10
11
12 # SQL query used to produce a list of local domains. This should return
13 # the set of all domains (i.e one column) that are local to the
14 # server. See the default value for an example.
15 #
16 # Default: "SELECT domain FROM domain WHERE domain <> 'ALL' ORDER BY domain;"
17 #
18 # domain_query = "SELECT DISTINCT domain FROM alias;"
19
20
21 # SQL query used to produce a list of all forwards on the mail
22 # system. This query should return the set of all (address, goto)
23 # triples, where "goto" is the destination address; i.e. to where
24 # the "address" forwards. The "goto" field may contain more
25 # than one email address, separated by commas.
26 #
27 # Default: "SELECT address,goto FROM alias ORDER BY address;"
28 #
29 # forward_query = "SELECT address,alias FROM aliases;"
30
31
32
33 # Hostname where the database is located (Postgres-only).
34 #
35 # Default: None, a UNIX domain socket connection is attempted (Postgres only)
36 #
37 # host = "localhost"
38
39
40 # Password used to connect to the database (Postgres-only).
41 #
42 # Default: None (assumes passwordless authentication)
43 #
44 # password = "hunter2"
45
46
47 # Port number used to connect to the database (Postgres-only).
48 #
49 # Default: None, a UNIX domain socket connection is attempted (Postgres only)
50 #
51 # port = 5432
52
53
54
55 # Username used to connect to the database (Postgres-only).
56 #
57 # Default: The current user
58 #
59 # username = "postgres"