File: sieve_script.tpl

package info (click to toggle)
fusiondirectory 1.0.19-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 32,060 kB
  • sloc: php: 47,469; pascal: 2,993; perl: 2,431; xml: 1,822; sh: 136; makefile: 19
file content (39 lines) | stat: -rw-r--r-- 823 bytes parent folder | download | duplicates (5)
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
###FUSIONDIRECTORY
require ["fileinto", "reject", "vacation"];

{if $spamfilter}
# Sort mails with higher spam level
if header :contains "X-Spam-Level" "{$spamlevel}" {literal}{{/literal}
  fileinto "{$spambox}";
{literal}}{/literal}
{/if}
{if $sizefilter}
#  Reject mails with bigger size
if size :over {literal}{{/literal}{$maxsize}{literal}}M{{/literal}
        reject text:
{t}Dear sender,

the mail you sent to our mailsystem has been rejected due
to a user configured maximum mail size ({$maxsize} MB).

Either ask the user to remove the sizelimit, or send smaller pieces.

Thank you,
 the mailserver{/t}
.
        ;
        discard;
{literal}}{/literal}

{/if}
{if $vacation}
# Vacation message
vacation :addresses [{$addrlist}]
"{$vacmsg}" ;

{/if}
{if $dropownmail}
# Do not deliver to own mailbox
discard;

{/if}