This commit is contained in:
mwiegand 2021-10-18 22:15:33 +02:00
parent 162982ac00
commit 7b3c1ece8d
5 changed files with 34 additions and 11 deletions

View file

@ -119,7 +119,7 @@ plugin {
sieve_pipe_bin_dir = /var/vmail/sieve/
sieve_extensions = +vnd.dovecot.pipe
sieve_before = /var/vmail/sieve/global/spam-global.sieve
sieve_after = /var/vmail/sieve/global/spam-to-folder.sieve
# From elsewhere to Spam folder
imapsieve_mailbox1_name = Junk

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/rspamc learn_ham

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/rspamc learn_spam

View file

@ -19,7 +19,16 @@ directories = {
'/var/vmail': {
'owner': 'vmail',
'group': 'vmail',
}
},
'/var/vmail/sieve': {
'owner': 'vmail',
'group': 'vmail',
},
'/var/vmail/sieve/global': {
'purge': True,
'owner': 'vmail',
'group': 'vmail',
},
}
files = {
@ -59,17 +68,27 @@ files = {
'svc_systemd:dovecot:restart',
},
},
'/var/mail/vmail/sieve/global/learn-ham.sieve': {
'owner': 'nobody',
'group': 'nogroup',
'/var/vmail/sieve/global/spam-to-folder.sieve': {
'owner': 'vmail',
'group': 'vmail',
},
'/var/mail/vmail/sieve/global/learn-spam.sieve': {
'owner': 'nobody',
'group': 'nogroup',
'/var/vmail/sieve/global/learn-ham.sieve': {
'owner': 'vmail',
'group': 'vmail',
},
'/var/mail/vmail/sieve/global/spam-global.sieve': {
'owner': 'nobody',
'group': 'nogroup',
'/var/vmail/sieve/global/learn-ham.sh': {
'owner': 'vmail',
'group': 'vmail',
'mode': '550',
},
'/var/vmail/sieve/global/learn-spam.sieve': {
'owner': 'vmail',
'group': 'vmail',
},
'/var/vmail/sieve/global/learn-spam.sh': {
'owner': 'vmail',
'group': 'vmail',
'mode': '550',
},
}