20-managesieve.conf.erb 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ##
  2. ## ManageSieve specific settings
  3. ##
  4. # Service definitions
  5. <% if @services['managesieve-login'].kind_of?(Hash) and @services['managesieve-login'].length > 0 -%>
  6. <%= Dovecot::Conf.service('managesieve-login', @services['managesieve-login']) %>
  7. <% else -%>
  8. service managesieve-login {
  9. #inet_listener sieve {
  10. # port = 4190
  11. #}
  12. #inet_listener sieve_deprecated {
  13. # port = 2000
  14. #}
  15. # Number of connections to handle before starting a new process. Typically
  16. # the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0
  17. # is faster. <doc/wiki/LoginProcess.txt>
  18. #service_count = 1
  19. # Number of processes to always keep waiting for more connections.
  20. #process_min_avail = 0
  21. # If you set service_count=0, you probably need to grow this.
  22. #vsz_limit = 64M
  23. }
  24. <% end -%>
  25. <% if @services['managesieve'].kind_of?(Hash) and @services['managesieve'].length > 0 -%>
  26. <%= Dovecot::Conf.service('managesieve', @services['managesieve']) %>
  27. <% else -%>
  28. service managesieve {
  29. # Max. number of ManageSieve processes (connections)
  30. #process_count = 1024
  31. }
  32. <% end -%>
  33. # Service configuration
  34. <% if @protocols['sieve'].kind_of?(Hash) and @protocols['sieve'].length > 0 -%>
  35. <%= Dovecot::Conf.protocol('sieve', @protocols['sieve']) %>
  36. <% else -%>
  37. protocol sieve {
  38. # Maximum ManageSieve command line length in bytes. ManageSieve usually does
  39. # not involve overly long command lines, so this setting will not normally
  40. # need adjustment
  41. #managesieve_max_line_length = 65536
  42. # Maximum number of ManageSieve connections allowed for a user from each IP
  43. # address.
  44. # NOTE: The username is compared case-sensitively.
  45. #mail_max_userip_connections = 10
  46. # Space separated list of plugins to load (none known to be useful so far).
  47. # Do NOT try to load IMAP plugins here.
  48. #mail_plugins =
  49. # MANAGESIEVE logout format string:
  50. # %i - total number of bytes read from client
  51. # %o - total number of bytes sent to client
  52. #managesieve_logout_format = bytes=%i/%o
  53. # To fool ManageSieve clients that are focused on CMU's timesieved you can
  54. # specify the IMPLEMENTATION capability that Dovecot reports to clients.
  55. # For example: 'Cyrus timsieved v2.2.13'
  56. #managesieve_implementation_string = Dovecot Pigeonhole
  57. # Explicitly specify the SIEVE and NOTIFY capability reported by the server
  58. # before login. If left unassigned these will be reported dynamically
  59. # according to what the Sieve interpreter supports by default (after login
  60. # this may differ depending on the user).
  61. #managesieve_sieve_capability =
  62. #managesieve_notify_capability =
  63. # The maximum number of compile errors that are returned to the client upon
  64. # script upload or script verification.
  65. #managesieve_max_compile_errors = 5
  66. # Refer to 90-sieve.conf for script quota configuration and configuration of
  67. # Sieve execution limits.
  68. }
  69. <% end -%>