doc/web/source/_static/local.conf
changeset 760 b678a1c43027
parent 748 659c4476c57c
child 761 e4e656f19771
equal deleted inserted replaced
748:659c4476c57c 760:b678a1c43027
     1 # A minimal configuration for a vmm setup with Dovecot v2.x.
       
     2 #
       
     3 # You could save this file as local.conf in the dovecot configuration directory
       
     4 # (commonly /etc/dovecot or /usr/local/etc/dovecot).
       
     5 # When you want to use this file as your configuration file for Dovecot, make
       
     6 # sure you have commented out the line "!include conf.d/*.conf". The last line
       
     7 # "!include_try local.conf" is sufficient.
       
     8 
       
     9 ###
       
    10 # conf.d/10-auth.conf
       
    11 ###
       
    12 auth_mechanisms = plain login cram-md5
       
    13 passdb {
       
    14   driver = sql
       
    15   args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
       
    16 }
       
    17 userdb {
       
    18   driver = sql
       
    19   args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
       
    20 }
       
    21 #!include auth-system.conf.ext
       
    22 
       
    23 ###
       
    24 # conf.d/10-mail.conf
       
    25 ###
       
    26 first_valid_gid = 70000
       
    27 first_valid_uid = 70000
       
    28 mail_access_groups = dovemail
       
    29 mail_location = maildir:~/Maildir
       
    30 
       
    31 # uncomment if you want to use the quota plugin
       
    32 #mail_plugins = quota
       
    33 
       
    34 ###
       
    35 # conf.d/10-master.conf
       
    36 ###
       
    37 
       
    38 # if you don't want to use secure imap, you have to disable the imaps listener
       
    39 ##service imap-login {
       
    40 ##  inet_listener imaps {
       
    41 ##    port = 0
       
    42 ##  }
       
    43 ##}
       
    44 
       
    45 service lmtp {
       
    46   unix_listener /var/spool/postfix/private/dovecot-lmtp {
       
    47     user = postfix
       
    48     group = postfix
       
    49     mode = 0600
       
    50   }
       
    51 }
       
    52 
       
    53 service auth {
       
    54   user = doveauth
       
    55   unix_listener auth-userdb {
       
    56   }
       
    57   unix_listener /var/spool/postfix/private/dovecot-auth {
       
    58     user = postfix
       
    59     group = postfix
       
    60     mode = 0600
       
    61   }
       
    62 }
       
    63 
       
    64 service auth-worker {
       
    65   unix_listener auth-worker {
       
    66     user = doveauth
       
    67     group = $default_internal_user
       
    68     mode = 0660
       
    69   }
       
    70   user = doveauth
       
    71 }
       
    72 
       
    73 service dict {
       
    74   unix_listener dict {
       
    75     group = dovemail
       
    76     mode = 0660
       
    77   }
       
    78 }
       
    79 
       
    80 ###
       
    81 # conf.d/10-ssl.conf
       
    82 ###
       
    83 # SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>
       
    84 #ssl = yes
       
    85 
       
    86 ssl_cert = </etc/ssl/certs/dovecot.pem
       
    87 ssl_key = </etc/ssl/private/dovecot.pem
       
    88 
       
    89 # if you want to disable SSL/TLS, you have set 'ssl = no' and disable the
       
    90 # imaps listener in conf.d/10-master.conf
       
    91 
       
    92 ###
       
    93 # conf.d/15-lda.conf
       
    94 ###
       
    95 postmaster_address = postmaster@YOUR-DOMAIN.TLD
       
    96 recipient_delimiter = +
       
    97 protocol lda {
       
    98   # uncomment if you want to use the quota plugin
       
    99   #mail_plugins = $mail_plugins
       
   100   # uncomment if you want to use the quota and sieve plugins
       
   101   #mail_plugins = $mail_plugins sieve
       
   102 }
       
   103 
       
   104 ###
       
   105 # conf.d/20-imap.conf
       
   106 ###
       
   107 protocol imap {
       
   108   # uncomment if you want to use the quota plugin
       
   109   #mail_plugins = $mail_plugins imap_quota
       
   110 }
       
   111 
       
   112 ###
       
   113 # conf.d/20-lmtp.conf
       
   114 ###
       
   115 protocol lmtp {
       
   116   # uncomment if you want to use the quota plugin
       
   117   #mail_plugins = $mail_plugins
       
   118   # uncomment if you want to use the quota and sieve plugins
       
   119   #mail_plugins = $mail_plugins sieve
       
   120 }
       
   121 
       
   122 ###
       
   123 # conf.d/90-quota.conf
       
   124 ###
       
   125 # uncomment if you want to use the quota plugin
       
   126 #plugin {
       
   127 #  quota = dict:user:%{uid}:proxy::quota
       
   128 #  quota_rule = *:storage=0:messages=0
       
   129 #  quota_rule2 = Trash:storage=+100M
       
   130 #}
       
   131 
       
   132 ###
       
   133 # conf.d/90-sieve.conf
       
   134 ###
       
   135 # uncomment if you want to use sieve (and maybe managesieve)
       
   136 #plugin {
       
   137 #  recipient_delimiter = +
       
   138 #  sieve = ~/.dovecot.sieve
       
   139 #  sieve_dir = ~/sieve
       
   140 #}