TEXT 32
10-logging.conf Guest on 22nd April 2021 10:08:11 PM
  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 unsuccessful authentication attempts and the reasons why they failed.
  24. auth_verbose = yes
  25.  
  26. # In case of password mismatches, log the attempted password. Valid values are
  27. # no, plain and sha1. sha1 can be useful for detecting brute force password
  28. # attempts vs. user simply trying the same password over and over again.
  29. #auth_verbose_passwords = no
  30.  
  31. # Even more verbose logging for debugging purposes. Shows for example SQL
  32. # queries.
  33. auth_debug = no
  34.  
  35. # In case of password mismatches, log the passwords and used scheme so the
  36. # problem can be debugged. Enabling this also enables auth_debug.
  37. #auth_debug_passwords = no
  38.  
  39. # Enable mail process debugging. This can help you figure out why Dovecot
  40. # isn't finding your mails.
  41. #mail_debug = no
  42.  
  43. # Show protocol level SSL errors.
  44. #verbose_ssl = no
  45.  
  46. # mail_log plugin provides more event logging for mail processes.
  47. plugin {
  48.   # Events to log. Also available: flag_change append
  49.   mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  50.   #mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  51.   # Group events within a transaction to one line.
  52.   #mail_log_group_events = no
  53.   # Available fields: uid, box, msgid, from, subject, size, vsize, flags
  54.   # size and vsize are available only for expunge and copy events.
  55.   #mail_log_fields = uid box msgid size
  56. }
  57.  
  58. ##
  59. ## Log formatting.
  60. ##
  61.  
  62. # Prefix for each line written to log file. % codes are in strftime(3)
  63. # format.
  64. #log_timestamp = "%b %d %H:%M:%S "
  65.  
  66. # Space-separated list of elements we want to log. The elements which have
  67. # a non-empty variable value are joined together to form a comma-separated
  68. # string.
  69. #login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
  70. login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e local_name=%{local_name} %c session=<%{session}>
  71.  
  72. # Login log format. %$ contains login_log_format_elements string, %s contains
  73. # the data we want to log.
  74. #login_log_format = %$: %s
  75.  
  76. # Log prefix for mail processes. See doc/wiki/Variables.txt for list of
  77. # possible variables you can use.
  78. mail_log_prefix = "%s(%u): session=<%{session}>, "
  79.  
  80. # Format to use for logging mail deliveries. You can use variables:
  81. #  %$ - Delivery status message (e.g. "saved to INBOX")
  82. #  %m - Message-ID
  83. #  %s - Subject
  84. #  %f - From address
  85. #  %p - Physical size
  86. #  %w - Virtual size
  87. #deliver_log_format = msgid=%m: %$

Paste-bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.