logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

vmm.cfg - configuration file for vmm

Copying

vmm and its manual pages were written by Pascal Volk <user+vmm AT localhost.localdomain.org> and are licensed under the terms of the BSD License. vmm 0.7 2014-02-17 VMM.CFG(5)

Description

vmm(1) reads its configuration data from vmm.cfg. The configuration file is split into multiple sections. A section starts with the section name, enclosed in square brackets `[' and `]', followed by `option = value' pairs. Whitespace around the `=' and at the end of a value is ignored. Empty lines and lines starting with `#' or `;' will be ignored. Each value uses one of the following data types: Boolean to indicate if something is enabled/activated (true) or disabled/deactivated (false). Accepted values for true are: 1, yes, true and on. Accepted values for false are: 0, no, false and off. Int an integer number, written without a fractional or decimal component. For example 1, 50 or 321 are integers. String a sequence of characters and/or numbers. For example `word', `helloworld' or `/usr/bin/strings' are strings. Most options have a default value, shown in parentheses after the option's name. In order to use a option's default setting, comment out the line, either with a # or ; or simply remove the setting from vmm.cfg. A minimal vmm.cfg would be: [database] user = me pass = xxxxxxxx [misc] dovecot_version = 2.2.11

Example

An example configuration. All options that are not listed in the configuration file will have their default values. [account] password_length = 10 random_password = true [database] host = dbsrv8.example.net pass = PY_SRJ}L/0p-oOk port = 5433 sslmode = require user = vmm [domain] quota_bytes = 500M quota_messages = 10000 [mailbox] folders = Drafts:Sent:Templates:Trash:Lists.Dovecot:Lists.Postfix [misc] crypt_sha512_rounds = 10000 dovecot_version = 2.2.11 password_scheme = SHA512-CRYPT.hex

Internet Resources

Homepage http://vmm.localdomain.org/ Project site http://sf.net/projects/vmm/ Bug tracker https://bitbucket.org/pvo/vmm/issues

Name

vmm.cfg - configuration file for vmm

Section Account

The options in the section account are used to specify user account related settings. account.delete_directorydelete_directory (default: false) : Boolean Determines the behavior of vmm(1) when an account is deleted (userdelete). If this option is set to true the user's home directory will be deleted recursively. account.directory_modedirectory_mode (default: 448) : Int Access mode for a user's home directory and all directories inside. The value has to be specified in decimal (base 10) notation. For example: `drwx------' → octal 0700 → decimal 448 account.disk_usagedisk_usage (default: false) : Boolean Determines whether the disk usage of a user's mail directory always should be summarized, using du(1), and displayed with the account information (userinfo). This could be slow on large Maildirs. When you have enabled quotas, vmm's userinfo subcommand will also display the current quota usage of the account. You may also use userinfo's optional details-argument du or full, in order to display the current disk usage of an account's mail directory. account.password_lengthpassword_length (default: 8) : Int Determines how many characters and/or numbers should be used for randomly generated passwords. Any value less than 8 will be increased to 8. account.random_passwordrandom_password (default: false) : Boolean Determines whether vmm(1) should generate a random password when no password was given for the useradd subcommand. If this option is set to falsevmm will prompt you to enter a password for the new account. You can specify the password length of generated passwords with the account.password_length option.

Section Bin

The bin section is used to specify some paths to some binaries required by vmm(1). bin.doveadmdoveadm (default: /usr/bin/doveadm) : String The absolute path to the doveadm(1) binary. This binary is used to generate a password hash, if misc.password_scheme is set to one of `CRAM-MD5', `HMAC-MD5', `LANMAN', `OTP', `RPA', `SCRAM-SHA-1' or `SKEY'. This binary will be also required if your Python installation doesn't support the md4 hash algorithm (hashlib + OpenSSL) used for the password schemes `PLAIN-MD4' and `NTLM'. The doveadm(1) binary is also used to create a user's INBOX and additional mailboxes (mailbox.folders), when the mailbox.format is set to mdbox or sdbox. bin.dudu (default: /usr/bin/du) : String The absolute path to du(1). This binary is used to summarize the disk usage of a user's mail directory. bin.postconfpostconf (default: /usr/sbin/postconf) : String The absolute path to Postfix' postconf(1). This binary is required when vmm(1) has to check for some Postfix settings, e.g. the virtual_alias_expansion_limit.

Section Database

The database section is used to specify some options required to connect to the database. database.hosthost (default: localhost) : String Hostname or IP address of the database server. database.namename (default: mailsys) : String Name of the database. database.passpass (default: None) : String Database password. database.portport (default: 5432) : Int The TCP port, on which the database server is listening for connections. database.sslmodesslmode (default: prefer) : String Determines whether and with what priority an SSL connection will be negotiated with the database server. Possible values are: disabled, allow, prefer, require, verify-ca and verify-full. The modes verify-ca and verify-full are available since PostgreSQL 8.4 database.useruser (default: None) : String Name of the database user.

Section Domain

The domain section specifies some domain related settings. The quota limit (quota_bytes and quota_messages), service settings (imap, pop3, sieve and smtp) and the transport setting will be applied when a domain is created. In order to modify those settings for an existing domain, use one of the following vmm(1) subcommands: domainquota in order to update a domain's quota limit domainservices in order to assign a different service set to a domain domaintransport in order to set a new default domain transport When an account is created, it inherits all the settings of the domain to which it is added. Different settings for an existing account can be set using the subcommands userquota, userservices and usertransport. domain.auto_postmasterauto_postmaster (default: true) : Boolean Determines if vmm(1) should create also a postmaster account when a new domain is created (domainadd). domain.delete_directorydelete_directory (default: false) : Boolean Specifies whether the domain directory and all user directories inside should be deleted when a domain is deleted (domaindelete). domain.directory_modedirectory_mode (default: 504) : Int Access mode for the domain directory in decimal (base 10) notation. For example: `drwxrwx---' → octal 0770 → decimal 504 domain.force_deletionforce_deletion (default: false) : Boolean Force the deletion of accounts and aliases when a domain is deleted (domaindelete). domain.imapimap (default: true) : Boolean Determines whether newly created users can log in via IMAP. domain.pop3pop3 (default: true) : Boolean Determines whether newly created users can log in via POP3. domain.quota_bytesquota_bytes (default: 0) : String Quota limit in bytes. 0 means unlimited. This limit will be applied to all newly created domains. The option's value can be written as an integer value, e.g.: 20480. It's also possible to append one of the following prefixes to the limit: b (bytes), k (kilobytes), M (megabytes) or G (gigabytes). 1024 is the same as 1024b or 1k. domain.quota_messagesquota_messages (default: 0) : Int Quota limit in number of messages. 0 means unlimited. This limit will be applied to all newly created domains. domain.sievesieve (default: true) : Boolean Determines whether newly created users can log in via SIEVE (ManageSieve). domain.smtpsmtp (default: true) : Boolean Determines whether newly created users can log in via SMTP (SMTP AUTH). domain.transporttransport (default: lmtp:unix:private/dovecot-lmtp) : String Default transport for new domains. For details see transport(5).

Section Mailbox

The mailbox section is used to specify some options for new created mailboxes in the users home directories. The INBOX will be created always. mailbox.foldersfolders (default: Drafts:Sent:Templates:Trash) : String A colon separated list of mailboxes that should be created. If no additionally mailboxes should be created, set the value of this option to a single colon (`:'). If you want to create folders containing one or more subfolders, separate them with a single dot (`.'). If you want to use internationalized mailbox names (e.g. `Wysłane' or `Gelöschte Objekte'), write their names UTF-8 encoded. vmm(1) will convert internationalized mailbox names to a modified version of the UTF-7 encoding (see also: RFC 3501, section 5.1.3). mailbox.formatformat (default: maildir) : String The mailbox format to be used for a user's mailbox. Depending on the used Dovecot version (misc.dovecot_version) vmm(1) supports up to three formats: maildir Dovecot ≥ v1.0.0 mdbox Dovecot ≥ v2.0.beta5 sdbox Dovecot ≥ v2.0.rc3 mailbox.rootroot (default: Maildir) : String Name of the mailbox root directory in a user's home directory. Commonly used names, depending on the used mailbox.format, are Maildir, mdbox or sdbox. mailbox.subscribesubscribe (default: true) : Boolean When this option is set to true, the mailboxes from the mailbox.folders option will be listed in the user's subscriptions file. If you don't want to subscribe the created mailboxes, set this option to false.

Section Misc

The misc section is used to define miscellaneous settings. misc.base_directorybase_directory (default: /srv/mail) : String All domain directories will be created inside this directory. misc.crypt_blowfish_roundscrypt_blowfish_rounds (default: 5) : Int Number of encryption rounds for the password_schemeBLF-CRYPT. The value must be in range 4 - 31. misc.crypt_sha256_roundscrypt_sha256_rounds (default: 5000) : Int Number of encryption rounds for the password_schemeSHA256-CRYPT. The value must be in range 1000 - 999999999. misc.crypt_sha512_roundscrypt_sha512_rounds (default: 5000) : Int Number of encryption rounds for the password_schemeSHA512-CRYPT. The value must be in range 1000 - 999999999. misc.dovecot_versiondovecot_version (default: None) : String The version number of the currently used Dovecot version. (see: dovecot--version) When, for example, the command dovecot--version prints 2.0.beta4(8818db00d347), set the value of this option to 2.0.beta4. misc.password_schemepassword_scheme (default: CRAM-MD5) : String Password scheme to use. To get a list of all usable password schemes execute the command vmmlp. With Dovecot ≥ v1.1.alpha1 it is also possible to append an encoding suffix to the password_scheme. Supported encoding suffixes are: .b64, .base64 and .hex. For example: PLAIN.BASE64 Note: When setting another password scheme than PLAIN or CRAM-MD5, you have to remove cram-md5 from the auth_mechanisms setting in your dovecot/conf.d/10-auth.conf.

See Also

postconf(1), vmm(1), transport(5)

Synopsis

vmm.cfg

See Also