192 |
- |
1 |
##
|
|
|
2 |
## Log destination.
|
|
|
3 |
##
|
|
|
4 |
|
|
|
5 |
# Log file to use for error messages. "syslog" logs to syslog,
|
|
|
6 |
# /dev/stderr logs to stderr.
|
|
|
7 |
#log_path = syslog
|
|
|
8 |
|
|
|
9 |
# Log file to use for informational messages. Defaults to log_path.
|
|
|
10 |
#info_log_path =
|
|
|
11 |
# Log file to use for debug messages. Defaults to info_log_path.
|
|
|
12 |
#debug_log_path =
|
|
|
13 |
|
|
|
14 |
# Syslog facility to use if you're logging to syslog. Usually if you don't
|
|
|
15 |
# want to use "mail", you'll use local0..local7. Also other standard
|
|
|
16 |
# facilities are supported.
|
|
|
17 |
#syslog_facility = mail
|
|
|
18 |
|
|
|
19 |
##
|
|
|
20 |
## Logging verbosity and debugging.
|
|
|
21 |
##
|
|
|
22 |
|
|
|
23 |
# Log filter is a space-separated list conditions. If any of the conditions
|
|
|
24 |
# match, the log filter matches (i.e. they're ORed together). Parenthesis
|
|
|
25 |
# are supported if multiple conditions need to be matched together.
|
|
|
26 |
# Supported conditions are:
|
|
|
27 |
# event:<name wildcard> - Match event name. '*' and '?' wildcards supported.
|
|
|
28 |
# source:<filename>[:<line number>] - Match source code filename [and line]
|
|
|
29 |
# field:<key>=<value wildcard> - Match field key to a value. Can be specified
|
|
|
30 |
# multiple times to match multiple keys.
|
|
|
31 |
# cat[egory]:<value> - Match a category. Can be specified multiple times to
|
|
|
32 |
# match multiple categories.
|
|
|
33 |
# For example: event:http_request_* (cat:error cat:storage)
|
|
|
34 |
|
|
|
35 |
# Filter to specify what debug logging to enable. This will eventually replace
|
|
|
36 |
# mail_debug and auth_debug settings.
|
|
|
37 |
#log_debug =
|
|
|
38 |
|
|
|
39 |
# Crash after logging a matching event. For example category:error will crash
|
|
|
40 |
# any time an error is logged, which can be useful for debugging.
|
|
|
41 |
#log_core_filter =
|
|
|
42 |
|
|
|
43 |
# Log unsuccessful authentication attempts and the reasons why they failed.
|
|
|
44 |
#auth_verbose = no
|
|
|
45 |
|
|
|
46 |
# In case of password mismatches, log the attempted password. Valid values are
|
|
|
47 |
# no, plain and sha1. sha1 can be useful for detecting brute force password
|
|
|
48 |
# attempts vs. user simply trying the same password over and over again.
|
|
|
49 |
# You can also truncate the value to n chars by appending ":n" (e.g. sha1:6).
|
|
|
50 |
#auth_verbose_passwords = no
|
|
|
51 |
|
|
|
52 |
# Even more verbose logging for debugging purposes. Shows for example SQL
|
|
|
53 |
# queries.
|
|
|
54 |
#auth_debug = no
|
|
|
55 |
|
|
|
56 |
# In case of password mismatches, log the passwords and used scheme so the
|
|
|
57 |
# problem can be debugged. Enabling this also enables auth_debug.
|
|
|
58 |
#auth_debug_passwords = no
|
|
|
59 |
|
|
|
60 |
# Enable mail process debugging. This can help you figure out why Dovecot
|
|
|
61 |
# isn't finding your mails.
|
|
|
62 |
#mail_debug = no
|
|
|
63 |
|
|
|
64 |
# Show protocol level SSL errors.
|
|
|
65 |
#verbose_ssl = no
|
|
|
66 |
|
|
|
67 |
# mail_log plugin provides more event logging for mail processes.
|
|
|
68 |
plugin {
|
|
|
69 |
# Events to log. Also available: flag_change append
|
|
|
70 |
#mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
|
|
|
71 |
# Available fields: uid, box, msgid, from, subject, size, vsize, flags
|
|
|
72 |
# size and vsize are available only for expunge and copy events.
|
|
|
73 |
#mail_log_fields = uid box msgid size
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
##
|
|
|
77 |
## Log formatting.
|
|
|
78 |
##
|
|
|
79 |
|
|
|
80 |
# Prefix for each line written to log file. % codes are in strftime(3)
|
|
|
81 |
# format.
|
|
|
82 |
#log_timestamp = "%b %d %H:%M:%S "
|
|
|
83 |
|
|
|
84 |
# Space-separated list of elements we want to log. The elements which have
|
|
|
85 |
# a non-empty variable value are joined together to form a comma-separated
|
|
|
86 |
# string.
|
|
|
87 |
#login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
|
|
|
88 |
|
|
|
89 |
# Login log format. %s contains login_log_format_elements string, %$ contains
|
|
|
90 |
# the data we want to log.
|
|
|
91 |
#login_log_format = %$: %s
|
|
|
92 |
|
|
|
93 |
# Log prefix for mail processes. See doc/wiki/Variables.txt for list of
|
|
|
94 |
# possible variables you can use.
|
|
|
95 |
#mail_log_prefix = "%s(%u)<%{pid}><%{session}>: "
|
|
|
96 |
|
|
|
97 |
# Format to use for logging mail deliveries:
|
|
|
98 |
# %$ - Delivery status message (e.g. "saved to INBOX")
|
|
|
99 |
# %m / %{msgid} - Message-ID
|
|
|
100 |
# %s / %{subject} - Subject
|
|
|
101 |
# %f / %{from} - From address
|
|
|
102 |
# %p / %{size} - Physical size
|
|
|
103 |
# %w / %{vsize} - Virtual size
|
|
|
104 |
# %e / %{from_envelope} - MAIL FROM envelope
|
|
|
105 |
# %{to_envelope} - RCPT TO envelope
|
|
|
106 |
# %{delivery_time} - How many milliseconds it took to deliver the mail
|
|
|
107 |
# %{session_time} - How long LMTP session took, not including delivery_time
|
|
|
108 |
# %{storage_id} - Backend-specific ID for mail, e.g. Maildir filename
|
|
|
109 |
#deliver_log_format = msgid=%m: %$
|