config_managesieve.inc.php 5.4 KB

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