## ## Settings for the Sieve interpreter ## # Do not forget to enable the Sieve plugin in 15-lda.conf and 20-lmtp.conf # by adding it to the respective mail_plugins { sieve = yes } settings. # See https://doc.dovecot.org/latest/core/plugins/sieve.html # Personal sieve script location #sieve_script personal { # driver = file # path = ~/sieve # active_path = ~/.dovecot.sieve #} # Default sieve script location #sieve_script default { # type = default # name = default # driver = file # path = /etc/dovecot/sieve/default/ #} %{do_move_spam_to_junk}sieve_script after { %{do_move_spam_to_junk} type = after %{do_move_spam_to_junk} path = /etc/dovecot/conf.d/custom_after_sieve %{do_move_spam_to_junk}} # Which Sieve language extensions are available to users. By default, all # supported extensions are available, except for deprecated extensions or # those that are still under development. Some system administrators may want # to disable certain Sieve extensions or enable those that are not available # by default. This setting can use 'yes' and 'no' to specify differences relative # to the default. For example `imapflags = yes' will enable the # deprecated imapflags extension in addition to all extensions were already # enabled by default. #sieve_extensions { # mboxmetadata = yes # vnd.dovecot.debug = yes #} # Which Sieve language extensions are ONLY available in global scripts. This # can be used to restrict the use of certain Sieve extensions to administrator # control, for instance when these extensions can cause security concerns. # This setting has higher precedence than the `sieve_extensions' setting # (above), meaning that the extensions enabled with this setting are never # available to the user's personal script no matter what is specified for the # `sieve_extensions' setting. The syntax of this setting is similar to the # `sieve_extensions' setting, with the difference that extensions are # enabled or disabled for exclusive use in global scripts. Currently, no # extensions are marked as such by default. #sieve_global_extensions = # The Pigeonhole Sieve interpreter can have plugins of its own. Using this # setting, the used plugins can be specified. Check the Dovecot documentation # https://doc.dovecot.org/latest/core/plugins/sieve.html #sieve_plugins = sieve_imapsieve sieve_extprograms #sieve_pipe_bin_dir = /usr/share/dovecot-pigeonhole/sieve #sieve_execute_bin_dir = /usr/share/dovecot-pigeonhole/sieve #sieve_global_extensions { # vnd.dovecot.pipe = yes # vnd.dovecot.execute = yes #} #imapsieve_url = # The separator that is expected between the :user and :detail # address parts introduced by the subaddress extension. This may # also be a sequence of characters (e.g. '--'). The current # implementation looks for the separator from the left of the # localpart and uses the first one encountered. The :user part is # left of the separator and the :detail part is right. This setting # is also used by Dovecot's LMTP service. #recipient_delimiter = +-_ # The maximum size of a Sieve script. The compiler will refuse to compile any # script larger than this limit. If set to 0, no limit on the script size is # enforced. #sieve_max_script_size = 1M # The maximum number of actions that can be performed during a single script # execution. If set to 0, no limit on the total number of actions is enforced. #sieve_max_actions = 32 # The maximum number of redirect actions that can be performed during a single # script execution. If set to 0, no redirect actions are allowed. #sieve_max_redirects = 4 # The maximum number of personal Sieve scripts a single user can have. If set # to 0, no limit on the number of scripts is enforced. # (Currently only relevant for ManageSieve) #sieve_quota_script_count = 0 # The maximum amount of disk storage a single user's scripts may occupy. If # set to 0, no limit on the used amount of disk storage is enforced. # (Currently only relevant for ManageSieve) #sieve_quota_storage_size = 0 #mailbox Spam { ## From elsewhere to Spam folder # sieve_script report-spam { # type = before # cause = copy # path = /etc/dovecot/report-spam.sieve # } #} ## From Spam folder to elsewhere #imapsieve_from Spam { # sieve_script report-ham { # type = before # cause = copy # path = /etc/dovecot/report-ham.sieve # } #}