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}
|