Guest User

dovecot.conf

a guest
Oct 2nd, 2014
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.74 KB | None | 0 0
  1. ## Dovecot configuration file
  2.  
  3. # PLEASE DON'T EDIT ANYTHING IN THIS FILE! ANY CHANGES WILL BE LOST ON UPGRADE.
  4. # Instead add your custom configuration to /etc/dovecot/conf.d/
  5. # See the end of this file for details on customization.
  6.  
  7. # See example configuration files in /usr/share/doc/dovecot/example-config/
  8. # See stock configuration files in /usr/share/doc/plesk-dovecot/dist-config/
  9.  
  10.  
  11. # Space separated list of wanted authentication mechanisms.
  12. # NOTE: See also disable_plaintext_auth setting.
  13. auth_mechanisms = plain login digest-md5 cram-md5 apop
  14.  
  15. # Valid UID range should include popuser.
  16. first_valid_uid = 30
  17.  
  18. # List of allowed characters in username. Only "'" is added here to the default list.
  19. auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@'
  20.  
  21. # Plesk Maildirs layout.
  22. mail_home = /var/qmail/mailnames/%Ld/%Ln
  23. mail_location = maildir:/var/qmail/mailnames/%Ld/%Ln/Maildir
  24.  
  25. # Enable Maildir++ quota support.
  26. mail_plugins = $mail_plugins quota
  27.  
  28. plugin {
  29.  # Take quota limits from maildirsize file. If it doesn't exist, don't enforce.
  30.  quota = maildir:User quota
  31.  # LDA/LMTP allows saving the last mail to bring user from under quota to
  32.  # over quota, if the quota doesn't grow too high. Default is to allow as
  33.   # long as quota will stay under 10% above the limit. Also allowed e.g. 10M.
  34.   # 0 doesn't allow going over quota (compatibility with Courier-IMAP behavior).
  35.   quota_grace = 0
  36. }
  37.  
  38.  
  39. service auth {
  40.   # Allow userdb lookups for popuser.
  41.   unix_listener auth-userdb {
  42.     mode = 0600
  43.     user = popuser
  44.     group = popuser
  45.   }
  46. }
  47.  
  48.  
  49. # PEM encoded X.509 SSL/TLS certificate and private key.
  50. ssl_cert = </etc/dovecot/private/ssl-cert-and-key.pem
  51. ssl_key =  </etc/dovecot/private/ssl-cert-and-key.pem
  52.  
  53.  
  54. # Protocols support.
  55.  
  56. protocols = imap pop3
  57.  
  58. protocol imap {
  59.   mail_plugins = $mail_plugins imap_quota
  60. }
  61.  
  62. protocol pop3 {
  63.   # POP3 UIDL format similar to the one used by Courier-IMAP.
  64.   pop3_uidl_format = UID%u-%v
  65. }
  66.  
  67. # Applicable workarounds for various client bugs.
  68. imap_client_workarounds = delay-newmail
  69. pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  70.  
  71.  
  72. # Default private namespace setup compatible with Courier-IMAP.
  73.  
  74. namespace inbox {
  75.   separator = .
  76.   prefix = INBOX.
  77.   inbox = yes
  78. }
  79.  
  80.  
  81. # Logging verbosity and debugging.
  82.  
  83. # Log unsuccessful authentication attempts and the reasons why they failed.
  84. #auth_verbose = yes
  85.  
  86. # In case of password mismatches, log the attempted password. Valid values are
  87. # no, plain and sha1. sha1 can be useful for detecting brute force password
  88. # attempts vs. user simply trying the same password over and over again.
  89. #auth_verbose_passwords = no
  90.  
  91. # Even more verbose logging for debugging purposes.
  92. #auth_debug = yes
  93.  
  94. # In case of password mismatches, log the passwords and used scheme so the
  95. # problem can be debugged. Enabling this also enables auth_debug.
  96. #auth_debug_passwords = yes
  97.  
  98. # Enable mail process debugging. This can help you figure out why Dovecot
  99. # isn't finding your mails.
  100. #mail_debug = yes
  101.  
  102. # Show protocol level SSL errors.
  103. #verbose_ssl = yes
  104.  
  105.  
  106. # Log format compatible with Plesk statistics collector.
  107. mail_log_prefix = "service=%s, user=%u, ip=[%r]. "
  108. pop3_logout_format = "rcvd=%i, sent=%o, top=%t/%p, retr=%r/%b, del=%d/%m, size=%s"
  109. imap_logout_format = "rcvd=%i, sent=%o"
  110.  
  111. # Customizable part of configuration gets included below. The filenames are
  112. # first sorted by their ASCII value and parsed in that order. The 00-prefixes
  113. # in filenames are intended to make it easier to understand the ordering.
  114. #
  115. # Prefixes 10 through 20 and 90 through 95 (inclusive) are reserved for Plesk.
  116. # Please do not occupy them or edit files with these prefixes!
  117. !include conf.d/*.conf
  118.  
  119. # vim:ts=2 sts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment