+ add api for presets
+ add yml-files for preset-definition
This commit is contained in:
7
data/web/inc/presets/rspamd/preset_1.yml
Normal file
7
data/web/inc/presets/rspamd/preset_1.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
headline: lang.rsettings_preset_1
|
||||
content: |
|
||||
priority = 10;
|
||||
authenticated = yes;
|
||||
apply "default" {
|
||||
symbols_enabled = ["DKIM_SIGNED", "RATELIMITED", "RATELIMIT_UPDATE", "RATELIMIT_CHECK", "DYN_RL_CHECK", "HISTORY_SAVE", "MILTER_HEADERS", "ARC_SIGNED"];
|
||||
}
|
5
data/web/inc/presets/rspamd/preset_2.yml
Normal file
5
data/web/inc/presets/rspamd/preset_2.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
headline: lang.rsettings_preset_2
|
||||
content: |
|
||||
priority = 10;
|
||||
rcpt = "/postmaster@.*/";
|
||||
want_spam = yes;
|
7
data/web/inc/presets/sieve/sieve_1.yml
Normal file
7
data/web/inc/presets/sieve/sieve_1.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
headline: lang.sieve_preset_1
|
||||
content: |
|
||||
if header :contains "x-attached"
|
||||
[".exe",".bat",".js",".com",".cmd",".ini",".dll",".bas",".cpl",".drv",".inf",".sys",".pif",".doc",".docx"] {
|
||||
discard;
|
||||
stop;
|
||||
}
|
7
data/web/inc/presets/sieve/sieve_2.yml
Normal file
7
data/web/inc/presets/sieve/sieve_2.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
headline: lang.sieve_preset_2
|
||||
content: |
|
||||
require ["envelope", "imap4flags"];
|
||||
if envelope "from" "mark@me-read.com"
|
||||
{
|
||||
setflag "\\seen";
|
||||
}
|
Reference in New Issue
Block a user