24
|
1 |
.\" $Id$ |
23
|
2 |
.TH "VMM" "1" "26. April 2008" "Pascal Volk" "Virtual Mail Manager" |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
3 |
.SH NAME |
22
|
4 |
vmm \- commandline tool to manage email domains/accounts/aliases |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
5 |
.SH SYNOPSIS |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
6 |
.B vmm |
22
|
7 |
\fIsubcommand\fP \fIobject\fP [ \fIargs\fP ] |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
8 |
.SH DESCRIPTION |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
9 |
\fBvmm\fP (Virtual Mail Manager) is a command line tool for |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
10 |
administrators/postmasters to manage domains, accounts and aliases. It's |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
11 |
designed for Dovecot and Postfix with a PostgreSQL backend. |
22
|
12 |
.SH SUBCOMMANDS |
|
13 |
Each subcommand has both a long and a short form. Both forms are case sensitive. |
|
14 |
.SS GENERAL SUBCOMMANDS |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
15 |
.TP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
16 |
\fBconfigure\fP (\fBcf\fP) [ \fIsection\fP ] |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
17 |
Starts the interactive configuration for all configuration sections. |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
18 |
.br |
23
|
19 |
If the optional argument \fIsection\fP is given, only the configuration options |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
20 |
from the given section will be displayed and be configurable. The following |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
21 |
sections are available: |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
22 |
.RS |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
23 |
.PD 0 |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
24 |
.TP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
25 |
- |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
26 |
.B |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
27 |
database |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
28 |
.TP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
29 |
- |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
30 |
.B |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
31 |
maildir |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
32 |
.TP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
33 |
- |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
34 |
.B |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
35 |
services |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
36 |
.TP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
37 |
- |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
38 |
.B |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
39 |
domdir |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
40 |
.TP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
41 |
- |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
42 |
.B |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
43 |
bin |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
44 |
.TP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
45 |
- |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
46 |
.B |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
47 |
misc |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
48 |
.PD |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
49 |
.RE |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
50 |
.LP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
51 |
.PP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
52 |
.nf |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
53 |
Example: |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
54 |
|
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
55 |
\fBvmm configure services\fP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
56 |
* Config section: services |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
57 |
Enter new value for pop3 [True]: |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
58 |
Enter new value for smtp [True]: |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
59 |
Enter new value for imap [True]: |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
60 |
Enter new value for managesieve [True]: false |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
61 |
.fi |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
62 |
.PP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
63 |
.TP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
64 |
\fBgetuser\fP (\fBgu\fP) \fIuserid\fP |
22
|
65 |
If only the userid is available, for example from process list, the subcommand |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
66 |
\fBgetuser\fP will show the user's address. |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
67 |
.PP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
68 |
.nf |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
69 |
Example: |
23
|
70 |
|
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
71 |
\fBvmm getuser 70004\fP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
72 |
Account information |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
73 |
------------------- |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
74 |
Gid............: 70000 |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
75 |
Uid............: 70004 |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
76 |
Address........: c.user@example.com |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
77 |
.fi |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
78 |
.TP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
79 |
\fBhelp\fP (\fBh\fP) |
22
|
80 |
Prints all available commands to stderr. After this \fBvmm\fP exits. |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
81 |
.TP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
82 |
\fBversion\fP (\fBv\fP) |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
83 |
Prints the version information from \fBvmm\fB. |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
84 |
.\" |
22
|
85 |
.SS DOMAIN SUBCOMMANDS |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
86 |
.TP |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
87 |
\fBdomainadd\fP (\fBda\fP) \fIdomain\fP [ \fItransport\fP ] |
23
|
88 |
Adds the new \fIdomain\fP into the database. |
22
|
89 |
.br |
23
|
90 |
If the optional argument \fItransport\fP is given, it will overwrite the |
|
91 |
default transport from \fBvmm.cfg\fP (misc/transport). The specified transport |
|
92 |
will be the default transport for all new accounts in this domain. |
22
|
93 |
.PP |
|
94 |
.nf |
|
95 |
Examples: |
|
96 |
|
|
97 |
\fBvmm domainadd support.example.com smtp:mx1.example.com |
|
98 |
vmm domainadd sales.example.com\fP |
|
99 |
.fi |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
100 |
.TP |
22
|
101 |
\fBdomaininfo\fP (\fBdi\fP) \fIdomain\fP [ \fIdetailed\fP ] |
|
102 |
This subcommand shows some information about the given domain. |
|
103 |
.br |
23
|
104 |
If the keyword '\fBdetailed\fP' is specified as optional argument, all |
|
105 |
available accounts and aliases will be listed. |
22
|
106 |
.PP |
|
107 |
.nf |
|
108 |
Example: |
|
109 |
|
|
110 |
\fBvmm domaininfo sales.example.com\fP |
|
111 |
Domain information |
|
112 |
------------------ |
|
113 |
Domainname.....: sales.example.com |
|
114 |
Domaindir......: /home/mail/5/70002 |
|
115 |
Gid............: 70002 |
|
116 |
Accounts.......: 0 |
|
117 |
Transport......: dovecot: |
|
118 |
Aliases........: 0 |
|
119 |
|
|
120 |
.fi |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
121 |
.TP |
22
|
122 |
\fBdomaintransport\fP (\fBdt\fP) \fIdomain\fP \fItransport\fP [ \fIforce\fP ] |
|
123 |
A new transport for the given domain can be set with this subcommand. |
|
124 |
.br |
23
|
125 |
If the additional keyword '\fBforce\fP' is given all account specific transport |
22
|
126 |
settings will be overwritten. |
|
127 |
.br |
|
128 |
Otherwise this setting will affect only new created accounts. |
|
129 |
.PP |
|
130 |
.nf |
|
131 |
Example: |
|
132 |
|
|
133 |
\fBvmm domaintransport support.example.com dovecot:\fP |
|
134 |
.fi |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
135 |
.TP |
22
|
136 |
\fBdomaindelete\fP (\fBdd\fP) \fIdomain\fP [ \fIdelalias\fP | \fIdeluser\fP |\ |
|
137 |
\fIdelall\fP ] |
23
|
138 |
This subcommand deletes the specified \fIdomain\fP. |
22
|
139 |
.br |
|
140 |
If there are accounts and/or aliases assigned to the given domain, \fBvmm\fP |
|
141 |
will abort the requested operation and show a error message. If you know, what |
23
|
142 |
you are doing, you can specify one of the following keywords: '\fPdelalias\fP', '\fBdeluser\fP' or '\fBdelall\fP'. |
22
|
143 |
.br |
23
|
144 |
|
22
|
145 |
If you really always know what you are doing, edit your \fBvmm.cfg\fP and set |
|
146 |
the option \fIforcedel\fP, in section \fImisc\fP, to true. |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
147 |
.\" |
22
|
148 |
.SS ACCOUNT SUBCOMMANDS |
|
149 |
.TP |
|
150 |
\fBuseradd\fP (\fBua\fP) \fIaddress\fP [ \fIpassword\fP ] |
23
|
151 |
Use this subcommand to create a new email account for the given \fIaddress\fP. |
|
152 |
.br |
|
153 |
If the \fIpassword\fP is not provided, \fBvmm\fP will prompt for it |
|
154 |
interactively. |
|
155 |
.PP |
|
156 |
.nf |
|
157 |
Examples: |
|
158 |
|
|
159 |
\fBvmm ua d.user@example.com 'A 5ecR3t P4s5\\/\\/0rd'\fP |
|
160 |
\fBvmm ua e.user@example.com\fP |
|
161 |
Enter new password: |
|
162 |
Retype new password: |
|
163 |
.fi |
22
|
164 |
.TP |
|
165 |
\fBuserinfo\fP (\fBui\fP) \fIaddress\fP [ \fIdu\fP ] |
23
|
166 |
This subcommand displays some information about the account specified by |
|
167 |
\fIaddress\fP. |
|
168 |
.br |
|
169 |
If the optional argument \fIdu\fP is given, the disk usage of users maildir will |
|
170 |
be summarized and displayed too. |
22
|
171 |
.TP |
23
|
172 |
\fBusername\fP (\fBun\fP) \fIaddress\fP \fI'Users Name'\fP |
|
173 |
The users real name can be set/updated with this subcommand. |
|
174 |
.PP |
|
175 |
.nf |
|
176 |
Example: |
|
177 |
|
|
178 |
\fBvmm un d.user@example.com 'John Doe'\fP |
|
179 |
.fi |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
180 |
.TP |
22
|
181 |
\fBuserpassword\fP (\fBup\fP) \fIaddress\fP [ \fIpassword\fP ] |
23
|
182 |
The \fIpassword\fP from an account can be updated with this subcommand. |
|
183 |
.br |
|
184 |
If the \fIpassword\fP is not provided, \fBvmm\fP will prompt for it |
|
185 |
interactively. |
|
186 |
.PP |
|
187 |
.nf |
|
188 |
Example: |
|
189 |
|
|
190 |
\fBvmm up d.user@example.com 'A |\\/|0r3 5ecur3 P4s5\\/\\/0rd?'\fP |
|
191 |
.fi |
22
|
192 |
.TP |
23
|
193 |
\fBusertransport\fP (\fBut\fP) \fIaddress\fP \fItransport\fP |
|
194 |
A different transport for an account can be specified with this subcommand. |
|
195 |
.PP |
|
196 |
.nf |
|
197 |
Example: |
|
198 |
|
|
199 |
\fBvmm ut d.user@example.com smtp:pc105.it.example.com\fP |
|
200 |
.fi |
22
|
201 |
.TP |
|
202 |
\fBuserdisable\fP (\fBu0\fP) \fIaddress\fP [ \fIsmtp\fP | \fIpop3\fP |\ |
|
203 |
\fIimap\fP | \fImanagesieve\fP | \fIall\fP ] |
23
|
204 |
If a user shouldn't have access to one or all services you can restrict the |
|
205 |
access with this subcommand. |
|
206 |
.br |
|
207 |
If no service or the keyword '\fIall\fP' is given all services ('smtp', 'pop3', 'imap', and 'managesieve') will be disabled for the account with the specified |
|
208 |
\fIaddress\fP. Otherwise only the specified service will be restricted. |
|
209 |
.PP |
|
210 |
.nf |
|
211 |
Examples: |
|
212 |
|
|
213 |
\fBvmm u0 b.user@example.com imap\fP |
|
214 |
\fBvmm userdisable c.user@example.com\fP |
|
215 |
.fi |
22
|
216 |
.TP |
|
217 |
\fBuserenable\fP (\fBu1\fP) \fIaddress\fP [ \fIsmtp\fP | \fIpop3\fP |\ |
|
218 |
\fIimap\fP | \fImanagesieve\fP | \fIall\fP ] |
23
|
219 |
To allow access to one or all restricted services use this subcommand. |
|
220 |
.br |
|
221 |
If no service or the keyword '\fIall\fP' is given all services ('smtp', 'pop3', 'imap', and 'managesieve') will be enabled for the account with the specified |
|
222 |
\fIaddress\fP. Otherwise only the specified service will be enabled. |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
223 |
.TP |
22
|
224 |
\fBuserdelete\fP (\fBud\fP) \fIaddress\fP |
23
|
225 |
Use this subcommand to delete the account with the given \fIaddress\fP. |
22
|
226 |
.\" |
|
227 |
.SS ALIAS SUBCOMMANDS |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
228 |
.TP |
22
|
229 |
\fBaliasadd\fP (\fBaa\fP) \fIalias\fP \fItarget\fP |
23
|
230 |
This subcommand is used to create a new alias. |
|
231 |
.PP |
|
232 |
.nf |
|
233 |
Examples: |
|
234 |
|
|
235 |
\fBvmm aliasadd john.doe@example.com d.user@example.com\fP |
|
236 |
\fBvmm aa support@example.com d.user@example.com\fP |
|
237 |
\fBvmm aa support@example.com e.user@example.com\fP |
|
238 |
.fi |
22
|
239 |
.TP |
|
240 |
\fBaliasinfo\fP (\fBai\fP) \fIalias\fP |
23
|
241 |
Information about an alias can be displayed with this subcommand. |
|
242 |
.PP |
|
243 |
.nf |
|
244 |
Example: |
|
245 |
|
|
246 |
\fBvmm aliasinfo support@example.com\fP |
|
247 |
Alias information |
|
248 |
----------------- |
|
249 |
Mail for support@example.com goes to: |
|
250 |
-> d.user@example.com |
|
251 |
-> e.user@example.com |
|
252 |
.fi |
22
|
253 |
.TP |
|
254 |
\fBaliasdelete\fP (\fBad\fP) \fIalias\fP [ \fItarget\fP ] |
23
|
255 |
Use this subcommand to delete the \fIalias\fP. |
|
256 |
.br |
|
257 |
If the optional destination address \fItarget\fP is given, only this |
|
258 |
destination will be removed from the \fIalias\fP. |
|
259 |
.PP |
|
260 |
.nf |
|
261 |
Example: |
|
262 |
\fBvmm ad support@example.com d.user@example.com\fP |
|
263 |
.fi |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
264 |
.SH FILES |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
265 |
/usr/local/etc/vmm.cfg |
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
266 |
.SH SEE ALSO |
25
|
267 |
vmm.cfg(5), configuration file for vmm |
21
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
268 |
.SH AUTHOR |
22
|
269 |
\fBvmm\fP and its man pages were written by Pascal Volk |
|
270 |
<\fIp.volk@veb-it.de\fP> and are licensed under the terms of the BSD License. |