Discussion:
enabable x-spam-report in all emails ham or spam
(too old to reply)
Matthew Lenz
2005-09-24 23:36:53 UTC
Permalink
is it possible to enable the addition of the x-spam-report in all emails?

-matt
Matt Kettler
2005-09-24 23:59:31 UTC
Permalink
Post by Matthew Lenz
is it possible to enable the addition of the x-spam-report in all emails?
-matt
Well, there is no "X-Spam-Report" header made by SA's default configuration.
By default SA does add X-Spam-Status to all messages, which would include the
score and list of rules that hit.

However, in general all you'd need to do is modify the "add_header spam Report
..." command to use "all" instead of "spam".


Of course, that's assuming your X-Spam-Report header is being made by SA. If
you're using an integration tool like MailScanner, qmail or Mimedefang you may
have to change their configuration, not SA.

Post some more details about your configuration if you're still having problems.
Matthew Lenz
2005-09-25 00:38:49 UTC
Permalink
----- Original Message -----
From: "Matt Kettler" <***@evi-inc.com>
To: "Matthew Lenz" <***@nocturnal.org>
Cc: <***@spamassassin.apache.org>
Sent: Saturday, September 24, 2005 6:59 PM
Subject: Re: enabable x-spam-report in all emails ham or spam
Post by Matt Kettler
Post by Matthew Lenz
is it possible to enable the addition of the x-spam-report in all emails?
-matt
Well, there is no "X-Spam-Report" header made by SA's default
configuration.
huh? it addes it to spam by default

X-Spam-Status: Yes, score=6.4 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DSBL,
RCVD_IN_XBL,URIBL_SBL,URIBL_WS_SURBL autolearn=no version=3.0.3
X-Spam-Report:
* 0.0 HTML_MESSAGE BODY: HTML included in message
* 2.8 RCVD_IN_DSBL RBL: Received via a relay in list.dsbl.org
* [<http://dsbl.org/listing?218.234.40.38>]
* 2.5 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL
* [218.234.40.38 listed in sbl-xbl.spamhaus.org]
* 0.6 URIBL_SBL Contains an URL listed in the SBL blocklist
* [URIs: grounansho.com]
* 0.5 URIBL_WS_SURBL Contains an URL listed in the WS SURBL blocklist
* [URIs: grounansho.com]

unless thats my imagination
Post by Matt Kettler
By default SA does add X-Spam-Status to all messages, which would include
the
score and list of rules that hit.
yep sure does.
Post by Matt Kettler
However, in general all you'd need to do is modify the "add_header spam
Report
..." command to use "all" instead of "spam".
what is "..." ? add_header all Report doesn't do squat.
Post by Matt Kettler
Of course, that's assuming your X-Spam-Report header is being made by SA.
If
you're using an integration tool like MailScanner, qmail or Mimedefang you
may
have to change their configuration, not SA.
i gave you everything.. yes i'm only using SA and sending mail through spamc
using procmail. i don't have it encapsulate spams by default. by putting
report_safe 0 in my local.cf
Post by Matt Kettler
Post some more details about your configuration if you're still having
problems.
jdow
2005-09-25 02:30:45 UTC
Permalink
Post by Matthew Lenz
Post by Matt Kettler
Post by Matthew Lenz
is it possible to enable the addition of the x-spam-report in all
emails?
-matt
Well, there is no "X-Spam-Report" header made by SA's default
configuration.
huh? it addes it to spam by default
Can't be done acto the docs. The X-Spam-Report header is only added to
spam. How it is added is handled by the report_safe option.

If you want this for testing then use "spamassassin -t". If you want
it for everybody then you cannot use spamc/spamd. You'd need to use
spamassassin itself and add the -t option explicitly.

Please RTFM, "man Mail::SpamAssassin::Conf", for more details.
{^_^}
Keith Amling
2005-09-25 06:33:23 UTC
Permalink
Post by Matthew Lenz
is it possible to enable the addition of the x-spam-report in all emails?
I note

$self->{headers_spam}->{"Report"} = "_REPORT_";

in Conf.pm which amounts to the configuration

add_header spam Report _REPORT_

I wanted the exact same thing you want and

add_header all Report _REPORT_

has worked perfectly for me. YMMV, esp. wrt. report_safe.
Post by Matthew Lenz
-matt
Keith
Matthew Lenz
2005-09-25 07:12:53 UTC
Permalink
works perfectly. thanks dude!

-Matt

----- Original Message -----
From: "Keith Amling" <***@uiuc.edu>
To: <***@spamassassin.apache.org>
Sent: Sunday, September 25, 2005 1:33 AM
Subject: Re: enabable x-spam-report in all emails ham or spam
Post by Keith Amling
Post by Matthew Lenz
is it possible to enable the addition of the x-spam-report in all emails?
I note
$self->{headers_spam}->{"Report"} = "_REPORT_";
in Conf.pm which amounts to the configuration
add_header spam Report _REPORT_
I wanted the exact same thing you want and
add_header all Report _REPORT_
has worked perfectly for me. YMMV, esp. wrt. report_safe.
Post by Matthew Lenz
-matt
Keith
jdow
2005-09-25 07:29:43 UTC
Permalink
Post by Keith Amling
Post by Matthew Lenz
is it possible to enable the addition of the x-spam-report in all emails?
I note
$self->{headers_spam}->{"Report"} = "_REPORT_";
in Conf.pm which amounts to the configuration
add_header spam Report _REPORT_
I wanted the exact same thing you want and
add_header all Report _REPORT_
has worked perfectly for me. YMMV, esp. wrt. report_safe.
Fascinating the man page seems to indicate this is not one of the options
for add_header. They mention other headers but not "Report". I guess you
found a cheat.

{^_^}
Loren Wilton
2005-09-25 12:22:42 UTC
Permalink
Post by Matthew Lenz
is it possible to enable the addition of the x-spam-report in all emails?
Depends on what you are using to integrate SA. If you are using spamd, yes.
Some of the other tools that make their own headers, no.

Loren
Keith Amling
2005-09-27 06:42:20 UTC
Permalink
Post by jdow
Fascinating the man page seems to indicate this is not one of the options
for add_header. They mention other headers but not "Report". I guess you
found a cheat.
What is not one of the options? 'add_header', 'all', and '_REPORT_' are all
mentioned directly in the perldoc for Conf. How is my suggestion a 'cheat'?
Post by jdow
{^_^}
Keith
jdow
2005-09-27 10:56:22 UTC
Permalink
Post by Keith Amling
Post by jdow
Fascinating the man page seems to indicate this is not one of the options
for add_header. They mention other headers but not "Report". I guess you
found a cheat.
What is not one of the options? 'add_header', 'all', and '_REPORT_' are
all
mentioned directly in the perldoc for Conf. How is my suggestion a
'cheat'?
Post by jdow
{^_^}
I was looking for "Report" in and around "add_header" on the 3.04 docs
I have here.
{^_^}
Matt Kettler
2005-09-28 20:34:34 UTC
Permalink
Post by Keith Amling
Post by jdow
Fascinating the man page seems to indicate this is not one of the options
for add_header. They mention other headers but not "Report". I guess you
found a cheat.
What is not one of the options? 'add_header', 'all', and '_REPORT_' are all
mentioned directly in the perldoc for Conf. How is my suggestion a 'cheat'?
All the options are documented, and using one configuration option to over-ride
another is also documented.

However, using a configuration option to over-ride a hard-coded setting from
Conf.pm, is definitely NOT documented.

The fact that it depends on the specific, and undocumented, way the developers
chose to implement adding the header for report_safe 0 makes it a cheat.

I wouldn't say it's a particularly egregious cheat, but it's certainly not
documented. It's just taking advantage of the fact that the developers
(sensibly) made use of existing functionality to do this.

Loading...