Re: X-Spam-Status does not appear in mail header
Hi sm, The startup parameters may be different. Verify what spamass_milter_flags settings used in rc.conf to start the milter. I'm in doubt we mean the same thing. I verified these settings, an it's not spamass-milter not rewriting headers -- but it does not write *all* headers. IIRC, the X-Spam-Level should appear in each message, regardless of it's spam or not. But the only header I see is X-Spam-Checker-Version. Subject rewriting would be the next step in case of spam, but first of all it has to determine the X-Spam-Level... and to write it to the header, doesn't it? Regards, Marianne
Re: X-Spam-Status does not appear in mail header
Hi Marianne, At 10:33 26-03-2008, Marianne Spiller wrote: I verified these settings, an it's not spamass-milter not rewriting headers -- but it does not write *all* headers. IIRC, the X-Spam-Level should appear in each message, regardless of it's spam or not. But the only header I see is X-Spam-Checker-Version. Subject rewriting would be the next step in case of spam, but first of all it has to determine the X-Spam-Level... and to write it to the header, doesn't it? The X-Spam-Level is added to all messages if you have the following line in your SpamAssassin configuration file: add_header all Level _STARS(*)_ Subject rewriting will be done even without the X-Spam-Level setting as it is based on whether the score is above the required_score. Regards, -sm
X-Spam-Status does not appear in mail header
Hi folks, I have a strange problem on my NetBSD-current box: I installed spamassassin from pkgsrc (V 3.2.3) and configured it in sendmail (INPUT_MAIL_FILTER(`spamassassin'...). It seems to work; there are bayes_seen and bayes_toks, and I can see in `sa-learn --dump magic` my spamassassin seems to learn. But newly arrived mail gets never marked as spam; spamassassin[1] checks it, but the header rewrite is unusual: Mar 25 18:05:06 vinyl spamd[4661]: spamd: processing message [EMAIL PROTECTED] for me:1005 Mar 25 18:05:06 vinyl spamd[4661]: spamd: clean message (0.0/5.0) for me:1005 in 0.1 seconds, 4399 bytes. Mar 25 18:05:06 vinyl spamd[4661]: spamd: result: . 0 - scantime=0.1,size=4399,user=me,uid=1005,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=64556,mid=[EMAIL PROTECTED],autolearn=ham Mar 25 18:05:06 vinyl sm-mta[914]: m2PH54SR000914: Milter add: header: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on myhost Huh? The only header is X-Spam-Checker-Version, but it does not write a X-Spam-Status or X-Spam-Level header to my messages as I can see in message source. Isn't that strange? Exactly the same setup worked fine under a Debian Xen domU... `spamassassin -D --lint` without any errors. I hope anybody can give me a hint. Best regards, Marianne [1] required_score 5.0 rewrite_header Subject [:.SPAM.:] report_safe 1 use_bayes 1 bayes_path /var/spamassassin/bayes bayes_file_mode 777 bayes_auto_learn 1 bayes_auto_learn_threshold_nonspam 1.0 bayes_auto_learn_threshold_spam 8.0 -- Die einen nennen es 'Zensur', die anderen 'regular expression'.
Re: X-Spam-Status does not appear in mail header
At 10:14 25-03-2008, Marianne Spiller wrote: I have a strange problem on my NetBSD-current box: I installed spamassassin from pkgsrc (V 3.2.3) and configured it in sendmail (INPUT_MAIL_FILTER(`spamassassin'...). [snip] But newly arrived mail gets never marked as spam; spamassassin[1] checks it, but the header rewrite is unusual: Mar 25 18:05:06 vinyl spamd[4661]: spamd: processing message [EMAIL PROTECTED] for me:1005 Mar 25 18:05:06 vinyl spamd[4661]: spamd: clean message (0.0/5.0) for me:1005 in 0.1 seconds, 4399 bytes. Mar 25 18:05:06 vinyl spamd[4661]: spamd: result: . 0 - scantime=0.1,size=4399,user=me,uid=1005,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=64556,mid=[EMAIL PROTECTED],autolearn=ham Mar 25 18:05:06 vinyl sm-mta[914]: m2PH54SR000914: Milter add: header: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on myhost It's up to your milter to add the headers as you can see from the above. Huh? The only header is X-Spam-Checker-Version, but it does not write a X-Spam-Status or X-Spam-Level header to my messages as I can see in message source. Isn't that strange? Exactly the same setup worked fine under a Debian Xen domU... The rewrite_header Subject [:.SPAM.:] setting from the SpamAssassin configuration is only applicable if your milter reads the message body from spamd. Find out which milter is being used and whether it can be configured to add the headers you need. Regards, -sm
Re: X-Spam-Status does not appear in mail header
Hi, many thanks for your answer. Find out which milter is being used and whether it can be configured to add the headers you need. the milter I'm using is spamass-milter-0.3.1 from pkgsrc, too. I used it under Debian, and it did not need any further configuration. Regards, Marianne -- Die einen nennen es 'Zensur', die anderen 'regular expression'.
Re: X-Spam-Status does not appear in mail header
Hi Marianne, At 12:34 25-03-2008, Marianne Spiller wrote: the milter I'm using is spamass-milter-0.3.1 from pkgsrc, too. This milter can use the message body returned by spamd, including the rewritten headers. I used it under Debian, and it did not need any further configuration. The startup parameters may be different. Verify what spamass_milter_flags settings used in rc.conf to start the milter. Regards, -sm