doc/web: Updated to reflect the new cli.
--- a/doc/web/source/howto.rst Wed Jan 09 20:55:27 2013 +0000
+++ b/doc/web/source/howto.rst Sun Jan 13 15:26:37 2013 +0000
@@ -6,7 +6,9 @@
It allows you to simply and quickly administer your mail server.
The general command syntax looks like::
- vmm subcommand [argument …]
+ vmm -h|-v|--help|--version
+ vmm subcommand -h|--help
+ vmm subcommand arguments [options]
Each subcommand has both a long and a short form.
Both forms are case sensitive.
@@ -26,43 +28,58 @@
Most of the *subcommand*\ s take one or more *argument*\ s.
+Options
+-------
+The following options are recognized by :program:`vmm`.
+
+.. program:: vmm
+
+.. option:: -h, --help
+
+ show a list of available subcommands and exit.
+
+.. option:: -v, --version
+
+ show :command:`vmm`'s version and copyright information and exit.
+
+
Arguments
---------
-address
+*address*
The complete e-mail address (*local-part*\ @\ *fqdn*) of an user account,
alias address or relocated user.
-destination
+*destination*
Is either an e-mail address when used with
:doc:`Alias subcommands <howto/manage_alias_addresses>`.
- Or a *fqnd* when used with
+ Or a *fqdn* when used with
:doc:`Alias domain subcommands <howto/manage_alias_domains>`.
-fqdn
+*fqdn*
The fully qualified domain name – without the trailing dot – of a domain
or alias domain.
-messages
+*messages*
An integer value which specifies a quota limit in number of messages.
**0** (zero) means unlimited - no quota limit for the number of messages.
-option
+*option*
Is the name of a configuration option, prefixed with the section name and
a dot.
For example: *misc*\ **.**\ *transport*
All configuration options are described in :manpage:`vmm.cfg(5)`.
-service
+*service*
The name of a service, commonly used with Dovecot.
Supported services are: **imap**, **pop3**, **sieve** and **smtp**.
-storage
+*storage*
Specifies a quota limit in bytes.
One of the following prefixes can be appended to the integer value:
**b** (bytes), **k** (kilobytes), **M** (megabytes) or **G** (gigabytes).
**0** (zero) means unlimited - no quota limit in bytes.
-transport
+*transport*
A transport for Postfix, written as: *transport*\ **:** or
*transport*\ **:**\ *nexthop*.
See :manpage:`transport(5)` for more details.
--- a/doc/web/source/howto/general_subcommands.rst Wed Jan 09 20:55:27 2013 +0000
+++ b/doc/web/source/howto/general_subcommands.rst Sun Jan 13 15:26:37 2013 +0000
@@ -48,8 +48,8 @@
configure
---------
Syntax:
- | **vmm configure** [*section*]
- | **vmm cf** [*section*]
+ | **vmm configure** [**-s** *section*]
+ | **vmm cf** [**-s** *section*]
Starts the interactive configuration for all configuration sections.
@@ -84,7 +84,7 @@
.. code-block:: console
- root@host:~# vmm configure mailbox
+ root@host:~# vmm configure -s mailbox
Using configuration file: /usr/local/etc/vmm.cfg
* Configuration section: `mailbox'
@@ -113,21 +113,11 @@
GID............: 70704
Address........: a.user@example.com
-help
-----
-Syntax:
- | **vmm help** [*subcommand*]
- | **vmm h** [*subcommand*]
-
-Prints a list of available subcommands with a short description to stdout.
-When a *subcommand* was given, help for that *subcommand* will be displayed.
-After this :command:`vmm` exits.
-
listaddresses
-------------
Syntax:
- | **vmm listaddresses** [*pattern*]
- | **vmm ll** [*pattern*]
+ | **vmm listaddresses** [**-p** *pattern*]
+ | **vmm ll** [**-p** *pattern*]
This command lists all defined addresses. Addresses belonging to
alias-domains are prefixed with a '-', addresses of regular domains with
@@ -143,7 +133,7 @@
.. code-block:: console
- root@host:~# vmm ll example.com
+ root@host:~# vmm ll -p example.com
Matching addresses
------------------
[u+] a.user@example.com
@@ -158,8 +148,8 @@
listaliases
-----------
Syntax:
- | **vmm listaliases** [*pattern*]
- | **vmm la** [*pattern*]
+ | **vmm listaliases** [**-p** *pattern*]
+ | **vmm la** [**-p** *pattern*]
This command lists all defined aliases. Aliases belonging to alias-domains
are prefixed with a '-', addresses of regular domains with a '+'.
@@ -172,7 +162,7 @@
.. code-block:: console
- root@host:~# vmm listaliases example.com
+ root@host:~# vmm listaliases -p example.com
Matching aliases
----------------
[+] support@example.com
@@ -182,8 +172,8 @@
listdomains
-----------
Syntax:
- | **vmm listdomains** [*pattern*]
- | **vmm ld** [*pattern*]
+ | **vmm listdomains** [**-p** *pattern*]
+ | **vmm ld** [**-p** *pattern*]
This subcommand lists all available domains.
All domain names will be prefixed either with '[+]', if the domain is
@@ -197,7 +187,7 @@
.. code-block:: console
- root@host:~# vmm listdomains %example%
+ root@host:~# vmm listdomains -p %example%
Matching domains
----------------
[+] example.com
@@ -228,10 +218,9 @@
root@host:~# vmm listpwschemes
Usable password schemes
-----------------------
- CRYPT SHA512-CRYPT LDAP-MD5 DIGEST-MD5 SHA256 SHA512 SSHA512
- SKEY SSHA NTLM RPA MD5-CRYPT HMAC-MD5 SHA1 PLAIN SHA CRAM-MD5
- SSHA256 MD5 LANMAN CLEARTEXT PLAIN-MD5 PLAIN-MD4 OTP SMD5
- SHA256-CRYPT
+ CLEARTEXT CRAM-MD5 CRYPT DIGEST-MD5 HMAC-MD5 LANMAN LDAP-MD5 MD5
+ MD5-CRYPT NTLM OTP PLAIN PLAIN-MD4 PLAIN-MD5 RPA SHA SHA1 SHA256
+ SHA256-CRYPT SHA512 SHA512-CRYPT SKEY SMD5 SSHA SSHA256 SSHA512
Usable encoding suffixes
------------------------
@@ -242,8 +231,8 @@
listrelocated
-------------
Syntax:
- | **vmm listrelocated** [*pattern*]
- | **vmm lr** [*pattern*]
+ | **vmm listrelocated** [**-p** *pattern*]
+ | **vmm lr** [**-p** *pattern*]
This command lists all defined relocated addresses.
Relocated entries belonging to alias-domains are prefixed with a '-',
@@ -257,7 +246,7 @@
.. code-block:: console
- root@host:~# vmm listrelocated example.com
+ root@host:~# vmm listrelocated -p example.com
Matching relocated users
------------------------
[+] b.user@example.com
@@ -267,8 +256,8 @@
listusers
---------
Syntax:
- | **vmm listusers** [*pattern*]
- | **vmm lu** [*pattern*]
+ | **vmm listusers** [**-p** *pattern*]
+ | **vmm lu** [**-p** *pattern*]
This command lists all user accounts.
User accounts belonging to alias-domains are prefixed with a '-', addresses
@@ -282,7 +271,7 @@
.. code-block:: console
- root@host:~# vmm listusers example.com
+ root@host:~# vmm listusers -p example.com
Matching user accounts
----------------------
[+] a.user@example.com
@@ -291,12 +280,3 @@
[+] postmaster@example.com
.. versionadded:: 0.6.0
-
-version
--------
-Syntax:
- | **vmm version**
- | **vmm v**
-
-Prints :command:`vmm`'s version and copyright information to stdout.
-After this :command:`vmm` exits.
--- a/doc/web/source/howto/manage_accounts.rst Wed Jan 09 20:55:27 2013 +0000
+++ b/doc/web/source/howto/manage_accounts.rst Sun Jan 13 15:26:37 2013 +0000
@@ -4,8 +4,8 @@
useradd
-------
Syntax:
- | **vmm useradd** *address* [*password*]
- | **vmm ua** *address* [*password*]
+ | **vmm useradd** *address* [**-p** *password*]
+ | **vmm ua** *address* [**-p** *password*]
Use this subcommand to create a new e-mail account for the given *address*.
@@ -19,7 +19,7 @@
.. code-block:: console
- root@host:~# vmm ua d.user@example.com "A 5ecR3t P4s5\/\/0rd"
+ root@host:~# vmm ua d.user@example.com -p "A 5ecR3t P4s5\/\/0rd"
root@host:~# vmm useradd e.user@example.com
Enter new password:
Retype new password:
@@ -27,20 +27,20 @@
userdelete
----------
Syntax:
- | **vmm userdelete** *address* [*force*]
- | **vmm ud** *address* [*force*]
+ | **vmm userdelete** *address* [**‒‒force**]
+ | **vmm ud** *address* [**‒‒force**]
Use this subcommand to delete the account with the given *address*.
If there are one or more aliases with an identical destination address,
:command:`vmm` will abort the requested operation and show an error message.
-To prevent this, specify the optional keyword **force**.
+To prevent this, give the optional argument **‒‒force**.
userinfo
--------
Syntax:
- | **vmm userinfo** *address* [*details*]
- | **vmm ui** *address* [*details*]
+ | **vmm userinfo** *address* [**-d** *details*]
+ | **vmm ui** *address* [**-d** *details*]
This subcommand displays some information about the account specified by
*address*.
@@ -84,8 +84,8 @@
username
--------
Syntax:
- | **vmm username** *address* [*name*]
- | **vmm un** *address* [*name*]
+ | **vmm username** *address* [**-n** *name*]
+ | **vmm un** *address* [**-n** *name*]
The user's real *name* can be set/updated with this subcommand.
@@ -95,13 +95,13 @@
.. code-block:: console
- root@host:~# vmm un d.user@example.com "John Doe"
+ root@host:~# vmm un d.user@example.com -n "John Doe"
usernote
--------
Syntax:
- | **vmm usernote** *address* [*note*]
- | **vmm uo** *address* [*note*]
+ | **vmm usernote** *address* [**-n** *note*]
+ | **vmm uo** *address* [**-n** *note*]
With this subcommand, it is possible to attach a note to the specified
account.
@@ -111,15 +111,15 @@
.. code-block:: console
- root@host:~# vmm uo d.user@example.com Only needed until end of May 2012
+ root@host:~# vmm uo d.user@example.com -n 'Only needed until end of May 2013'
.. versionadded:: 0.6.0
userpassword
------------
Syntax:
- | **vmm userpassword** *address* [*password*]
- | **vmm up** *address* [*password*]
+ | **vmm userpassword** *address* [**-p** *password*]
+ | **vmm up** *address* [**-p** *password*]
The password of an account can be updated with this subcommand.
@@ -129,21 +129,21 @@
.. code-block:: console
- root@host:~# vmm up d.user@example.com "A |\/|0r3 5ecur3 P4s5\/\/0rd?"
+ root@host:~# vmm up d.user@example.com -p "A |\/|0r3 5ecur3 P4s5\/\/0rd?"
userquota
---------
Syntax:
- | **vmm userquota** *address storage* [*messages*]
- | **vmm uq** *address storage* [*messages*]
+ | **vmm userquota** *address storage* [**-m** *messages*]
+ | **vmm uq** *address storage* [**-m** *messages*]
This subcommand is used to set a new quota limit for the given account.
When the argument *messages* was omitted the default number of messages
**0** (zero) will be applied.
-Instead of *storage* pass **domain** to remove the account-specific
-override, causing the domain's value to be in effect.
+Instead of a *storage* limit pass the keyword **domain** to remove the
+account-specific override, causing the domain's value to be in effect.
Example:
@@ -156,22 +156,22 @@
userservices
------------
Syntax:
- | **vmm userservices** *address* [*service ...*]
- | **vmm us** *address* [*service ...*]
+ | **vmm userservices** *address* [**-s** *service ...*]
+ | **vmm us** *address* [**-s** *service ...*]
To grant a user access to the specified services, use this command.
All omitted services will be deactivated/unusable for the user with the
given *address*.
-Instead of *service* pass **domain** to remove the account-specific override,
-causing the domain's value to be in effect.
+Instead of any *service* pass the keyword **domain** to remove the
+account-specific override, causing the domain's value to be in effect.
Example:
.. code-block:: console
- root@host:~# userservices d.user@example.com SMTP IMAP
+ root@host:~# userservices d.user@example.com -s smtp imap
.. _usertransport:
--- a/doc/web/source/howto/manage_catch-all_addresses.rst Wed Jan 09 20:55:27 2013 +0000
+++ b/doc/web/source/howto/manage_catch-all_addresses.rst Sun Jan 13 15:26:37 2013 +0000
@@ -61,7 +61,7 @@
root@host:~# vmm catchallinfo example.com
Catch-all information
---------------------
- Mail to unknown localparts in domain example.com will be sent to:
+ Mail to unknown local-parts in domain example.com will be sent to:
* user@example.org
.. versionadded:: 0.6.0
--- a/doc/web/source/howto/manage_domains.rst Wed Jan 09 20:55:27 2013 +0000
+++ b/doc/web/source/howto/manage_domains.rst Sun Jan 13 15:26:37 2013 +0000
@@ -6,8 +6,8 @@
domainadd
---------
Syntax:
- | **vmm domainadd** *fqdn* [*transport*]
- | **vmm da** *fqdn* [*transport*]
+ | **vmm domainadd** *fqdn* [**-t** *transport*]
+ | **vmm da** *fqdn* [**-t** *transport*]
Adds the new domain into the database and creates the domain directory.
@@ -32,7 +32,7 @@
.. code-block:: console
- root@host:~# vmm domainadd support.example.com smtp:[mx1.example.com]:2025
+ root@host:~# vmm domainadd support.example.com -t smtp:[mx1.example.com]:2025
Creating account for postmaster@support.example.com
Enter new password:
Retype new password:
@@ -44,16 +44,16 @@
domaindelete
------------
Syntax:
- | **vmm domaindelete** *fqdn* [**force**]
- | **vmm dd** *fqdn* [**force**]
+ | **vmm domaindelete** *fqdn* [**‒‒force**]
+ | **vmm dd** *fqdn* [**‒‒force**]
This subcommand deletes the domain specified by *fqdn*.
If there are accounts, aliases and/or relocated users assigned to the given
domain, :command:`vmm` will abort the requested operation and show an error
message.
-If you know, what you are doing, you can specify the optional keyword
-**force**.
+If you know, what you are doing, you can specify the optional argument
+**‒‒force**.
If you really always know what you are doing, edit your :file:`vmm.cfg` and
set the option *domain.force_deletion* to **true**.
@@ -61,8 +61,8 @@
domaininfo
----------
Syntax:
- | **vmm domaininfo** *fqdn* [*details*]
- | **vmm di** *fqdn* [*details*]
+ | **vmm domaininfo** *fqdn* [**-d** *details*]
+ | **vmm di** *fqdn* [**-d** *details*]
This subcommand shows some information about the given domain.
@@ -103,8 +103,8 @@
domainnote
----------
Syntax:
- | **vmm domainnote** *fqdn* [*note*]
- | **vmm do** *fqdn* [*note*]
+ | **vmm domainnote** *fqdn* [**-n** *note*]
+ | **vmm do** *fqdn* [**-n** *note*]
With this subcommand, it is possible to attach a note to the specified
domain.
@@ -114,15 +114,15 @@
.. code-block:: console
- root@host:~# vmm do example.com Belongs to Robert
+ root@host:~# vmm do example.com -n 'Belongs to Robert'
.. versionadded:: 0.6.0
domainquota
-----------
Syntax:
- | **vmm domainquota** *fqdn storage* [*messages*] [**force**]
- | **vmm dq** *fqdn storage* [*messages*] [**force**]
+ | **vmm domainquota** *fqdn storage* [**-m** *messages*] [**‒‒force**]
+ | **vmm dq** *fqdn storage* [**-m** *messages*] [**‒‒force**]
This subcommand is used to configure a new quota limit for the accounts
of the domain - not for the domain itself.
@@ -132,8 +132,8 @@
The new quota limit will affect only those accounts for which the limit has
not been overridden.
-If you want to restore the default to all accounts, you may pass the keyword
-**force**.
+If you want to restore the default to all accounts, you may pass the optional
+argument **‒‒force**.
When the argument *messages* was omitted the default number of messages
**0** (zero) will be applied.
@@ -141,15 +141,15 @@
.. code-block:: console
- root@host:~# vmm domainquota example.com 1g force
+ root@host:~# vmm domainquota example.com 1g ‒‒force
.. versionadded:: 0.6.0
domainservices
--------------
Syntax:
- | **vmm domainservices** *fqdn* [*service ...*] [**force**]
- | **vmm ds** *fqdn* [*service ...*] [**force**]
+ | **vmm domainservices** *fqdn* [**-s** *service ...*] [**‒‒force**]
+ | **vmm ds** *fqdn* [**-s** *service ...*] [**‒‒force**]
To define which services could be used by the users of the domain — with
the given *fqdn* — use this subcommand.
@@ -160,22 +160,22 @@
The new service set will affect only those accounts for which the set has
not been overridden.
If you want to restore the default to all accounts, you may pass the
-keyword **force**.
+option **‒‒force**.
.. versionadded:: 0.6.0
domaintransport
---------------
Syntax:
- | **vmm domaintransport** *fqdn transport* [**force**]
- | **vmm dt** *fqdn transport* [**force**]
+ | **vmm domaintransport** *fqdn transport* [**‒‒force**]
+ | **vmm dt** *fqdn transport* [**‒‒force**]
A new transport for the indicated domain can be set with this subcommand.
The new transport will affect only those accounts for which the transport
has not been overridden.
If you want to restore the default to all accounts, you may pass the
-keyword **force**.
+option **‒‒force**.
Example: