vmm.1
changeset 23 d5ad5432e9eb
parent 22 576a4709a44f
child 24 48ea255e8a85
equal deleted inserted replaced
22:576a4709a44f 23:d5ad5432e9eb
     1 .TH "VMM" "1" "22. April 2008" "Pascal Volk" "Virtual Mail Manager"
     1 .TH "VMM" "1" "26. April 2008" "Pascal Volk" "Virtual Mail Manager"
     2 .SH NAME
     2 .SH NAME
     3 vmm \- commandline tool to manage email domains/accounts/aliases
     3 vmm \- commandline tool to manage email domains/accounts/aliases
     4 .SH SYNOPSIS
     4 .SH SYNOPSIS
     5 .B vmm
     5 .B vmm
     6 \fIsubcommand\fP \fIobject\fP [ \fIargs\fP ]
     6 \fIsubcommand\fP \fIobject\fP [ \fIargs\fP ]
    13 .SS GENERAL SUBCOMMANDS
    13 .SS GENERAL SUBCOMMANDS
    14 .TP
    14 .TP
    15 \fBconfigure\fP (\fBcf\fP) [ \fIsection\fP ]
    15 \fBconfigure\fP (\fBcf\fP) [ \fIsection\fP ]
    16 Starts the interactive configuration for all configuration sections.
    16 Starts the interactive configuration for all configuration sections.
    17 .br
    17 .br
    18 If the optional argument »section« is given, only the configuration options
    18 If the optional argument \fIsection\fP is given, only the configuration options
    19 from the given section will be displayed and be configurable. The following
    19 from the given section will be displayed and be configurable. The following
    20 sections are available:
    20 sections are available:
    21 .RS
    21 .RS
    22 .PD 0
    22 .PD 0
    23 .TP
    23 .TP
    64 If only the userid is available, for example from process list, the subcommand
    64 If only the userid is available, for example from process list, the subcommand
    65 \fBgetuser\fP will show the user's address.
    65 \fBgetuser\fP will show the user's address.
    66 .PP
    66 .PP
    67 .nf
    67 .nf
    68         Example:
    68         Example:
    69 .PP
    69 
    70         \fBvmm getuser 70004\fP
    70         \fBvmm getuser 70004\fP
    71         Account information
    71         Account information
    72         -------------------
    72         -------------------
    73                 Gid............: 70000
    73                 Gid............: 70000
    74                 Uid............: 70004
    74                 Uid............: 70004
    82 Prints the version information from \fBvmm\fB.
    82 Prints the version information from \fBvmm\fB.
    83 .\"
    83 .\"
    84 .SS DOMAIN SUBCOMMANDS
    84 .SS DOMAIN SUBCOMMANDS
    85 .TP
    85 .TP
    86 \fBdomainadd\fP (\fBda\fP) \fIdomain\fP [ \fItransport\fP ]
    86 \fBdomainadd\fP (\fBda\fP) \fIdomain\fP [ \fItransport\fP ]
    87 Adds the new domain »domain« into the database.
    87 Adds the new \fIdomain\fP into the database.
    88 .br
    88 .br
    89 If the optional argument »transport« is given, it will overwrite the default
    89 If the optional argument \fItransport\fP is given, it will overwrite the
    90 transport from \fBvmm.cfg\fP (misc/transport). The specified transport will be
    90 default transport from \fBvmm.cfg\fP (misc/transport). The specified transport
    91 the default transport for all new accounts in this domain.
    91 will be the default transport for all new accounts in this domain.
    92 .PP
    92 .PP
    93 .nf
    93 .nf
    94         Examples:
    94         Examples:
    95 
    95 
    96         \fBvmm domainadd support.example.com smtp:mx1.example.com
    96         \fBvmm domainadd support.example.com smtp:mx1.example.com
    98 .fi
    98 .fi
    99 .TP
    99 .TP
   100 \fBdomaininfo\fP (\fBdi\fP) \fIdomain\fP [ \fIdetailed\fP ]
   100 \fBdomaininfo\fP (\fBdi\fP) \fIdomain\fP [ \fIdetailed\fP ]
   101 This subcommand shows some information about the given domain.
   101 This subcommand shows some information about the given domain.
   102 .br
   102 .br
   103 If the optional argument detailed is specified, all available accounts and
   103 If the keyword '\fBdetailed\fP' is specified as optional argument, all
   104 aliases will be listed.
   104 available accounts and aliases will be listed.
   105 .PP
   105 .PP
   106 .nf
   106 .nf
   107         Example:
   107         Example:
   108 
   108 
   109         \fBvmm domaininfo sales.example.com\fP
   109         \fBvmm domaininfo sales.example.com\fP
   119 .fi
   119 .fi
   120 .TP
   120 .TP
   121 \fBdomaintransport\fP (\fBdt\fP) \fIdomain\fP \fItransport\fP [ \fIforce\fP ]
   121 \fBdomaintransport\fP (\fBdt\fP) \fIdomain\fP \fItransport\fP [ \fIforce\fP ]
   122 A new transport for the given domain can be set with this subcommand.
   122 A new transport for the given domain can be set with this subcommand.
   123 .br
   123 .br
   124 If the optional argument \fIforce\fP is given all account specific transport
   124 If the additional keyword '\fBforce\fP' is given all account specific transport
   125 settings will be overwritten.
   125 settings will be overwritten.
   126 .br
   126 .br
   127 Otherwise this setting will affect only new created accounts.
   127 Otherwise this setting will affect only new created accounts.
   128 .PP
   128 .PP
   129 .nf
   129 .nf
   132         \fBvmm domaintransport support.example.com dovecot:\fP
   132         \fBvmm domaintransport support.example.com dovecot:\fP
   133 .fi
   133 .fi
   134 .TP
   134 .TP
   135 \fBdomaindelete\fP (\fBdd\fP) \fIdomain\fP [ \fIdelalias\fP | \fIdeluser\fP |\
   135 \fBdomaindelete\fP (\fBdd\fP) \fIdomain\fP [ \fIdelalias\fP | \fIdeluser\fP |\
   136  \fIdelall\fP ]
   136  \fIdelall\fP ]
   137 This subcommand deletes the specified domain.
   137 This subcommand deletes the specified \fIdomain\fP.
   138 .br
   138 .br
   139 If there are accounts and/or aliases assigned to the given domain, \fBvmm\fP
   139 If there are accounts and/or aliases assigned to the given domain, \fBvmm\fP
   140 will abort the requested operation and show a error message. If you know, what
   140 will abort the requested operation and show a error message. If you know, what
   141 you are doing, you can specify one of this arguments: \fIdelalias\fP,
   141 you are doing, you can specify one of the following keywords: '\fPdelalias\fP', '\fBdeluser\fP' or '\fBdelall\fP'.
   142 \fIdeluser\fP or \fIdelall\fP.
   142 .br
   143 .br
   143 
   144 If you really always know what you are doing, edit your \fBvmm.cfg\fP and set
   144 If you really always know what you are doing, edit your \fBvmm.cfg\fP and set
   145 the option \fIforcedel\fP, in section \fImisc\fP, to true.
   145 the option \fIforcedel\fP, in section \fImisc\fP, to true.
   146 .\"
   146 .\"
   147 .SS ACCOUNT SUBCOMMANDS
   147 .SS ACCOUNT SUBCOMMANDS
   148 .TP
   148 .TP
   149 \fBuseradd\fP (\fBua\fP) \fIaddress\fP [ \fIpassword\fP ]
   149 \fBuseradd\fP (\fBua\fP) \fIaddress\fP [ \fIpassword\fP ]
       
   150 Use this subcommand to create a new email account for the given \fIaddress\fP.
       
   151 .br
       
   152 If the \fIpassword\fP is not provided, \fBvmm\fP will prompt for it
       
   153 interactively.
       
   154 .PP
       
   155 .nf
       
   156         Examples:
       
   157 
       
   158         \fBvmm ua d.user@example.com 'A 5ecR3t P4s5\\/\\/0rd'\fP
       
   159         \fBvmm ua e.user@example.com\fP
       
   160         Enter new password:
       
   161         Retype new password:
       
   162 .fi
   150 .TP
   163 .TP
   151 \fBuserinfo\fP (\fBui\fP) \fIaddress\fP [ \fIdu\fP ]
   164 \fBuserinfo\fP (\fBui\fP) \fIaddress\fP [ \fIdu\fP ]
   152 .TP
   165 This subcommand displays some information about the account specified by
   153 \fBusername\fP (\fBun\fP) \fIaddress\fP [ \fI'Users Name'\fP ]
   166 \fIaddress\fP.
       
   167 .br
       
   168 If the optional argument \fIdu\fP is given, the disk usage of users maildir will
       
   169 be summarized and displayed too.
       
   170 .TP
       
   171 \fBusername\fP (\fBun\fP) \fIaddress\fP \fI'Users Name'\fP
       
   172 The users real name can be set/updated with this subcommand.
       
   173 .PP
       
   174 .nf
       
   175         Example:
       
   176 
       
   177         \fBvmm un d.user@example.com 'John Doe'\fP
       
   178 .fi
   154 .TP
   179 .TP
   155 \fBuserpassword\fP (\fBup\fP) \fIaddress\fP [ \fIpassword\fP ]
   180 \fBuserpassword\fP (\fBup\fP) \fIaddress\fP [ \fIpassword\fP ]
   156 .TP
   181 The \fIpassword\fP from an account can be updated with this subcommand.
   157 \fBusertransport\fP (\fBut\fP) \fIaddress\fP [ \fItransport\fP ]
   182 .br
       
   183 If the \fIpassword\fP is not provided, \fBvmm\fP will prompt for it
       
   184 interactively.
       
   185 .PP
       
   186 .nf
       
   187         Example:
       
   188 
       
   189         \fBvmm up d.user@example.com 'A |\\/|0r3 5ecur3 P4s5\\/\\/0rd?'\fP
       
   190 .fi
       
   191 .TP
       
   192 \fBusertransport\fP (\fBut\fP) \fIaddress\fP \fItransport\fP
       
   193 A different transport for an account can be specified with this subcommand.
       
   194 .PP
       
   195 .nf
       
   196         Example:
       
   197 
       
   198         \fBvmm ut d.user@example.com smtp:pc105.it.example.com\fP
       
   199 .fi
   158 .TP
   200 .TP
   159 \fBuserdisable\fP (\fBu0\fP) \fIaddress\fP [ \fIsmtp\fP | \fIpop3\fP |\
   201 \fBuserdisable\fP (\fBu0\fP) \fIaddress\fP [ \fIsmtp\fP | \fIpop3\fP |\
   160  \fIimap\fP | \fImanagesieve\fP | \fIall\fP ]
   202  \fIimap\fP | \fImanagesieve\fP | \fIall\fP ]
       
   203 If a user shouldn't have access to one or all services you can restrict the 
       
   204 access with this subcommand.
       
   205 .br
       
   206 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
       
   207 \fIaddress\fP. Otherwise only the specified service will be restricted.
       
   208 .PP
       
   209 .nf
       
   210         Examples:
       
   211 
       
   212         \fBvmm u0 b.user@example.com imap\fP
       
   213         \fBvmm userdisable c.user@example.com\fP
       
   214 .fi
   161 .TP
   215 .TP
   162 \fBuserenable\fP (\fBu1\fP) \fIaddress\fP [ \fIsmtp\fP | \fIpop3\fP |\
   216 \fBuserenable\fP (\fBu1\fP) \fIaddress\fP [ \fIsmtp\fP | \fIpop3\fP |\
   163  \fIimap\fP | \fImanagesieve\fP | \fIall\fP ]
   217  \fIimap\fP | \fImanagesieve\fP | \fIall\fP ]
       
   218 To allow access to one or all restricted services use this subcommand.
       
   219 .br
       
   220 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
       
   221 \fIaddress\fP. Otherwise only the specified service will be enabled.
   164 .TP
   222 .TP
   165 \fBuserdelete\fP (\fBud\fP) \fIaddress\fP
   223 \fBuserdelete\fP (\fBud\fP) \fIaddress\fP
       
   224 Use this subcommand to delete the account with the given \fIaddress\fP.
   166 .\"
   225 .\"
   167 .SS ALIAS SUBCOMMANDS
   226 .SS ALIAS SUBCOMMANDS
   168 .TP
   227 .TP
   169 \fBaliasadd\fP (\fBaa\fP) \fIalias\fP \fItarget\fP
   228 \fBaliasadd\fP (\fBaa\fP) \fIalias\fP \fItarget\fP
       
   229 This subcommand is used to create a new alias.
       
   230 .PP
       
   231 .nf
       
   232         Examples:
       
   233 
       
   234         \fBvmm aliasadd john.doe@example.com d.user@example.com\fP
       
   235         \fBvmm aa support@example.com d.user@example.com\fP
       
   236         \fBvmm aa support@example.com e.user@example.com\fP
       
   237 .fi
   170 .TP
   238 .TP
   171 \fBaliasinfo\fP (\fBai\fP) \fIalias\fP
   239 \fBaliasinfo\fP (\fBai\fP) \fIalias\fP
       
   240 Information about an alias can be displayed with this subcommand.
       
   241 .PP
       
   242 .nf
       
   243         Example:
       
   244 
       
   245         \fBvmm aliasinfo support@example.com\fP
       
   246         Alias information
       
   247         -----------------
       
   248                 Mail for support@example.com goes to:
       
   249                      -> d.user@example.com
       
   250                      -> e.user@example.com
       
   251 .fi
   172 .TP
   252 .TP
   173 \fBaliasdelete\fP (\fBad\fP) \fIalias\fP [ \fItarget\fP ]
   253 \fBaliasdelete\fP (\fBad\fP) \fIalias\fP [ \fItarget\fP ]
   174 
   254 Use this subcommand to delete the \fIalias\fP.
       
   255 .br
       
   256 If the optional destination address \fItarget\fP is given, only this
       
   257 destination will be removed from the \fIalias\fP.
       
   258 .PP
       
   259 .nf
       
   260         Example:
       
   261         \fBvmm ad support@example.com d.user@example.com\fP
       
   262 .fi
   175 .SH FILES
   263 .SH FILES
   176 /usr/local/etc/vmm.cfg
   264 /usr/local/etc/vmm.cfg
   177 .SH SEE ALSO
   265 .SH SEE ALSO
   178 vmm.cgf(5), vmm configuration parameters
   266 vmm.cgf(5), vmm configuration parameters
   179 .SH AUTHOR
   267 .SH AUTHOR