vmm.cfg
changeset 760 b678a1c43027
parent 748 659c4476c57c
child 761 e4e656f19771
equal deleted inserted replaced
748:659c4476c57c 760:b678a1c43027
     1 # This is the vmm (a virtual mail manager) configuration file.
       
     2 # default location: /usr/local/etc/vmm.cfg
       
     3 #
       
     4 
       
     5 #
       
     6 # Database settings
       
     7 #
       
     8 [database]
       
     9 ; The Python PostgreSQL database adapter module to be used (String)
       
    10 ; Supported modules are:
       
    11 ;    * psycopg2
       
    12 ;    * pyPgSQL
       
    13 module = psycopg2
       
    14 ; Hostname or IP address of the database server (String)
       
    15 host = localhost
       
    16 ; The TCP port, on which the database server is listening for connections (Int)
       
    17 port = 5432
       
    18 ; SSL mode for the database connection (String)
       
    19 ; Possible values are:
       
    20 ;    * disabled
       
    21 ;    * allow
       
    22 ;    * prefer (default)
       
    23 ;    * require
       
    24 ;    * verify-ca (PostgreSQL >= 8.4)
       
    25 ;    * verify-full (PostgreSQL >= 8.4)
       
    26 sslmode = prefer
       
    27 ; Database user name (String)
       
    28 user = vmm
       
    29 ; Database password (String)
       
    30 pass = dbpassword
       
    31 ; Database name (String)
       
    32 name = mailsys
       
    33 
       
    34 #
       
    35 # mailbox settings
       
    36 #
       
    37 [mailbox]
       
    38 ; The mailbox format to be used for user's mailboxes. (String)
       
    39 ; Depending on the used Dovecot version there are up to 3 supported formats:
       
    40 ;    * maildir - since Dovecot v1.0.0
       
    41 ;    * mdbox   - since Dovecot v2.0.beta5
       
    42 ;    * sdbox   - since Dovecot v2.0.rc3
       
    43 format = maildir
       
    44 ; A colon separated list of mailbox names, that should be created (String)
       
    45 ; e.g.: folders = Drafts:Sent:Templates:Trash:Lists.Dovecot:Lists.Postfix
       
    46 folders = Drafts:Sent:Templates:Trash
       
    47 ; Name of the mailbox root directory in a user's home. (String)
       
    48 ; Usually used names (format: name):
       
    49 ;    * maildir: Maildir
       
    50 ;    * mdbox:   mdbox
       
    51 ;    * sdbox:   sdbox
       
    52 root = Maildir
       
    53 ; Set to true if the mailboxes from the folders option should be listed in
       
    54 ; the subscriptions file. (Boolean)
       
    55 subscribe = true
       
    56 
       
    57 #
       
    58 # Domain settings
       
    59 #
       
    60 [domain]
       
    61 ; Should vmm create the postmaster account when a new domain is created?
       
    62 ; (Boolean)
       
    63 auto_postmaster = true
       
    64 ; Delete domain directory recursive when deleting a domain? (Boolean)
       
    65 delete_directory = false
       
    66 ; Permissions for domain directories (Int)
       
    67 ; octal 0770 -> decimal 504
       
    68 directory_mode = 504
       
    69 ; Force deletion of accounts and aliases when deleting a domain (Boolean)
       
    70 force_deletion = false
       
    71 ;
       
    72 ; The service settings will be evaluated and applied when a domain is
       
    73 ; created. The service settings of the domain will be applied when you
       
    74 ; create a new account.
       
    75 ; Use the subcommand domainservices to modify a domain's service settings.
       
    76 ; Or userservices in order to update the service setting of an account.
       
    77 ; Allow smtp by default? (Boolean)
       
    78 smtp = true
       
    79 ; Allow pop3 by default? (Boolean)
       
    80 pop3 = true
       
    81 ; Allow imap by default? (Boolean)
       
    82 imap = true
       
    83 ; Allow managesieve by default? (Boolean)
       
    84 sieve = true
       
    85 ;
       
    86 ; The quota_* settings will be evaluated and applied when a domain is
       
    87 ; created. The domain's quota_* settings will be applied when an account
       
    88 ; is added to a domain.
       
    89 ; Use the subcommand domainquota to modify a domain's quota limits.
       
    90 ; Or userquota in order to update an account's quota limits.
       
    91 ; Quota limit in bytes. 0 means unlimited (String)
       
    92 ; The value can have one of the suffixes:
       
    93 ;    * b: bytes
       
    94 ;    * k: kilobytes
       
    95 ;    * M: megabytes
       
    96 ;    * G: gigabytes
       
    97 ; 1024 is the same as 1024b or 1k
       
    98 quota_bytes = 0
       
    99 ; Quota limit in number of messages. 0 means unlimited (Int)
       
   100 quota_messages = 0
       
   101 ;
       
   102 ; The transport setting will be evaluated and applied when a domain is
       
   103 ; created. The domain's transport setting will be applied when an account
       
   104 ; is added to a domain.
       
   105 ; Use the subcommand domaintransport to modify the transport of a domain.
       
   106 ; Or usertransport in order to update an account's transport setting.
       
   107 ;
       
   108 ; With Dovecot >= v2.0.0 it's strongly recommended that you use Dovecot's
       
   109 ; lmtp instead of the dovecot-lda.
       
   110 ;transport = lmtp:unix:private/dovecot-lmtp
       
   111 ; default transport for domains and accounts (String)
       
   112 transport = dovecot:
       
   113 
       
   114 #
       
   115 # Account settings
       
   116 #
       
   117 [account]
       
   118 ; Delete the user's home directory recursive when deleting an account? (Boolean)
       
   119 delete_directory = false
       
   120 ; Permissions for the user's home directory and mail directories (Int)
       
   121 ; octal 0700 -> decimal 448
       
   122 directory_mode = 448
       
   123 ; Display disk usage in account info by default? (Boolean)
       
   124 disk_usage = false
       
   125 ; Should vmm generate a random password when no password was given for the
       
   126 ; useradd subcommand? (Boolean)
       
   127 random_password = false
       
   128 ; How many characters to include in the generated passwords? (Int)
       
   129 password_length = 8
       
   130 
       
   131 #
       
   132 # external binaries
       
   133 #
       
   134 [bin]
       
   135 ; location of dovecotpw (Dovecot v1) or doveadm (Dovecot v2) (String)
       
   136 dovecotpw = /usr/sbin/dovecotpw
       
   137 ; location of disk usage (String)
       
   138 du = /usr/bin/du
       
   139 ; location of postconf (String)
       
   140 postconf = /usr/sbin/postconf
       
   141 
       
   142 #
       
   143 # misc settings
       
   144 #
       
   145 [misc]
       
   146 ; The base directory for all domains/accounts (String)
       
   147 base_directory = /srv/mail
       
   148 ; Number of encryption rounds for the password_scheme BLF-CRYPT (Int)
       
   149 crypt_blowfish_rounds = 5
       
   150 ; Number of encryption rounds for the password_scheme SHA256-CRYPT (Int)
       
   151 crypt_sha256_rounds = 5000
       
   152 ; Number of encryption rounds for the password_scheme SHA512-CRYPT (Int)
       
   153 crypt_sha512_rounds = 5000
       
   154 ; the version number from `dovecot --version` (String)
       
   155 ; e.g. 1.2.17, 2.0.21, 2.1.9 or 2.2.beta1
       
   156 dovecot_version = 2.1.9
       
   157 ; NOTE: When using other password schemes than PLAIN or CRAM-MD5, you
       
   158 ;	have to remove `cram-md5' from the auth_mechanisms setting in
       
   159 ;	dovecot/conf.d/10-auth.conf.
       
   160 ; Password scheme to use (see also: ´vmm listpwschemes`) (String)
       
   161 password_scheme = CRAM-MD5
       
   162