man/man5/vmm.cfg.5.rst
branchv0.6.x
changeset 179 3d09c657e9e5
parent 177 ec2e1df8bb10
child 180 f8279c90e99c
equal deleted inserted replaced
178:9480f2b15129 179:3d09c657e9e5
     5 --------------------------
     5 --------------------------
     6 configuration file for vmm
     6 configuration file for vmm
     7 --------------------------
     7 --------------------------
     8 
     8 
     9 :Author:         Pascal Volk <neverseen@users.sourceforge.net>
     9 :Author:         Pascal Volk <neverseen@users.sourceforge.net>
    10 :Date:           2010-01-26
    10 :Date:           2010-01-30
    11 :Version:        vmm-0.6.0
    11 :Version:        vmm-0.6.0
    12 :Manual group:   vmm Manual
    12 :Manual group:   vmm Manual
    13 :Manual section: 5
    13 :Manual section: 5
    14 
    14 
    15 .. contents::
    15 .. contents::
    16     :backlinks: top
    16   :backlinks: top
    17     :class: htmlout
    17   :class: htmlout
    18 
    18 
    19 SYNOPSIS
    19 SYNOPSIS
    20 ========
    20 ========
    21 vmm.cfg
    21 vmm.cfg
    22 
    22 
       
    23 
    23 DESCRIPTION
    24 DESCRIPTION
    24 ===========
    25 ===========
    25 **vmm**\(1) reads its configuration data from *vmm.cfg*.
    26 |vmm(1)|_ reads its configuration data from *vmm.cfg*.
    26 
    27 
    27 The configuration file is split into multiple sections. A section starts with
    28 The configuration file is split into multiple sections. A section starts with
    28 the section name, enclosed in square brackets '**[**' and '**]**', followed
    29 the section name, enclosed in square brackets '**[**' and '**]**', followed
    29 by '*option* = *value*' pairs.
    30 by '*option* = *value*' pairs.
    30 
    31 
    52 name. In order to use a option's default setting, comment out the line,
    53 name. In order to use a option's default setting, comment out the line,
    53 either with a **#** or **;** or simply remove the setting from *vmm.cfg*.
    54 either with a **#** or **;** or simply remove the setting from *vmm.cfg*.
    54 
    55 
    55 A minimal *vmm.cfg* would be::
    56 A minimal *vmm.cfg* would be::
    56 
    57 
    57     [database]
    58   [database]
    58     user = me
    59   user = me
    59     pass = xxxxxxxx
    60   pass = xxxxxxxx
    60 
    61 
    61     [config]
    62   [config]
    62     done = true
    63   done = true
       
    64 
    63 
    65 
    64 SEARCH ORDER
    66 SEARCH ORDER
    65 -------------
    67 -------------
    66 By default **vmm**\(1) looks for *vmm.cfg* in the following directories in the
    68 By default |vmm(1)|_ looks for *vmm.cfg* in the following directories in the
    67 order listed:
    69 order listed:
    68 
    70 
    69      | */root*
    71   | */root*
    70      | */usr/local/etc*
    72   | */usr/local/etc*
    71      | */etc*
    73   | */etc*
    72 
    74 
    73 The first configuration file found will be used.
    75 The first configuration file found will be used.
       
    76 
    74 
    77 
    75 SECTIONS
    78 SECTIONS
    76 ========
    79 ========
    77 This section describes all sections and their options of the *vmm.cfg*.
    80 This section describes all sections and their options of the *vmm.cfg*.
       
    81 
    78 
    82 
    79 ACCOUNT
    83 ACCOUNT
    80 -------
    84 -------
    81 The options in the section **account** are used to specify user account
    85 The options in the section **account** are used to specify user account
    82 related settings.
    86 related settings.
    83 
    87 
       
    88 .. _account.delete_directory:
       
    89 
    84 ``delete_directory (default: false)`` : *Boolean*
    90 ``delete_directory (default: false)`` : *Boolean*
    85     Determines the behavior of **vmm**\(1) when an account is deleted. If
    91   Determines the behavior of |vmm(1)|_ when an account is deleted
    86     this option is set to *true* the user's home directory will be deleted
    92   (|userdelete|_). If this option is set to *true* the user's home directory
    87     recursively.
    93   will be deleted  recursively.
       
    94 
       
    95 .. _account.directory_mode:
    88 
    96 
    89 ``directory_mode (default: 448)`` : *Int*
    97 ``directory_mode (default: 448)`` : *Int*
    90     Access mode for a user's home directory and all directories inside.
    98   Access mode for a user's home directory and all directories inside. The
    91     The value has to be specified in decimal (base 10) notation.
    99   value has to be specified in decimal (base 10) notation.
    92 
   100 
    93     | For example: 'drwx------' -> octal 0700 -> decimal 448
   101   | For example: 'drwx------' -> octal 0700 -> decimal 448
       
   102 
       
   103 .. _account.disk_usage:
    94 
   104 
    95 ``disk_usage (default: false)`` : *Boolean*
   105 ``disk_usage (default: false)`` : *Boolean*
    96     Determines whether the disk usage of a user's Maildir always should be
   106   Determines whether the disk usage of a user's Maildir always should be
    97     summarized, using **du**\(1), and displayed with account information.
   107   summarized, using **du**\(1), and displayed with account information.
    98 
   108 
    99     This could be slow on large Maildirs. When you have enabled quotas,
   109   This could be slow on large Maildirs. When you have enabled quotas,
   100     **vmm**'s **userinfo** subcomammand will also display the current quota
   110   **vmm**'s |userinfo|_ subcomammand will also display the current quota
   101     usage of the account. You may also use **userinfo**'s optional argument
   111   usage of the account. You may also use |userinfo|_'s optional argument
   102     **du** or **full**, in order to display the current disk usage of an
   112   **du** or **full**, in order to display the current disk usage of an
   103     account.
   113   account's Maildir.
       
   114 
       
   115 .. _account.imap:
   104 
   116 
   105 ``imap (default: true)`` : *Boolean*
   117 ``imap (default: true)`` : *Boolean*
   106     Determines whether a newly created user can log in via IMAP.
   118   Determines whether a newly created user can log in via IMAP.
       
   119 
       
   120 .. _account.password_length:
   107 
   121 
   108 ``password_length (default: 8)`` : *Int*
   122 ``password_length (default: 8)`` : *Int*
   109     Determines how many characters and/or numbers should be used for
   123   Determines how many characters and/or numbers should be used for randomly
   110     randomly generated passwords. Any value less than 8 will be
   124   generated passwords. Any value less than 8 will be increased to 8.
   111     increased to 8.
   125 
       
   126 .. _account.pop3:
   112 
   127 
   113 ``pop3 (default: true)`` : *Boolean*
   128 ``pop3 (default: true)`` : *Boolean*
   114     Determines whether a newly created user can log in via POP3.
   129     Determines whether a newly created user can log in via POP3.
   115 
   130 
       
   131 .. _account.random_password:
       
   132 
   116 ``random_password (default: false)`` : *Boolean*
   133 ``random_password (default: false)`` : *Boolean*
   117     Determines whether **vmm** should generate a random password when no
   134   Determines whether **vmm** should generate a random password when no
   118     password was given for the **useradd** subcommand. If this option is
   135   password was given for the |useradd|_ subcommand. If this option is set to
   119     set to *false* **vmm** will prompt you to enter a password for the new
   136   *false* **vmm** will prompt you to enter a password for the new account.
   120     account.
   137 
   121 
   138   You can specify the password length of generated passwords with the
   122     You can specify the password length of generated passwords with the
   139   |account.password_length|_ option.
   123     **password_length** option.
   140 
       
   141 .. _account.sieve:
   124 
   142 
   125 ``sieve (default: true)`` : *Boolean*
   143 ``sieve (default: true)`` : *Boolean*
   126     Determines whether a newly created user can log in via ManageSieve.
   144   Determines whether a newly created user can log in via ManageSieve.
       
   145 
       
   146 .. _account.smtp:
   127 
   147 
   128 ``smtp (default: true)`` : *Boolean*
   148 ``smtp (default: true)`` : *Boolean*
   129      Determines whether a newly created user can log in via SMTP (SMTP AUTH).
   149   Determines whether a newly created user can log in via SMTP (SMTP AUTH).
   130 
   150 
   131 Example::
   151 Example::
   132 
   152 
   133     [account]
   153   [account]
   134     delete_directory = false
   154   delete_directory = false
   135     directory_mode = 448
   155   directory_mode = 448
   136     disk_usage = false
   156   disk_usage = false
   137     random_password = true
   157   random_password = true
   138     password_length = 10
   158   password_length = 10
   139     smtp = true
   159   smtp = true
   140     pop3 = true
   160   pop3 = true
   141     imap = true
   161   imap = true
   142     sieve = true
   162   sieve = true
       
   163 
   143 
   164 
   144 BIN
   165 BIN
   145 ---
   166 ---
   146 The **bin** section is used to specify some paths to some binaries required
   167 The **bin** section is used to specify some paths to some binaries required
   147 by **vmm**\(1).
   168 by |vmm(1)|_.
       
   169 
       
   170 .. _bin.dovecotpw:
   148 
   171 
   149 ``dovecotpw (default: /usr/sbin/dovecotpw)`` : *String*
   172 ``dovecotpw (default: /usr/sbin/dovecotpw)`` : *String*
   150     The absolute path to the dovecotpw binary. This binary is used to
   173   The absolute path to the dovecotpw binary. This binary is used to
   151     generate a password hash, if **misc.password_scheme** is set to one of
   174   generate a password hash, if |misc.password_scheme|_ is set to one of
   152     'SMD5', 'SSHA', 'CRAM-MD5', 'HMAC-MD5', 'LANMAN', 'NTLM' or 'RPA'.
   175   'SMD5', 'SSHA', 'CRAM-MD5', 'HMAC-MD5', 'LANMAN', 'NTLM' or 'RPA'.
       
   176 
       
   177 .. _bin.du:
   153 
   178 
   154 ``du (default: /usr/bin/du)`` : *String*
   179 ``du (default: /usr/bin/du)`` : *String*
   155     The absolute path to **du**\(1). This binary is used to summarize the
   180   The absolute path to **du**\(1). This binary is used to summarize the disk
   156     disk usage of a user's Maildir.
   181   usage of a user's Maildir.
       
   182 
       
   183 .. _bin.postconf:
   157 
   184 
   158 ``postconf (default: /usr/sbin/postconf)`` : *String*
   185 ``postconf (default: /usr/sbin/postconf)`` : *String*
   159     The absolute path to Postfix' **postconf**\(1). This binary is required
   186   The absolute path to Postfix' |postconf(1)|_. This binary is required when
   160     when **vmm**\(1) has to check for some Postfix settings, e.g.
   187   |vmm(1)|_ has to check for some Postfix settings, e.g.
   161     `virtual_alias_expansion_limit`.
   188   |virtual_alias_expansion_limit|_.
   162 
   189 
   163 Example::
   190 Example::
   164 
   191 
   165     [bin]
   192   [bin]
   166     dovecotpw = /usr/sbin/dovecotpw
   193   dovecotpw = /usr/sbin/dovecotpw
   167     du = /usr/bin/du
   194   du = /usr/bin/du
   168     postconf = /usr/sbin/postconf
   195   postconf = /usr/sbin/postconf
       
   196 
   169 
   197 
   170 CONFIG
   198 CONFIG
   171 ------
   199 ------
   172 The **config** section is an internal used control section.
   200 The **config** section is an internal used control section.
   173 
   201 
       
   202 .. _config.done:
       
   203 
   174 ``done (default: false)`` : *Boolean*
   204 ``done (default: false)`` : *Boolean*
   175     This option is set to *false* when **vmm**\(1) is installed for the first
   205   This option is set to *false* when |vmm(1)|_ is installed for the first
   176     time. When you edit *vmm.cfg*, set this option to *true*. This option is
   206   time. When you edit *vmm.cfg*, set this option to *true*. This option is
   177     also set to *true* when you configure **vmm**\(1) with the command **vmm
   207   also set to *true* when you configure |vmm(1)|_ with the command |vmm
   178     configure**.
   208   configure|_.
   179 
   209 
   180     If this option is set to *false*, **vmm**\(1) will start in the
   210   If this option is set to *false*, |vmm(1)|_ will start in the interactive
   181     interactive configurations mode.
   211   configurations mode.
   182 
   212 
   183 Example::
   213 Example::
   184 
   214 
   185     [config]
   215   [config]
   186     done = true
   216   done = true
       
   217 
   187 
   218 
   188 DATABASE
   219 DATABASE
   189 --------
   220 --------
   190 The **database** section is used to specify some options required to
   221 The **database** section is used to specify some options required to
   191 connect to the database.
   222 connect to the database.
   192 
   223 
       
   224 .. _database.host:
       
   225 
   193 ``host (default: localhost)`` : *String*
   226 ``host (default: localhost)`` : *String*
   194     Hostname or IP address of the database server.
   227   Hostname or IP address of the database server.
       
   228 
       
   229 .. _database.name:
   195 
   230 
   196 ``name (default: mailsys)`` : *String*
   231 ``name (default: mailsys)`` : *String*
   197     Name of the database.
   232   Name of the database.
       
   233 
       
   234 .. _database.pass:
   198 
   235 
   199 ``pass (default: None)`` : *String*
   236 ``pass (default: None)`` : *String*
   200     Database password.
   237   Database password.
       
   238 
       
   239 .. _database.user:
   201 
   240 
   202 ``user (default: None)`` : *String*
   241 ``user (default: None)`` : *String*
   203     Name of the database user.
   242   Name of the database user.
   204 
   243 
   205 Example::
   244 Example::
   206 
   245 
   207     [database]
   246   [database]
   208     host = localhost
   247   host = localhost
   209     user = vmm
   248   user = vmm
   210     pass = PY_SRJ}L/0p-oOk
   249   pass = PY_SRJ}L/0p-oOk
   211     name = mailsys
   250   name = mailsys
       
   251 
   212 
   252 
   213 DOMAIN
   253 DOMAIN
   214 ------
   254 ------
   215 The **domain** section specifies some domain related settings.
   255 The **domain** section specifies some domain related settings.
   216 
   256 
       
   257 .. _domain.auto_postmaster:
       
   258 
   217 ``auto_postmaster (default: true)`` : *Boolean*
   259 ``auto_postmaster (default: true)`` : *Boolean*
   218     Determines if **vmm**\(1) should create also a postmaster account when a
   260   Determines if |vmm(1)|_ should create also a postmaster account when a new
   219     new domain is created.
   261   domain is created (|domainadd|_).
       
   262 
       
   263 .. _domain.delete_directory:
   220 
   264 
   221 ``delete_directory (default: false)`` : *Boolean*
   265 ``delete_directory (default: false)`` : *Boolean*
   222     Specifies whether the domain directory and all user directories inside
   266   Specifies whether the domain directory and all user directories inside
   223     should be deleted when a domain is deleted.
   267   should be deleted when a domain is deleted (|domaindelete|_).
       
   268 
       
   269 .. _domain.directory_mode:
   224 
   270 
   225 ``directory_mode (default: 504)`` : *Int*
   271 ``directory_mode (default: 504)`` : *Int*
   226     Access mode for the domain directory in decimal (base 10) notation.
   272   Access mode for the domain directory in decimal (base 10) notation.
   227 
   273 
   228     | For example: 'drwxrwx---' -> octal 0770 -> decimal 504
   274   | For example: 'drwxrwx---' -> octal 0770 -> decimal 504
       
   275 
       
   276 .. _domain.force_deletion:
   229 
   277 
   230 ``force_deletion (default: false)`` : *Boolean*
   278 ``force_deletion (default: false)`` : *Boolean*
   231     Force deletion of accounts and aliases when a domain is deleted.
   279   Force deletion of accounts and aliases when a domain is deleted
   232 
   280   (|domaindelete|_).
   233 Example::
   281 
   234 
   282 Example::
   235     [domain]
   283 
   236     auto_postmaster = true
   284   [domain]
   237     delete_directory = false
   285   auto_postmaster = true
   238     directory_mode = 504
   286   delete_directory = false
   239     force_deletion = false
   287   directory_mode = 504
       
   288   force_deletion = false
       
   289 
   240 
   290 
   241 MAILDIR
   291 MAILDIR
   242 -------
   292 -------
   243 The **maildir** section is used to specify some default options for new
   293 The **maildir** section is used to specify some default options for new
   244 created Maildirs and folders inside.
   294 created Maildirs and folders inside.
   245 
   295 
       
   296 .. _maildir.folders:
       
   297 
   246 ``folders (default: Drafts:Sent:Templates:Trash)`` : *String*
   298 ``folders (default: Drafts:Sent:Templates:Trash)`` : *String*
   247     A colon separated list of folder names, that should be created. If no
   299   A colon separated list of folder names, that should be created. If no
   248     folders should be created inside the Maildir, set the value of this
   300   folders should be created inside the Maildir, set the value of this option
   249     option to a single colon ('**:**').
   301   to a single colon ('**:**').
   250 
   302 
   251     If you want to create folders containing one or more subfolders, separate
   303   If you want to create folders containing one or more subfolders, separate
   252     them with a single dot ('**.**').
   304   them with a single dot ('**.**').
       
   305 
       
   306 .. _maildir.name:
   253 
   307 
   254 ``name (default: Maildir)`` : *String*
   308 ``name (default: Maildir)`` : *String*
   255     Default name of the Maildir folder in users home directories.
   309   Default name of the Maildir folder in users home directories.
   256 
   310 
   257 Example::
   311 Example::
   258 
   312 
   259     [maildir]
   313   [maildir]
   260     folders = Drafts:Sent:Templates:Trash:Lists.Dovecot:Lists.Postfix
   314   folders = Drafts:Sent:Templates:Trash:Lists.Dovecot:Lists.Postfix
   261     name = Maildir
   315   name = Maildir
       
   316 
       
   317 .. _imap_uft7:
       
   318 
       
   319 .. note:: If you want to use internationalized mailbox names in the
       
   320   **folders** setting, you have to specify them in a modified version of the
       
   321   UTF-7 encoding (see :RFC:`3501`, section 5.1.3).
       
   322 
       
   323   Dovecot provides a useful utility for mUTF-7 <-> UTF-8 conversion:
       
   324   **imap-utf7**, it's available since Dovecot version 1.2.0.
       
   325 ..
       
   326 
       
   327 imap-utf7 example::
       
   328 
       
   329   user@host:~$ /usr/local/libexec/dovecot/imap-utf7 -r Wysłane
       
   330   Wys&AUI-ane
       
   331   user@host:~$ /usr/local/libexec/dovecot/imap-utf7 "&AVo-mietnik"
       
   332   Śmietnik
       
   333 
   262 
   334 
   263 MISC
   335 MISC
   264 ----
   336 ----
   265 The **misc** section is used to define miscellaneous settings.
   337 The **misc** section is used to define miscellaneous settings.
   266 
   338 
       
   339 .. _misc.base_directory:
       
   340 
   267 ``base_directory (default: /srv/mail)`` : *String*
   341 ``base_directory (default: /srv/mail)`` : *String*
   268     All domain directories will be created inside this directory.
   342   All domain directories will be created inside this directory.
       
   343 
       
   344 .. _misc.password_scheme:
   269 
   345 
   270 ``password_scheme (default: CRAM-MD5)`` : *String*
   346 ``password_scheme (default: CRAM-MD5)`` : *String*
   271     Password scheme to use (see also: **dovecotpw -l**).
   347   Password scheme to use (see also: **dovecotpw -l**).
       
   348 
       
   349 .. _misc.gid_mail:
   272 
   350 
   273 ``gid_mail (default: 8)`` : *Int*
   351 ``gid_mail (default: 8)`` : *Int*
   274     Numeric group ID of group mail (`mail_privileged_group` from
   352   Numeric group ID of group mail (`mail_privileged_group` from
   275     *dovecot.conf*)
   353   *dovecot.conf*)
       
   354 
       
   355 .. _misc.transport:
   276 
   356 
   277 ``transport (default: dovecot:)`` : *String*
   357 ``transport (default: dovecot:)`` : *String*
   278     Default transport for domains and accounts. For details see
   358   Default transport for domains and accounts. For details see
   279     **transport**\(5).
   359   |transport(5)|_.
       
   360 
       
   361 .. _misc.dovecot_version:
   280 
   362 
   281 ``dovecot_version (default: 12)`` : *Int*
   363 ``dovecot_version (default: 12)`` : *Int*
   282     The concatenated major and minor version number of the currently used
   364   The concatenated major and minor version number of the currently used
   283     Dovecot version. (see: **dovecot --version**).
   365   Dovecot version. (see: **dovecot --version**).
   284 
   366 
   285     When, for example, the command **dovecot --version** prints *1.1.18*, set
   367   When, for example, the command **dovecot --version** prints *1.1.18*, set
   286     the value of this option to **11**.
   368   the value of this option to **11**.
   287 
   369 
   288 Example::
   370 Example::
   289 
   371 
   290     [misc]
   372   [misc]
   291     base_directory = /srv/mail
   373   base_directory = /srv/mail
   292     password_scheme = PLAIN
   374   password_scheme = PLAIN
   293     gid_mail = 8
   375   gid_mail = 8
   294     transport = dovecot:
   376   transport = dovecot:
   295     dovecot_version = 11
   377   dovecot_version = 11
       
   378 
   296 
   379 
   297 FILES
   380 FILES
   298 =====
   381 =====
   299 */root/vmm.cfg*
   382 */root/vmm.cfg*
   300     | will be used when found.
   383   | will be used when found.
   301 */usr/local/etc/vmm.cfg*
   384 */usr/local/etc/vmm.cfg*
   302     | will be used when the above file doesn't exist.
   385   | will be used when the above file doesn't exist.
   303 */etc/vmm.cfg*
   386 */etc/vmm.cfg*
   304     | will be used when none of the both above mentioned files exists.
   387   | will be used when none of the both above mentioned files exists.
       
   388 
   305 
   389 
   306 SEE ALSO
   390 SEE ALSO
   307 ========
   391 ========
   308 vmm(1), command line tool to manage email domains/accounts/aliases
   392 |vmm(1)|_
       
   393 
   309 
   394 
   310 COPYING
   395 COPYING
   311 =======
   396 =======
   312 vmm and its manual pages were written by Pascal Volk and are licensed under
   397 vmm and its manual pages were written by Pascal Volk and are licensed under
   313 the terms of the BSD License.
   398 the terms of the BSD License.
   314 
   399 
       
   400 .. include:: ../substitute_links.rst
       
   401 .. include:: ../substitute_links_5.rst