config_managesieve.inc.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. // managesieve server port. When empty the port will be determined automatically
  3. // using getservbyname() function, with 4190 as a fallback.
  4. $config['managesieve_port'] = 4190;
  5. // managesieve server address, default is localhost.
  6. // Replacement variables supported in host name:
  7. // %h - user's IMAP hostname
  8. // %n - http hostname ($_SERVER['SERVER_NAME'])
  9. // %d - domain (http hostname without the first part)
  10. // For example %n = mail.domain.tld, %d = domain.tld
  11. $config['managesieve_host'] = 'localhost';
  12. // authentication method. Can be CRAM-MD5, DIGEST-MD5, PLAIN, LOGIN, EXTERNAL
  13. // or none. Optional, defaults to best method supported by server.
  14. $config['managesieve_auth_type'] = null;
  15. // Optional managesieve authentication identifier to be used as authorization proxy.
  16. // Authenticate as a different user but act on behalf of the logged in user.
  17. // Works with PLAIN and DIGEST-MD5 auth.
  18. $config['managesieve_auth_cid'] = null;
  19. // Optional managesieve authentication password to be used for imap_auth_cid
  20. $config['managesieve_auth_pw'] = null;
  21. // use or not TLS for managesieve server connection
  22. // Note: tls:// prefix in managesieve_host is also supported
  23. $config['managesieve_usetls'] = false;
  24. // Connection scket context options
  25. // See http://php.net/manual/en/context.ssl.php
  26. // The example below enables server certificate validation
  27. //$config['managesieve_conn_options'] = array(
  28. // 'ssl' => array(
  29. // 'verify_peer' => true,
  30. // 'verify_depth' => 3,
  31. // 'cafile' => '/etc/openssl/certs/ca.crt',
  32. // ),
  33. // );
  34. // Note: These can be also specified as an array of options indexed by hostname
  35. $config['managesieve_conn_options'] = null;
  36. // A file with default script content (eg. spam filter)
  37. //$config['managesieve_default'] = '/etc/dovecot/sieve/global';
  38. $config['managesieve_default'] = '/etc/dovecot/sieve/default';
  39. // The name of the script which will be used when there's no user script
  40. $config['managesieve_script_name'] = 'managesieve';
  41. // Sieve RFC says that we should use UTF-8 endcoding for mailbox names,
  42. // but some implementations does not covert UTF-8 to modified UTF-7.
  43. // Defaults to UTF7-IMAP
  44. $config['managesieve_mbox_encoding'] = 'UTF-8';
  45. // I need this because my dovecot (with listescape plugin) uses
  46. // ':' delimiter, but creates folders with dot delimiter
  47. $config['managesieve_replace_delimiter'] = '';
  48. // disabled sieve extensions (body, copy, date, editheader, encoded-character,
  49. // envelope, environment, ereject, fileinto, ihave, imap4flags, index,
  50. // mailbox, mboxmetadata, regex, reject, relational, servermetadata,
  51. // spamtest, spamtestplus, subaddress, vacation, variables, virustest, etc.
  52. // Note: not all extensions are implemented
  53. $config['managesieve_disabled_extensions'] = array();
  54. // Enables debugging of conversation with sieve server. Logs it into <log_dir>/sieve
  55. $config['managesieve_debug'] = false;
  56. // Enables features described in http://wiki.kolab.org/KEP:14
  57. $config['managesieve_kolab_master'] = false;
  58. // Script name extension used for scripts including. Dovecot uses '.sieve',
  59. // Cyrus uses '.siv'. Doesn't matter if you have managesieve_kolab_master disabled.
  60. $config['managesieve_filename_extension'] = '.sieve';
  61. // List of reserved script names (without extension).
  62. // Scripts listed here will be not presented to the user.
  63. $config['managesieve_filename_exceptions'] = array();
  64. // List of domains limiting destination emails in redirect action
  65. // If not empty, user will need to select domain from a list
  66. $config['managesieve_domains'] = array();
  67. // Default list of entries in header selector
  68. $config['managesieve_default_headers'] = array('Subject', 'From', 'To');
  69. // Enables separate management interface for vacation responses (out-of-office)
  70. // 0 - no separate section (default),
  71. // 1 - add Vacation section,
  72. // 2 - add Vacation section, but hide Filters section
  73. $config['managesieve_vacation'] = 0;
  74. // Enables separate management interface for setting forwards (redirect to and copy to)
  75. // 0 - no separate section (default),
  76. // 1 - add Forward section,
  77. // 2 - add Forward section, but hide Filters section
  78. $config['managesieve_forward'] = 0;
  79. // Default vacation interval (in days).
  80. // Note: If server supports vacation-seconds extension it is possible
  81. // to define interval in seconds here (as a string), e.g. "3600s".
  82. $config['managesieve_vacation_interval'] = 0;
  83. // Some servers require vacation :addresses to be filled with all
  84. // user addresses (aliases). This option enables automatic filling
  85. // of these on initial vacation form creation.
  86. $config['managesieve_vacation_addresses_init'] = false;
  87. // Sometimes you want to always reply with mail email address
  88. // This option enables automatic filling of :from field on initial vacation form creation.
  89. $config['managesieve_vacation_from_init'] = false;
  90. // Supported methods of notify extension. Default: 'mailto'
  91. $config['managesieve_notify_methods'] = array('mailto');
  92. // Enables scripts RAW editor feature
  93. $config['managesieve_raw_editor'] = true;
  94. // Disabled actions
  95. // Prevent user from performing specific actions:
  96. // list_sets, enable_disable_set, delete_set, new_set, download_set, new_rule, delete_rule
  97. // Note: disabling list_sets removes the Filter sets widget from the UI and means
  98. // the set defined in managesieve_script_name will always be used (and activated)
  99. $config['managesieve_disabled_actions'] = array();
  100. // List of hosts that support managesieve.
  101. // Activate managesieve for selected hosts only. If this is not set all hosts are allowed.
  102. // Example: $config['managesieve_allowed_hosts'] = array('host1.mydomain.com','host2.mydomain.com');
  103. $config['managesieve_allowed_hosts'] = null;