Hello,
I run our incoming mails via spamassassin. Depending on the probability for spamminess, I want to put the message in a different folder:
Mails with 15 or more spamassassin scores go into folger Spam3
Mails 10 spamassassin or more, but less than 15 go into folger Spam2
Mails 5 spamassassin or more, but less than 10 go into folger Spam1
The rest goes into folder Inbox.
However when a mail with 15 spamassassin points arrives it is stored in all three folders. How can I avoid this?
How shall I write the rules, so that they behave like that?
I added the rules with
#/bin/sh
/opt/scalix/bin/sxaa --user "$1" --file "Spam3" --header "X-Spam-Level: +++++++++++++++" --title Spam3
/opt/scalix/bin/sxaa --user "$1" --file "Spam2" --header "X-Spam-Level: ++++++++++" --title Spam2
/opt/scalix/bin/sxaa --user "$1" --file "Spam1" --header "X-Spam-Level: +++++" --title Spam1
resulting # tf.browse -i 000003d
HEADER (DN) 1 0 2 1002 0x0 0x0 0 0x0 0x0 0x2 0x0 0x0 ""
AA_NO () 0x0 600 0 0 0 0 "" "" "" "" "" "Spam3"
FILTER_STRING () 0x0 0x0 39 1 0 0 "X-Spam-Level: +++++++++++++++"\
"" "" "" ""
AA_FILE () 0x0 0x1 0 0 "" "" "" "" "" "Spam3"
AA_NO () 0x0 601 0 0 0 0 "" "" "" "" "" "Spam2"
FILTER_STRING () 0x0 0x0 39 1 0 0 "X-Spam-Level: ++++++++++" "" \
"" "" ""
AA_FILE () 0x0 0x1 0 0 "" "" "" "" "" "Spam2"
AA_NO () 0x0 602 0 0 0 0 "" "" "" "" "" "Spam1"
FILTER_STRING () 0x0 0x0 39 1 0 0 "X-Spam-Level: +++++" "" "" \
"" ""
AA_FILE () 0x0 0x1 0 0 "" "" "" "" "" "Spam1"
Thanks in advance for your feedback.