File: doveconf.1

package info (click to toggle)
dovecot 1%3A2.4.1%2Bdfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 46,224 kB
  • sloc: ansic: 596,204; makefile: 7,825; sh: 6,005; cpp: 1,866; perl: 487; yacc: 412; lex: 320; python: 253; xml: 232
file content (293 lines) | stat: -rw-r--r-- 4,896 bytes parent folder | download
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
.TH "DOVECONF" "1" "March 2025" "78ffb79" "Dovecot"
.SH "NAME"
\fBdoveconf\fR - Dovecot's configuration dumping utility
.SH "SYNOPSIS"
.P
\fBdoveconf\fR \[lB]\fB-adnPNUx\fR\[rB] \[lB]\fB-c\fR \fIconfig-file\fR\[rB] \[lB]\fB-f\fR \fIfilter\fR\[rB]
.P
\fBdoveconf\fR \[lB]\fB-n\fR\[rB] \[lB]\fB-c\fR \fIconfig-file\fR\[rB] \fIsection_name\fR ...
.P
\fBdoveconf\fR \[lB]\fB-h\fR\[rB] \[lB]\fB-c\fR \fIconfig-file\fR\[rB] \[lB]\fB-f\fR \fIfilter\fR\[rB] \fIsetting_name\fR ...
.SH "DESCRIPTION"
.P
\fBdoveconf\fR reads and parses Dovecot's configuration files and converts them into a simpler format used by the rest of Dovecot.
.P
All standalone programs, such as dovecot(1), will first get their settings by executing doveconf, unless they can get the settings by connecting to the config UNIX socket.
.P
For system administrators, \fBdoveconf\fR is mainly useful for dumping the configuration in easy human readable output.
.SH "OPTIONS"
.P
\fB-a\fR
.RS 0
.RS 4
.P
Show all settings with their currently configured values.
.RE 0

.RE 0

.P
\fB-c\fR \fIconfig-file\fR
.RS 0
.RS 4
.P
Read configuration from the given \fIconfig-file\fR. By default \fI/etc/dovecot/dovecot.conf\fR will be used.
.RE 0

.RE 0

.P
\fB-d\fR
.RS 0
.RS 4
.P
Show the setting's default value instead of the one currently configured.
.RE 0

.RE 0

.P
\fB-f\fR \fIfilter\fR
.RS 0
.RS 4
.P
Show the matching configuration for the specified \fIfilter\fR condition. The \fIfilter\fR option string has to be given as \fIname\fR \fB=\fR \fIvalue\fR pair. For multiple filter conditions the \fB-f\fR option can be supplied multiple times.
.P
Possible names for the \fIfilter\fR are:
.RS 4
.P
\fBprotocol\fR : The protocol, e.g. imap or pop3
.RE 0

.RS 4
.P
\fBlocal_name\fR : The local hostname for TLS SNI matching, e.g. mail.example.com.
.P
This matches filters which were configured like:
.RS 4
.P
\fBlocal_name mail.example.com { # special settings }\fR
.RE 0

.RE 0

.RS 4
.P
\fBlocal\fR : The local hostname or IP address.
.P
This matches filters which were configured like:
.RS 4
.P
\fBlocal 1.2.3.0/24 { # special settings }\fR
.RE 0

.RE 0

.RS 4
.P
\fBremote\fR : The client's hostname or IP address.
.P
This matches filters which were configured like:
.RS 4
.P
\fBremote 1.2.3.0/24 { # special settings }\fR
.RE 0

.RE 0

.RE 0

.RE 0

.P
\fB-h\fR
.RS 0
.RS 4
.P
Hide the setting's name, show only the setting's value.
.RE 0

.RE 0

.P
\fB-n\fR
.RS 0
.RS 4
.P
Show only settings with non-default values. This is the default behavior when no other parameters are given.
.RE 0

.RE 0

.P
\fB-N\fR
.RS 0
.RS 4
.P
Show settings with non-default values and explicitly set default values.
.RE 0

.RE 0

.P
\fB-s\fR
.RS 0
.RS 4
.P
Show also hidden settings. The hidden settings should not be changed normally.
.RE 0

.RE 0

.P
\fB-P\fR
.RS 0
.RS 4
.P
Show passwords and other sensitive values.
.RE 0

.RE 0

.P
\fB-U\fR
.RS 0
.RS 4
.P
Ignore all unknown settings in config file.
.RE 0

.RE 0

.P
\fB-x\fR
.RS 0
.RS 4
.P
Expand configuration variables (e.g. \fB$ENV:foo\fR) and show file contents (from e.g. \fBssl_server_key_password = \[rs]</etc/ssl/password.txt\fR).
.RE 0

.RE 0

.P
\fIsection_name\fR
.RS 0
.RS 4
.P
Show only the current configuration of one or more specified sections.
.RE 0

.RE 0

.P
\fIsetting_name\fR
.RS 0
.RS 4
.P
Show only the setting of one or more \fIsetting_name\fR (s) with the
.RE 0

.RE 0

.RS 0
.RS 4
.P
currently configured value. You can show a setting inside a section
.RE 0

.RE 0

.RS 0
.RS 4
.P
using '/' as the section separator, e.g. service/imap/executable.
.RE 0

.RE 0

.SH "EXAMPLE"
.P
When Dovecot was configured to use different settings for some networks/subnets it is possible to show which settings will be applied for a specific connection.
.P
.RS 2
.nf
doveconf -f local=10.0.0.110 -f remote=10.11.1.2 -f protocol=pop3 -n
.fi
.RE
.P
\fBdoveconf\fR can be also used to convert v1.x configuration files into v2.x format.
.P
.RS 2
.nf
doveconf -n -c /oldpath/dovecot.conf > /etc/dovecot/dovecot.conf.new
.fi
.RE
.P
Ask \fBdoveconf\fR for a global setting:
.P
.RS 2
.nf
doveconf mail_plugins
.fi
.RE
.P
.RS 2
.nf
mail_plugins = quota
.fi
.RE
.P
Ask \fBdoveconf\fR for a protocol specific setting. Uses the \fB-h\fR option, in order to hide the setting's name:
.P
.RS 2
.nf
doveconf -h -f protocol=imap login_greeting
.fi
.RE
.P
.RS 2
.nf
Dovecot ready.
.fi
.RE
.P
Dump a whole configuration section:
.P
.RS 2
.nf
doveconf service
.fi
.RE
.P
.RS 2
.nf
service imap {
  ...
}
service pop3 {
  ...
}
.fi
.RE
.P
Or dump only the imap service:
.P
.RS 2
.nf
doveconf service/imap
.fi
.RE
.P
.RS 2
.nf
service imap {
  ...
}
.fi
.RE
.SH "REPORTING BUGS"
.P
Report bugs, including \fIdoveconf -n\fR output, to the Dovecot Mailing List \fI\(ladovecot@dovecot.org\(ra\fR. Information about reporting bugs is available at: https://dovecot.org/bugreport.html
.SH "SEE ALSO"
.P
doveadm(1)