Am 25.08.2014 um 18:00 schrieb Karsten Bräckelmann: > On Mon, 2014-08-25 at 11:37 +0200, Reindl Harald wrote: >> header contains "X-Spam-Status: Yes, score=7.5 required=5.0" >> but the subject does not get [SPAM] tagging with the config >> below - not sure what i am missing > > What does this command return? > > echo -e "Subject: Foo\n" | spamassassin --cf="required_score 1"
as root as expected the modified subject as the milter user the unmodified but as you can see at bottom the "user_prefs" is completly empty in that case "score=0.0" even after delete baeysian data but the score is not the problem, in my origin post you see the message flagged in the header but no subject changed anyways - what can cause the complete different behavior of the restricted user? ______________________________________________ [root@mail-gw:~]$ echo -e "Subject: Foo\n" | spamassassin --cf="required_score 1" Aug 25 18:46:56.220 [32082] warn: config: created user preferences file: /root/.spamassassin/user_prefs X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail-gw.thelounge.net X-Spam-Status: Yes, score=3.7 required=1.0 tests=MISSING_DATE,MISSING_FROM, MISSING_HEADERS,MISSING_MID,NO_HEADERS_MESSAGE,NO_RECEIVED,NO_RELAYS Subject: [SPAM] Foo X-Spam-Prev-Subject: Foo ______________________________________________ [root@mail-gw:~]$ su - sa-milt [sa-milt@mail-gw:~]$ echo -e "Subject: Foo\n" | spamassassin --cf="required_score 1" X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail-gw.thelounge.net X-Spam-Status: No, score=0.0 required=1.0 tests=none Subject: Foo [sa-milt@mail-gw:~]$ sa-learn --clear [sa-milt@mail-gw:~]$ echo -e "Subject: Foo\n" | spamassassin --cf="required_score 1" X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail-gw.thelounge.net X-Spam-Status: No, score=0.0 required=1.0 tests=none Subject: Foo ______________________________________________ sa-milt:x:189:188:SpamAssassin Milter:/var/lib/spamass-milter:/usr/bin/bash [sa-milt@mail-gw:~]$ ls -lha /var/lib/spamass-milter/ insgesamt 28K drwxr-x--- 4 sa-milt sa-milt 4,0K 2014-08-22 17:19 training drwxr-xr-x 4 sa-milt sa-milt 4,0K 2014-08-21 19:18 . drwxr-xr-x. 27 root root 4,0K 2014-08-25 17:59 .. drwx------ 2 sa-milt sa-milt 4,0K 2014-08-25 17:58 .spamassassin lrwxrwxrwx 1 sa-milt sa-milt 13 2014-08-20 01:07 spamassassin -> .spamassassin -rw------- 1 sa-milt sa-milt 2,4K 2014-08-22 20:03 .bash_history -rw------- 1 sa-milt sa-milt 187 2014-08-19 17:24 .bash_profile -rw------- 1 sa-milt sa-milt 285 2014-08-19 17:25 .bashrc [sa-milt@mail-gw:~]$ cat /var/lib/spamass-milter/.spamassassin/user_prefs # globally maintained because postfix-milter # signed off: Reindl Harald <h.rei...@thelounge.net>
signature.asc
Description: OpenPGP digital signature