aboutsummaryrefslogtreecommitdiff
path: root/app/email/build/dovecot/legacy/report-spam.sieve
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-09-14 17:46:06 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-09-14 17:46:06 +0200
commitacd46fde80585764224395a6de93a217a0ff2a30 (patch)
tree04d1cec052b72476875e532539b1dd7e6341028a /app/email/build/dovecot/legacy/report-spam.sieve
parent6716687fd7d15867d9b43d1560515f29f8260e95 (diff)
downloadinfrastructure-acd46fde80585764224395a6de93a217a0ff2a30.tar.gz
infrastructure-acd46fde80585764224395a6de93a217a0ff2a30.zip
Remove connection limit dovecot
Diffstat (limited to 'app/email/build/dovecot/legacy/report-spam.sieve')
-rw-r--r--app/email/build/dovecot/legacy/report-spam.sieve9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/email/build/dovecot/legacy/report-spam.sieve b/app/email/build/dovecot/legacy/report-spam.sieve
new file mode 100644
index 0000000..1be7389
--- /dev/null
+++ b/app/email/build/dovecot/legacy/report-spam.sieve
@@ -0,0 +1,9 @@
+require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables", "vnd.dovecot.debug"];
+
+if environment :matches "imap.user" "*" {
+ set "username" "${1}";
+}
+
+pipe :copy "sa-learn" [ "--spam", "-u", "debian-spamd"];
+debug_log "spam reported by ${username}";
+