Update to trixie
This commit is contained in:
parent
3686d35108
commit
fbfb04717a
48 changed files with 914 additions and 2216 deletions
3
mail_system/files/dovecot/sieve/after/README
Normal file
3
mail_system/files/dovecot/sieve/after/README
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# THIS FILE IS CONTROLLED BY ANSIBLE - DO NOT CHANGE IN DEPLOYMENT!
|
||||
|
||||
See sieve_before/README; sieve filters in this directory are run after the user's scripts.
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
# THIS FILE IS CONTROLLED BY ANSIBLE - DO NOT CHANGE IN DEPLOYMENT!
|
||||
|
||||
|
||||
require ["fileinto","mailbox"];
|
||||
|
||||
if header :contains "X-Spam" "Yes" {
|
||||
fileinto :create "Junk";
|
||||
stop;
|
||||
}
|
||||
BIN
mail_system/files/dovecot/sieve/after/spam-to-folder.svbin
Normal file
BIN
mail_system/files/dovecot/sieve/after/spam-to-folder.svbin
Normal file
Binary file not shown.
40
mail_system/files/dovecot/sieve/before/README
Normal file
40
mail_system/files/dovecot/sieve/before/README
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# THIS FILE IS CONTROLLED BY ANSIBLE - DO NOT CHANGE IN DEPLOYMENT!
|
||||
|
||||
|
||||
Sieve scripts that will be run before user scripts.
|
||||
|
||||
Don't forget to compile the script with
|
||||
|
||||
sievec /etc/dovecot/sieve_before/{name}.sieve
|
||||
|
||||
and
|
||||
|
||||
chown mailstore: /etc/dovecot/sieve_before/{name}.*
|
||||
|
||||
|
||||
You may use regular Sieve extensions, but also Dovecot-specific Sieve extensions,
|
||||
cf. https://wiki2.dovecot.org/Pigeonhole/Sieve .
|
||||
|
||||
(Note: We made vnd.dovecot.{pipe,filter,execute} available only in the global context,
|
||||
they cannot be used by users.)
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
require ["vnd.dovecot.filter", "vnd.dovecot.execute", "variables", "envelope", "subaddress"];
|
||||
|
||||
if execute :output "out" :pipe "copy_to_matrix" {
|
||||
filter "test" "${out}";
|
||||
}
|
||||
|
||||
if envelope :matches :detail "to" "*" {
|
||||
set "x" "${1}";
|
||||
}
|
||||
|
||||
filter "test" "${x}";
|
||||
|
||||
if envelope :matches :user "to" "*" {
|
||||
set "y" "${1}";
|
||||
}
|
||||
|
||||
filter "test" "${y}";
|
||||
13
mail_system/files/dovecot/sieve/execute/README
Normal file
13
mail_system/files/dovecot/sieve/execute/README
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# THIS FILE IS CONTROLLED BY ANSIBLE - DO NOT CHANGE IN DEPLOYMENT!
|
||||
|
||||
|
||||
Execute is useful for conditions
|
||||
|
||||
Take care to not output a newline after the result!
|
||||
|
||||
Example:
|
||||
|
||||
#!/bin/bash
|
||||
d=$(/bin/date +%s)
|
||||
echo -n $d
|
||||
exit 0
|
||||
15
mail_system/files/dovecot/sieve/filters/README
Normal file
15
mail_system/files/dovecot/sieve/filters/README
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# THIS FILE IS CONTROLLED BY ANSIBLE - DO NOT CHANGE IN DEPLOYMENT!
|
||||
|
||||
|
||||
A filter accepts a mail as input, modifies it and outputs the result.
|
||||
|
||||
Note: You cannot have side-effects like putting something into /tmp.
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
echo "X-Test: $(date) $1"
|
||||
cat
|
||||
|
||||
8
mail_system/files/dovecot/sieve/pipes/learn-ham.sieve
Normal file
8
mail_system/files/dovecot/sieve/pipes/learn-ham.sieve
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# THIS FILE IS CONTROLLED BY ANSIBLE - DO NOT CHANGE IN DEPLOYMENT!
|
||||
|
||||
|
||||
require ["vnd.dovecot.pipe", "copy", "imapsieve", "variables"];
|
||||
if string "${mailbox}" "Trash" {
|
||||
stop;
|
||||
}
|
||||
pipe :copy "rspamd-learn-ham.sh";
|
||||
BIN
mail_system/files/dovecot/sieve/pipes/learn-ham.svbin
Normal file
BIN
mail_system/files/dovecot/sieve/pipes/learn-ham.svbin
Normal file
Binary file not shown.
5
mail_system/files/dovecot/sieve/pipes/learn-spam.sieve
Normal file
5
mail_system/files/dovecot/sieve/pipes/learn-spam.sieve
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# THIS FILE IS CONTROLLED BY ANSIBLE - DO NOT CHANGE IN DEPLOYMENT!
|
||||
|
||||
|
||||
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
|
||||
pipe :copy "rspamd-learn-spam.sh";
|
||||
BIN
mail_system/files/dovecot/sieve/pipes/learn-spam.svbin
Normal file
BIN
mail_system/files/dovecot/sieve/pipes/learn-spam.svbin
Normal file
Binary file not shown.
3
mail_system/files/dovecot/sieve/pipes/rspamd-learn-ham.sh
Executable file
3
mail_system/files/dovecot/sieve/pipes/rspamd-learn-ham.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
/usr/bin/rspamc learn_ham
|
||||
exit 0
|
||||
3
mail_system/files/dovecot/sieve/pipes/rspamd-learn-spam.sh
Executable file
3
mail_system/files/dovecot/sieve/pipes/rspamd-learn-spam.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
/usr/bin/rspamc learn_spam
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue