Mercurial > dovecot > original-hg > dovecot-1.2
annotate dovecot-example.conf @ 462:67d22b7b0918 HEAD
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
cleanup.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 20 Oct 2002 05:35:51 +0300 |
parents | 06576f1d9e69 |
children | 2fa0bfb65268 |
rev | line source |
---|---|
0 | 1 ## Dovecot 1.0 configuration file |
2 | |
3 # Default values are shown after each value, it's not required to uncomment | |
435 | 4 # any of the lines. Exception to this are paths, they're just examples |
5 # with real defaults being based on configure options. The paths listed here | |
6 # are for configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var | |
0 | 7 |
8 # Port to listen in for IMAP connections. This port is used for TLS | |
9 # connections as well. Setting it to 0 disables it. | |
10 #imap_port = 143 | |
11 | |
12 # Port to listen in for SSL IMAP connections. Setting it to 0 disables it. | |
13 #imaps_port = 993 | |
14 | |
15 # IP or host address where to listen in for IMAP connections. Empty means to | |
16 # listen in all interfaces. It's not possible to specify multiple. | |
17 #imap_listen = | |
18 | |
19 # IP or host address where to listen in for SSL IMAP connections. Defaults | |
20 # to imap_listen if not specified. | |
21 #imaps_listen = | |
22 | |
435 | 23 # SSL certificate/key, they're opened as root. Note that these default paths |
24 # are absolute, configure options don't affect them. | |
0 | 25 #ssl_cert_file = /etc/ssl/certs/imapd.pem |
26 #ssl_key_file = /etc/ssl/private/imapd.pem | |
27 | |
28 # Disable LOGIN command and all other plaintext authentications unless | |
29 # SSL/TLS is used (LOGINDISABLED capability) | |
30 #disable_plaintext_auth = no | |
31 | |
35
b420373f88f6
Added log_path and log_timestamp settings to config file. Removed -l command
Timo Sirainen <tss@iki.fi>
parents:
27
diff
changeset
|
32 # Use this logfile instead of syslog() |
b420373f88f6
Added log_path and log_timestamp settings to config file. Removed -l command
Timo Sirainen <tss@iki.fi>
parents:
27
diff
changeset
|
33 #log_path = |
b420373f88f6
Added log_path and log_timestamp settings to config file. Removed -l command
Timo Sirainen <tss@iki.fi>
parents:
27
diff
changeset
|
34 |
b420373f88f6
Added log_path and log_timestamp settings to config file. Removed -l command
Timo Sirainen <tss@iki.fi>
parents:
27
diff
changeset
|
35 # Prefix for each line written to log file. % codes are in strftime(3) |
b420373f88f6
Added log_path and log_timestamp settings to config file. Removed -l command
Timo Sirainen <tss@iki.fi>
parents:
27
diff
changeset
|
36 # format. Note the extra space at the end of line. |
b420373f88f6
Added log_path and log_timestamp settings to config file. Removed -l command
Timo Sirainen <tss@iki.fi>
parents:
27
diff
changeset
|
37 #log_timestamp = %b %d %H:%M:%S |
b420373f88f6
Added log_path and log_timestamp settings to config file. Removed -l command
Timo Sirainen <tss@iki.fi>
parents:
27
diff
changeset
|
38 |
0 | 39 ## |
40 ## Login process | |
41 ## | |
42 | |
43 # Executable location | |
44 #login_executable = /usr/lib/dovecot/imap-login | |
45 | |
46 # User to use for imap-login process | |
47 #login_user = imapd | |
48 | |
49 # Directory where imap-auth places authentication UNIX sockets which login | |
50 # needs to be able to connect to. The sockets are created when running as | |
51 # root, so you don't need to give imap-auth any access for it. | |
52 #login_dir = /var/run/dovecot/login | |
53 | |
435 | 54 # chroot imap-login process to the login_dir. Only reason not to do this |
0 | 55 # is if you wish to run the whole imapd without roots. |
56 #login_chroot = yes | |
57 | |
58 # Number of imap-login processes to use, one or two is enough | |
59 #login_processes_count = 1 | |
60 | |
61 # Maximum number of connections allowed in login state. When this limit is | |
62 # reached, the oldest connections are dropped. | |
63 #max_logging_users = 256 | |
64 | |
65 ## | |
66 ## IMAP process | |
67 ## | |
68 | |
69 # Executable location | |
70 #imap_executable = /usr/lib/dovecot/imap | |
71 | |
72 # Maximum number of running imap processes. When this limit is reached, | |
73 # new users aren't allowed to log in. | |
74 #max_imap_processes = 1024 | |
75 | |
76 # Valid UID/GID ranges for imap users, defaults to 500 and above. | |
77 # Note that denying root logins is hardcoded to imap-master binary and | |
78 # can't be done even if first_valid_uid is set to 0. | |
79 #first_valid_uid = 500 | |
80 #last_valid_uid = 0 | |
81 | |
82 #first_valid_gid = 1 | |
83 #last_valid_gid = 0 | |
84 | |
85 # ':' separated list of directories under which chrooting is allowed for imap | |
86 # processes (ie. /var/mail will allow chrooting to /var/mail/foo/bar too). | |
87 # WARNING: Never add directories here which local users can modify, that | |
88 # may lead to root exploit. Usually this should be done only if you don't | |
89 # allow shell access for users. | |
90 #valid_chroot_dirs = | |
91 | |
462
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
92 # Space-separated list of fields to cache for all mails. Currently these |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
93 # fields are allowed followed by a list of commands they speed up: |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
94 # |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
95 # Envelope - FETCH ENVELOPE and SEARCH FROM, TO, CC, BCC, SUBJECT, |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
96 # SENTBEFORE, SENTON, SENTSINCE, HEADER MESSAGE-ID, |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
97 # HEADER IN-REPLY-TO |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
98 # Body - FETCH BODY |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
99 # Bodystructure - FETCH BODY, BODYSTRUCTURE |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
100 # MessagePart - FETCH BODY[1.2.3] (ie. body parts), RFC822.SIZE, |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
101 # SEARCH SMALLER, LARGER, also speeds up BODY/BODYSTRUCTURE |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
102 # generation. This is always set with mbox mailboxes, and |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
103 # also default with Maildir. |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
104 # |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
105 # Different IMAP clients work in different ways, that's why Dovecot by default |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
106 # only caches MessagePart which speeds up most operations. Whenever client |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
107 # does something where caching could be used, the field is automatically marked |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
108 # to be cached later. For example after FETCH BODY the BODY will be cached |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
109 # for all new messages. Normally you should leave this alone, unless you know |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
110 # what most of your IMAP clients are. Caching more fields than needed makes |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
111 # the index files larger and generate useless I/O. |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
112 # |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
113 # With maildir there's one extra optimization - if nothing is cached, indexing |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
114 # the maildir becomes much faster since it's not opening any of the mail files. |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
115 # This could be useful if your IMAP clients access only new mails. |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
116 |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
117 #mail_cache_fields = MessagePart |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
118 |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
119 # Space-separated list of fields that Dovecot should never set to be cached. |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
120 # Useful if you want to save disk space at the cost of more I/O when the fields |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
121 # needed. |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
122 #mail_never_cache_fields = |
67d22b7b0918
Added mail_cache_fields and mail_never_cache_fields settings, plus settings
Timo Sirainen <tss@iki.fi>
parents:
435
diff
changeset
|
123 |
0 | 124 # Copy mail to another folders using hard links. This is much faster than |
125 # actually copying the file. Only problem with it is that if either of the | |
126 # mails are modified directly both will change. This isn't a problem with | |
127 # IMAP however since it offers no way to modify the existing mails. Also | |
128 # at least mutt modifies mails by deleting the old one and inserting a new | |
129 # modified mail. So if performance matters at all you should turn this on. | |
130 #maildir_copy_with_hardlinks = no | |
131 | |
132 # Check if mails' content has been changed by external programs. This slows | |
133 # down things as extra stat() needs to be called for each file. | |
134 #maildir_check_content_changes = no | |
135 | |
101
edc37d046b08
Added overwrite_incompatible_index setting. Also we now try to use only
Timo Sirainen <tss@iki.fi>
parents:
35
diff
changeset
|
136 # If main index file is incompatible with us, should we overwrite it or |
edc37d046b08
Added overwrite_incompatible_index setting. Also we now try to use only
Timo Sirainen <tss@iki.fi>
parents:
35
diff
changeset
|
137 # create a new index with another name. Unless you are running Dovecot in |
edc37d046b08
Added overwrite_incompatible_index setting. Also we now try to use only
Timo Sirainen <tss@iki.fi>
parents:
35
diff
changeset
|
138 # multiple computers with different architectures accessing the same |
edc37d046b08
Added overwrite_incompatible_index setting. Also we now try to use only
Timo Sirainen <tss@iki.fi>
parents:
35
diff
changeset
|
139 # mailboxes (eg. via NFS), it's safe to set this "yes". |
edc37d046b08
Added overwrite_incompatible_index setting. Also we now try to use only
Timo Sirainen <tss@iki.fi>
parents:
35
diff
changeset
|
140 #overwrite_incompatible_index = no |
edc37d046b08
Added overwrite_incompatible_index setting. Also we now try to use only
Timo Sirainen <tss@iki.fi>
parents:
35
diff
changeset
|
141 |
0 | 142 # umask to use for mail files and directories |
143 #umask = 0077 | |
144 | |
145 ## | |
146 ## Authentication processes | |
147 ## | |
148 | |
149 # You can have multiple processes; each time "auth = xx" is seen, a new | |
150 # process definition is started. The point of multiple processes is to be | |
151 # able to set stricter permissions to others. For example, plain/PAM | |
152 # authentication requires roots, but if you also use digest-md5 authentication | |
153 # for some users, you can authenticate them without any privileges in a | |
154 # separate auth process. Just remember that only one auth process is asked | |
155 # for the password, so you can't have different passwords with different | |
156 # processes (unless they have different auth methods, and you're ok with | |
157 # having different password for each method). | |
158 | |
159 # Authentication process name. | |
160 auth = default | |
161 | |
284 | 162 # Authentication methods this process allows separated with a space. |
163 # Currently supported: plain digest-md5 | |
0 | 164 auth_methods = plain |
165 | |
166 # Space separated list of realms with authentication methods that need them. | |
167 # This is usually empty or the host name of the server (eg. | |
168 # mail.mycompany.com). | |
169 # - plain auth checks the password from all realms specified in here | |
170 # - digest-md5 must have the password added for each realm separately, and | |
171 # many clients simply use the first realm listed here. so if you really | |
172 # need to add more realms, add them to end of the list. | |
173 #auth_realms = | |
174 | |
175 # Where the user information and passwords are stored into: | |
176 # passwd: /etc/passwd or similiar, using getpwnam() | |
177 # shadow: /etc/shadow or similiar, using getspnam() | |
178 # pam: PAM authentication | |
179 # passwd-file /etc/passwd.imap: /etc/passwd-like file. Supports digest-md5 | |
180 # style passwords | |
280
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
101
diff
changeset
|
181 # vpopmail: vpopmail authentication |
27 | 182 auth_userinfo = pam |
0 | 183 |
184 # Executable location | |
435 | 185 #auth_executable = /usr/lib/dovecot/imap-auth |
0 | 186 |
187 # User to use for the process. Only shadow and pam authentication requires | |
188 # roots, so use something else if possible. | |
189 auth_user = root | |
190 | |
435 | 191 # Directory where to chroot the process. Most authentication backends don't |
192 # work if this is set, and there's no point chrooting if auth_user is root. | |
0 | 193 #auth_chroot = |
194 | |
195 # Number of authentication processes to create | |
196 #auth_count = 1 | |
197 | |
198 | |
199 # digest-md5 authentication process. It requires special MD5 passwords which | |
200 # /etc/shadow and PAM doesn't support, so we never need roots to handle it. | |
201 # Note that the passwd-file is opened before chrooting and dropping root | |
202 # privileges, so it may be 0600-root owned file. | |
203 | |
204 #auth = digest_md5 | |
205 #auth_methods = digest-md5 | |
206 #auth_realms = | |
207 #auth_userinfo = passwd-file /etc/passwd.imap | |
208 #auth_user = imapauth | |
209 #auth_chroot = /var/run/dovecot/auth | |
210 | |
211 # if you plan to use only passwd-file, you don't need the two auth processes, | |
212 # simply set "auth_methods = plain digest-md5" |