|
|
@ -104,7 +104,7 @@ service auth-worker {
|
|
|
|
###############
|
|
|
|
###############
|
|
|
|
|
|
|
|
|
|
|
|
protocol imap {
|
|
|
|
protocol imap {
|
|
|
|
mail_plugins = $mail_plugins imap_quota antispam
|
|
|
|
mail_plugins = $mail_plugins imap_quota imap_sieve
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protocol pop3 {
|
|
|
|
protocol pop3 {
|
|
|
@ -155,13 +155,16 @@ service managesieve {
|
|
|
|
|
|
|
|
|
|
|
|
plugin {
|
|
|
|
plugin {
|
|
|
|
sieve = file:~/sieve;active=~/.dovecot.sieve
|
|
|
|
sieve = file:~/sieve;active=~/.dovecot.sieve
|
|
|
|
sieve_plugins = sieve_extdata
|
|
|
|
sieve_plugins = sieve_extdata sieve_imapsieve sieve_extprograms
|
|
|
|
sieve_global_extensions = +vnd.dovecot.extdata +spamtest +spamtestplus
|
|
|
|
sieve_global_extensions = +vnd.dovecot.extdata +spamtest +spamtestplus +vnd.dovecot.execute
|
|
|
|
sieve_before = /var/lib/dovecot/before.sieve
|
|
|
|
sieve_before = /var/lib/dovecot/before.sieve
|
|
|
|
sieve_default = /var/lib/dovecot/default.sieve
|
|
|
|
sieve_default = /var/lib/dovecot/default.sieve
|
|
|
|
sieve_after = /var/lib/dovecot/after.sieve
|
|
|
|
sieve_after = /var/lib/dovecot/after.sieve
|
|
|
|
sieve_extdata_dict_uri = proxy::sieve
|
|
|
|
sieve_extdata_dict_uri = proxy::sieve
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Sieve execute
|
|
|
|
|
|
|
|
sieve_execute_bin_dir = /var/lib/dovecot/bin
|
|
|
|
|
|
|
|
|
|
|
|
# Send vacation replies even for aliases
|
|
|
|
# Send vacation replies even for aliases
|
|
|
|
# See the Pigeonhole documentation about warnings: http://wiki2.dovecot.org/Pigeonhole/Sieve/Extensions/Vacation
|
|
|
|
# See the Pigeonhole documentation about warnings: http://wiki2.dovecot.org/Pigeonhole/Sieve/Extensions/Vacation
|
|
|
|
# It appears that our implemntation of mail delivery meets criteria of section 4.5
|
|
|
|
# It appears that our implemntation of mail delivery meets criteria of section 4.5
|
|
|
@ -171,19 +174,20 @@ plugin {
|
|
|
|
# Include the recipient in vacation replies so that DKIM applies
|
|
|
|
# Include the recipient in vacation replies so that DKIM applies
|
|
|
|
sieve_vacation_send_from_recipient = yes
|
|
|
|
sieve_vacation_send_from_recipient = yes
|
|
|
|
|
|
|
|
|
|
|
|
antispam_backend = mailtrain
|
|
|
|
|
|
|
|
antispam_spam = Junk
|
|
|
|
|
|
|
|
antispam_trash = Trash
|
|
|
|
|
|
|
|
antispam_mail_sendmail = /usr/bin/rspamc
|
|
|
|
|
|
|
|
antispam_mail_spam = learn_spam
|
|
|
|
|
|
|
|
antispam_mail_notspam = learn_ham
|
|
|
|
|
|
|
|
antispam_mail_sendmail_args = -h;antispam:11334;-P;q1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# extract spam score from
|
|
|
|
# extract spam score from
|
|
|
|
# X-Spam-Result: .... [<value> / <max_value] ...
|
|
|
|
# X-Spam-Result: .... [<value> / <max_value] ...
|
|
|
|
sieve_spamtest_status_type = score
|
|
|
|
sieve_spamtest_status_type = score
|
|
|
|
sieve_spamtest_status_header = X-Spamd-Result: .*\[(-?[[:digit:]]+\.[[:digit:]]+) .*\]
|
|
|
|
sieve_spamtest_status_header = X-Spamd-Result: .*\[(-?[[:digit:]]+\.[[:digit:]]+) .*\]
|
|
|
|
sieve_spamtest_max_header = X-Spamd-Result: .*\[.* ([[:digit:]]+\.[[:digit:]]+)\]
|
|
|
|
sieve_spamtest_max_header = X-Spamd-Result: .*\[.* ([[:digit:]]+\.[[:digit:]]+)\]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Learn from spam
|
|
|
|
|
|
|
|
imapsieve_mailbox1_name = Junk
|
|
|
|
|
|
|
|
imapsieve_mailbox1_causes = COPY
|
|
|
|
|
|
|
|
imapsieve_mailbox1_before = file:/var/lib/dovecot/report-spam.sieve
|
|
|
|
|
|
|
|
imapsieve_mailbox2_name = *
|
|
|
|
|
|
|
|
imapsieve_mailbox2_from = Junk
|
|
|
|
|
|
|
|
imapsieve_mailbox2_causes = COPY
|
|
|
|
|
|
|
|
imapsieve_mailbox2_before = file:/var/lib/dovecot/report-ham.sieve
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
###############
|
|
|
|
###############
|
|
|
|