-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrspamd_users.inc.conf.master
More file actions
59 lines (57 loc) · 1.44 KB
/
rspamd_users.inc.conf.master
File metadata and controls
59 lines (57 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<tmpl_var name='record_identifier'> {
priority = <tmpl_var name='priority'>;
<tmpl_if name='from_email'>
from = "<tmpl_var name='from_email'>";
</tmpl_if>
<tmpl_if name='to_email'>
rcpt = "<tmpl_var name='to_email'>";
</tmpl_if>
<tmpl_if name='spam_lover'>
<tmpl_if name='virus_lover'>
want_spam = yes;
<tmpl_else>
apply {
CLAM_VIRUS = 1999.0;
JUST_EICAR = 1999.0;
actions {
reject = null;
<tmpl_if name='greylisting'>
<tmpl_if name='greylisting' op='==' value='y'>
greylist = <tmpl_var name='greylisting_level'>;
<tmpl_else>
greylist = null;
</tmpl_if>
</tmpl_if>
}
}
</tmpl_if>
<tmpl_else>
apply {
<tmpl_if name='virus_lover'>
CLAM_VIRUS = -999.0;
JUST_EICAR = -999.0;
<tmpl_else>
CLAM_VIRUS = <tmpl_var name='rspamd_virus_kill_level'>;
JUST_EICAR = <tmpl_var name='rspamd_virus_kill_level'>;
</tmpl_if>
actions {
<tmpl_if name='rspamd_spam_tag_method' op='==' value='rewrite_subject'>
"rewrite subject" = <tmpl_var name='rspamd_spam_tag_level'>;
"add header" = null;
</tmpl_if>
<tmpl_if name='rspamd_spam_tag_method' op='==' value='add_header'>
"add header" = <tmpl_var name='rspamd_spam_tag_level'>;
"rewrite subject" = null;
</tmpl_if>
reject = <tmpl_var name='rspamd_spam_kill_level'>;
<tmpl_if name='greylisting'>
<tmpl_if name='greylisting' op='==' value='y'>
greylist = <tmpl_var name='greylisting_level'>;
<tmpl_else>
greylist = null;
</tmpl_if>
</tmpl_if>
}
}
</tmpl_if>
}