debian/rules: Use `git' potty wrapper.
[qmail] / qmail-users.9
CommitLineData
2117e02e
MW
1.TH qmail-users 5
2.SH NAME
3qmail-users \- assign mail addresses to users
4.SH OVERVIEW
5The file
6.B QMAILHOME/users/assign
7assigns addresses to users. For example,
8
9.EX
10 =joe.shmoe:joe:503:78:/home/joe:::
11.EE
12
13says that mail for
14.B joe.shmoe
15should be delivered to user
16.BR joe ,
17with uid 503 and gid 78,
18as specified by
19.BR /home/joe/.qmail .
20
21Assignments fed to
22.B qmail-newu
23will be used by
24.B qmail-lspawn
25to control
26.BR qmail-local 's
27deliveries.
28See
29.BR qmail-newu (8).
30A change to
31.B QMAILHOME/users/assign
32will have no effect until
33.B qmail-newu
34is run.
35.SH STRUCTURE
36.B QMAILHOME/users/assign
37is a series of assignments, one per line.
38It ends with a line containing a single dot.
39Lines must not contain NUL.
40.SH "SIMPLE ASSIGNMENTS"
41A simple assignment is a line of the form
42
43.EX
44 =local:user:uid:gid:homedir:dash:ext:
45.EE
46
47Here
48.I local
49is an address;
50.IR user ,
51.IR uid ,
52and
53.I gid
54are the account name, uid, and gid
55of the user in charge of
56.IR local ;
57and messages to
58.I local
59will be controlled by
60.IR homedir\fB/.qmail\fIdashext .
61
62If there are several assignments for the same
63.I local
64address,
65.B qmail-lspawn
66will use the first one.
67
68.I local
69is interpreted without regard to case.
70.SH "WILDCARD ASSIGNMENTS"
71A wildcard assignment is a line of the form
72
73.EX
74 +loc:user:uid:gid:homedir:dash:pre:
75.EE
76
77This assignment applies to any address beginning with
78.IR loc ,
79including
80.I loc
81itself.
82It means the same as
83
84.EX
85 =locext:user:uid:gid:homedir:dash:preext:
86.EE
87
88for every string
89.IR ext .
90
91A more specific wildcard assignment overrides a less specific
92assignment, and a simple assignment overrides any wildcard assignment.
93For example:
94
95.EX
96 +:alias:7790:2108:QMAILHOME/alias:-::
97 +joe-:joe:507:100:/home/joe:-::
98 =joe:joe:507:100:/home/joe:::
99.EE
100
101The address
102.B joe
103is handled by the third line;
104the address
105.B joe-direct
106is handled by the second line;
107the address
108.B bill
109is handled by the first line.
110.SH "SEE ALSO"
111qmail-pw2u(8),
112qmail-newu(8),
113qmail-lspawn(8)