您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

183 行
6.7KB

  1. plugin {
  2. ##################
  3. # dovecot-antispan
  4. # GENERIC OPTIONS
  5. # Debugging options
  6. # Uncomment to get the desired debugging behaviour.
  7. # Note that in some cases stderr debugging will not be as
  8. # verbose as syslog debugging due to internal limitations.
  9. #
  10. # antispam_debug_target = syslog
  11. # antispam_debug_target = stderr
  12. # antispam_verbose_debug = 1
  13. #
  14. # This can be used to get a prefix, e.g. by specifying %u in it
  15. # antispam_debug_prefix = "antispam: "
  16. # backend selection, MUST be configured first,
  17. # there's no default so you need to set one of
  18. # these options:
  19. antispam_backend = crm114
  20. # antispam_backend = dspam
  21. # antispam_backend = pipe
  22. # antispam_backend = spool2dir
  23. # mail signature (used with any backend requiring a signature)
  24. # antispam_signature = X-DSPAM-Signature
  25. # action to take on mails without signature
  26. # (used with any backend requiring a signature)
  27. # (we recommend only setting this to 'move' after verifying that the
  28. # whole setup is working)
  29. # antispam_signature_missing = move # move silently without training
  30. antispam_signature_missing = error
  31. # The list of folders for trash, spam and unsure can be given
  32. # with three options, e.g. "trash" matches the given folders
  33. # exactly as written, "trash_pattern" accept the * wildcard at
  34. # the end of the foldername, "trash_pattern_ignorecase"
  35. # accepts the * wildcard at the end of the foldername _and_
  36. # matches the name case insensitivly.
  37. # the *-wildcard with the following meaning:
  38. # * at the end: any folder that _start_ with the string
  39. # e.g.:
  40. # antispam_trash_pattern = deleted *;Gel&APY-schte *
  41. # match any folders that start with "deleted " or "Gelöschte "
  42. # match is _case_senstive_!
  43. #
  44. # antispam_trash_pattern_ignorecase = deleted *;Gel&APY-schte *
  45. # match any folders that start with "deleted " or "gelöschte "
  46. # match is _case_insenstive_, except the non-USASCII letters,
  47. # "ö" in this example.
  48. # To match the upper-case Ö, too, you need to add yet another
  49. # pattern "gel&ANY-schte *", note the different UTF7 encoding:
  50. # &ANY- instead of &APY-.
  51. # semicolon-separated list of Trash folders (default unset i.e. none)
  52. # antispam_trash =
  53. # antispam_trash = trash;Trash;Deleted Items; Deleted Messages
  54. # antispam_trash_pattern = trash;Trash;Deleted *
  55. # antispam_trash_pattern_ignorecase = trash;Deleted *
  56. # semicolon-separated list of spam folders
  57. antispam_spam = SPAM
  58. # antispam_spam_pattern = SPAM
  59. # antispam_spam_pattern_ignorecase = SPAM
  60. # semicolon-separated list of unsure folders (default unset i.e. none)
  61. antispam_unsure = inbox/unsure
  62. # antispam_unsure_pattern =
  63. # antispam_unsure_pattern_ignorecase =
  64. # Whether to allow APPENDing to SPAM folders or not. Must be set to
  65. # "yes" (case insensitive) to be activated. Before activating, please
  66. # read the discussion below.
  67. # antispam_allow_append_to_spam = no
  68. ###########################
  69. # BACKEND SPECIFIC OPTIONS
  70. #
  71. #===================
  72. # dspam plugin
  73. # dspam binary
  74. # antispam_dspam_binary = /usr/bin/dspam
  75. # semicolon-separated list of extra arguments to dspam
  76. # (default unset i.e. none)
  77. # antispam_dspam_args =
  78. # antispam_dspam_args = --deliver=;--user;%u # % expansion done by dovecot
  79. # antispam_dspam_args = --mode=teft
  80. # Ignore mails where the DSPAM result header contains any of the
  81. # strings listed in the blacklist
  82. # (default unset i.e. none)
  83. # antispam_dspam_result_header = X-DSPAM-Result
  84. # semicolon-separated list of blacklisted results, case insensitive
  85. # antispam_dspam_result_blacklist = Virus
  86. # semicolon-separated list of environment variables to set
  87. # (default unset i.e. none)
  88. # antispam_dspam_env =
  89. # antispam_dspam_env = HOME=%h;USER=%u
  90. #=====================
  91. # pipe plugin
  92. #
  93. # This plug can be used to train via an arbitrary program that
  94. # receives the message on standard input. Since sendmail can be
  95. # such a program, it can be used to send the message to another
  96. # email address for training there.
  97. #
  98. # For example:
  99. # antispam_pipe_program = /path/to/mailtrain
  100. # (defaults to /usr/sbin/sendmail)
  101. # antispam_pipe_program_args = --for;%u
  102. # antispam_pipe_program_spam_arg = --spam
  103. # antispam_pipe_program_notspam_arg = --ham
  104. # antispam_pipe_tmpdir = /tmp
  105. # will call it, for example, like this:
  106. # /path/to/mailtrain --for jberg --spam
  107. #
  108. # The old configuration options from when this plugin was called
  109. # "mailtrain" are still valid, these are, in the same order as
  110. # above: antispam_mail_sendmail, antispam_mail_sendmail_args,
  111. # antispam_mail_spam, antispam_mail_notspam and antispam_mail_tmpdir.
  112. #
  113. # Alternatively, if you need to give multiple options, you can use
  114. # the spam_args/notspam_args parameters (which are used in preference
  115. # of the singular form):
  116. # antispam_pipe_program_spam_args = --spam;--my-other-param1
  117. # antispam_pipe_program_notspam_args = --ham;--my-other-param2
  118. # which will then call
  119. # /path/to/mailtrain --for jberg --spam --my-other-param1
  120. # temporary directory
  121. antispam_pipe_tmpdir = /tmp
  122. # spam/not-spam argument (default unset which will is not what you want)
  123. # antispam_pipe_program_spam_arg =
  124. # antispam_pipe_program_notspam_arg =
  125. # binary to pipe mail to
  126. antispam_pipe_program = /usr/sbin/sendmail
  127. #antispam_pipe_program_args = -f;%u@example.com # % expansion done by dovecot
  128. #===================
  129. # crm114 plugin
  130. # mailreaver binary
  131. # antispam_crm_binary = /bin/false
  132. antispam_crm_binary = /usr/share/crm114/mailreaver.crm
  133. # semicolon-separated list of extra arguments to crm114
  134. # (default unset i.e. none)
  135. # antispam_crm_args =
  136. # antispam_crm_args = --config=/path/to/config
  137. # semicolon-separated list of environment variables to set
  138. # (default unset i.e. none)
  139. # antispam_crm_env =
  140. antispam_crm_env = HOME=%h;USER=%u
  141. # NOTE: you need to set the signature for this backend
  142. antispam_signature = X-CRM114-CacheID
  143. #===================
  144. # spool2dir plugin
  145. # spam/not-spam spool2dir drop (default unset which will give errors)
  146. # The first %%lu is replaced by the current time.
  147. # The second %%lu is replaced by a counter to generate unique names.
  148. # These two tokens MUST be present in the template! However
  149. # you can insert any C-style modifier as shown.
  150. # antispam_spool2dir_spam = /tmp/spamspool/%%020lu-%u-%%05lus
  151. # antispam_spool2dir_notspam = /tmp/spamspool/%%020lu-%u-%%05luh
  152. }