File: Configure.Dovecot_2

package info (click to toggle)
vmm 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,844 kB
  • sloc: python: 4,710; makefile: 217; sh: 172
file content (205 lines) | stat: -rw-r--r-- 4,785 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# This document contains a minimal configuration for a vmm setup with
# Dovecot v2.x.
#
# You could save this file as local.conf in the dovecot configuration directory
# (commonly /etc/dovecot or /usr/local/etc/dovecot).
# When you want to use this file as your configuration file for Dovecot, make
# sure you have commented out the line "!include conf.d/*.conf". The last line
# "!include_try local.conf" is sufficient.
#
# Otherwise you have to apply the following settings to the configuration files
# in the conf.d directory.

### 
#  dovecot.conf
###
protocols = imap lmtp
# uncomment if your users should be able to manage their sieve scripts
#protocols = imap lmtp sieve

# uncomment if you want to use the quota plugin
#dict {
#  quota = pgsql:/usr/local/etc/dovecot/dovecot-dict-sql.conf.ext
#}

###
# conf.d/10-auth.conf
###
auth_mechanisms = plain login
passdb {
  driver = sql
  args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
}
userdb {
  driver = sql
  args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
}
#!include auth-system.conf.ext

###
# conf.d/10-mail.conf
###
first_valid_gid = 70000
first_valid_uid = 70000
mail_access_groups = dovemail
mail_location = maildir:~/Maildir

# uncomment if you want to use the quota plugin
#mail_plugins = quota

###
# conf.d/10-master.conf
###

# if you don't want to use secure imap, you have to disable the imaps listener
##service imap-login {
##  inet_listener imaps {
##    port = 0
##  }
##}

service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    user = postfix
    group = postfix
    mode = 0600
  }
}

service auth {
  user = doveauth
  unix_listener auth-userdb {
  }
  unix_listener /var/spool/postfix/private/dovecot-auth {
    user = postfix
    group = postfix
    mode = 0600
  }
}

service auth-worker {
  unix_listener auth-worker {
    user = doveauth
    group = $default_internal_user
    mode = 0660
  }
  user = doveauth
}

service dict {
  unix_listener dict {
    group = dovemail
    mode = 0660
  }
}

###
# conf.d/10-ssl.conf
###
# SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>
#ssl = yes

ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem

# if you want to disable SSL/TLS, you have set 'ssl = no' and disable the
# imaps listener in conf.d/10-master.conf

###
# conf.d/15-lda.conf
###
postmaster_address = postmaster@YOUR-DOMAIN.TLD
recipient_delimiter = +
protocol lda {
  # uncomment if you want to use the quota plugin
  #mail_plugins = $mail_plugins
  # uncomment if you want to use the quota and sieve plugins
  #mail_plugins = $mail_plugins sieve
}

###
# conf.d/20-imap.conf
###
protocol imap {
  # uncomment if you want to use the quota plugin
  #mail_plugins = $mail_plugins imap_quota
}

###
# conf.d/20-lmtp.conf
###
protocol lmtp {
  # uncomment if you want to use the quota plugin
  #mail_plugins = $mail_plugins
  # uncomment if you want to use the quota and sieve plugins
  #mail_plugins = $mail_plugins sieve
}

###
# conf.d/90-quota.conf
###
# uncomment if you want to use the quota plugin
#plugin {
#  quota = dict:user:%{uid}:proxy::quota
#  quota_rule = *:storage=0:messages=0
#  quota_rule2 = Trash:storage=+100M
#}

###
# conf.d/90-sieve.conf
###
# uncomment if you want to use sieve (and maybe managesieve)
#plugin {
#  recipient_delimiter = +
#  sieve = ~/.dovecot.sieve
#  sieve_dir = ~/sieve
#}

###############################################################################
#			    end of local configuration			      #
###############################################################################


###
# etc/dovecot/dovecot-sql.conf.ext
###
# apply this settings to your dovecot-sql.conf.ext

#driver = pgsql
#connect = host=localhost dbname=mailsys user=dovecot password=$Dovecot_PASS
#
#password_query = \
# SELECT userid AS "user", password FROM dovecotpassword('%Ln', '%Ld') WHERE %Ls
#
## uncomment this user_query if you want to use the quota plugin
#user_query = \
# SELECT home, uid, gid, mail, quota_rule FROM dovecotquotauser('%Ln', '%Ld')
## otherwise uncomment the following user_query
#user_query = SELECT home, uid, gid, mail FROM dovecotuser('%Ln', '%Ld')
#
#iterate_query = \
# SELECT local_part AS username, domain_name.domainname AS domain \
#   FROM users \
#        LEFT JOIN domain_data USING (gid) \
#        LEFT JOIN domain_name USING (gid)


###
# etc/dovecot/dovecot-dict-sql.conf.ext
###
# if you want to use the quota plugin add this lines to your
#  dovecot-dict-sql.conf.ext

#connect = host=localhost dbname=mailsys user=dovecot password=$Dovecot_PASS
#map {
#  pattern = priv/quota/storage
#  table = userquota
#  username_field = uid
#  value_field = bytes
#}
#map {
#  pattern = priv/quota/messages
#  table = userquota
#  username_field = uid
#  value_field = messages
#}