On 1/7/2014 8:29 AM, Mark Chaney wrote:
I am using spamassassin standalone and I am trying to figure out how to
duplicate this format that I would normally get from my servers that
user amavis or mailscanner. How can I get a format like so? Ive read the
manual, but havent really figured it out. I also have no use for the
spam-checker-version

X-Spam-Flag: YES
X-Spam-Score: 14.176
X-Spam-Level: **************
X-Spam-Status: Yes, score=14.176 tagged_above=-10 required=5
        tests=[AWL=-1.500, BAYES_95=4.5, DATE_IN_PAST_06_12=1.543,
        HTML_MESSAGE=0.001, KAM_SOLAR=3.5, MIME_HTML_MOSTLY=0.428,
        MPART_ALT_DIFF=0.79, NUMERIC_HTTP_ADDR=1.242, RDNS_NONE=0.793,
        SO_RDNS_UNKNOWN=0.35, SPF_HELO_SOFTFAIL=0.732, SPF_SOFTFAIL=0.665,
        T_REMOTE_IMAGE=0.01, URI_HEX=1.122] autolearn=no

Right now I just get:

X-Spam-Status: No, score=3.3 required=5.0 tests=EMPTY_MESSAGE,SPF_FAIL,
        T_RP_MATCHES_RCVD autolearn=no
X-Spam-Level: ***
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
mx4.example.com

That format is generated by Amavis. SA will generate a more verbose header in messages marked as spam.

For example:

X-Spam-Status: Yes, score=7.7 required=4.0 tests=BAYES_99,DCC_CHECK,
    DIGEST_MULTIPLE,RAZOR2_CHECK,RP_MATCHES_RCVD,URIBL_DBL_SPAM
    autolearn=disabled version=3.3.2
X-Spam-Report:
    *  4.0 BAYES_99 BODY: Bayes spam probability is 99 to 100%
    *      [score: 1.0000]
* -0.3 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
    *  1.7 URIBL_DBL_SPAM Contains an URL listed in the DBL blocklist
    *      [URIs: ********.com]
    *  1.1 DCC_CHECK Detected as bulk mail by DCC (dcc-servers.net)
    *  0.9 RAZOR2_CHECK Listed in Razor2 (http://razor.sf.net/)
    *  0.3 DIGEST_MULTIPLE Message hits more than one network digest check

If you want this report on all messages, you can add the following line to your local.cf or user_prefs file:

add_header all Report _REPORT_

--
Bowie

Reply via email to