archiver.cfg 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. ##############################################################
  2. # ARCHIVER SETTINGS
  3. # Server Unix socket location
  4. #server_socket = file:///var/run/kopano/server.sock
  5. # Disable archiving momentarily by setting this to 'no'
  6. archive_enable = yes
  7. # Archive messages older than N days
  8. archive_after = 30
  9. # Stubbing messages requires a multi-server environment
  10. stub_enable = no
  11. # Unread messages can be skipped in the stubbing process
  12. stub_unread = no
  13. # Only stub messages after N days, 0 for the same as archive_after
  14. stub_after = 0
  15. # Delete archives messages from the original server. Only archived messages can be deleted.
  16. delete_enable = no
  17. # Also delete unread messages from the original server
  18. delete_unread = no
  19. # Only delete messages after N days, 0 for the same as archive_after
  20. delete_after = 0
  21. # Purge messages from the archive server(s).
  22. purge_enable = no
  23. # Only purge messages after N days, 0 for the same as archive_after
  24. # Default: 2555 (7 years)
  25. purge_after = 2555
  26. # Specify what action should be taken on archive messages whose primary message
  27. # has been deleted. The normal options are 'store' and 'delete', meaning store the
  28. # archived message in a special 'Deleted' folder or delete the archived messages
  29. # respectively. A third option 'none' skips the entire cleanup_action, and therefore
  30. # effectively turns off archiver cleanup, leaving archived messages as they are.
  31. # Default: store
  32. cleanup_action = store
  33. # Specify if items that are cleaned up from the archive are at least the age
  34. # that is specified in the purge_after setting. This is to avoid messages
  35. # being deleted from the archive when they where deleted from the primary
  36. # store by a delete operation.
  37. # Note that setting to yes, will cause a cleanup run to seemingly do nothing.
  38. # A rule of thumb is to set this to the same value as delete_enable. So when
  39. # delete_enable is set to yes, make sure cleanup_follow_purge_after is also
  40. # set to yes.
  41. # Default: no
  42. cleanup_follow_purge_after = no
  43. # Specify whether on each archive run an auto-attach run is performed in order
  44. # to match the attached archives to the requested state as specified in LDAP or
  45. # ADS.
  46. # Default: no
  47. enable_auto_attach = no
  48. # Specify whether an auto attached archive will be granted write permissions
  49. # for the user it's attached to.
  50. # Default: yes
  51. auto_attach_writable = yes
  52. ##############################################################
  53. # ARCHIVER LOG SETTINGS
  54. # Logging method (syslog, file)
  55. log_method = file
  56. # Loglevel (0(none), 1(crit), 2(err), 3(warn), 4(notice), 5(info), 6(debug))
  57. #log_level = 3
  58. # Logfile for log_method = file, use '-' for stderr
  59. log_file = /var/log/kopano/archiver.log
  60. # Log timestamp - prefix each log line with timestamp in 'file' logging mode
  61. log_timestamp = 1
  62. # Buffer logging in what sized blocks. 0 for line-buffered (syslog-style).
  63. #log_buffer_size = 0
  64. ##############################################################
  65. # ARCHIVER SSL LOGIN SETTINGS
  66. #
  67. # Note: server_socket must be set to https://servername:portname/
  68. # to use this type of login method
  69. # Login to the storage server using this SSL Key
  70. #sslkey_file = /etc/kopano/ssl/archiver.pem
  71. # The password of the SSL Key
  72. #sslkey_pass = replace-with-archiver-cert-password
  73. ##############################################################
  74. # ARCHIVER INSTANCE PROTECTION SETTINGS
  75. # Control pid file
  76. # Default: /var/run/kopano/archiver.pid
  77. #pid_file = /var/run/kopano/archiver.pid
  78. ##############################################################
  79. # ARCHIVER MYSQL SETTINGS
  80. # MySQL hostname to connect to for database access
  81. mysql_host = localhost
  82. # MySQL port to connect with (usually 3306)
  83. mysql_port = 3306
  84. # The user under which we connect with MySQL
  85. mysql_user = root
  86. # The password for the user (leave empty for no password)
  87. mysql_password =
  88. # Override the default MySQL socket to access mysql locally
  89. # Works only if the mysql_host value is empty or 'localhost'
  90. mysql_socket =
  91. # Database to connect to
  92. mysql_database = kopano_archiver