[Mimedefang] (no subject)

Steffen Kaiser skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Tue Jan 20 02:15:29 EST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 20 Jan 2015, Francis Cabrera wrote:

> May I request for a help on how to remove  " SpamAssassinReport.txt "
> being always attached on my emails I am using axigen email systems. I
> already check mimedefang-filter.

You should ask your axigen support - it's commercial after all. This 
snippet adds the report only, if the SPAM score is above the configured 
required minimum limit.

> # Spam checks if SpamAssassin is installed
>    if ($Features{"SpamAssassin"}) {
>        if (-s "./INPUTMSG" < 100*1024) {
>            # Only scan messages smaller than 100kB.  Larger messages
>            # are extremely unlikely to be spam, and SpamAssassin is
>            # dreadfully slow on very large messages.
>            my($hits, $req, $names, $report) = spam_assassin_check();
>            my($score);
>            if ($hits < 40) {
>                $score = "*" x int($hits);
>            } else {
>                $score = "*" x 40;
>            }
>            # We add a header which looks like this:
>            # X-Spam-Score: 6.8 (******) NAME_OF_TEST,NAME_OF_TEST
>            # The number of asterisks in parens is the integer part
>            # of the spam score clamped to a maximum of 40.
>            # MUA filters can easily be written to trigger on a
>            # minimum number of asterisks...
>            if ($hits >= $req) {
>                action_change_header("X-Spam-Score", "$hits ($score) $names");
>                md_graphdefang_log('spam', $hits, $RelayAddr);
>
>                # If you find the SA report useful, add it, I guess...
>                action_add_part($entity, "text/plain", "-suggest",
>                                "$report\n",
>                                "SpamAssassinReport.txt", "inline");
>            } else {
>                # Delete any existing X-Spam-Score header?
>                action_delete_header("X-Spam-Score");
>            }
>        }
>    }

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBVL4AkVGgR0+MU/4GAQJUzggAjtkoeiQjDqLtm6Pqkt1tLvW/NZ8qIqrO
QbtMipon/uWmo3lnEQjLCkItkoZ/5j4LnIzUAPN0NJIeo9RK1YA/0MPStyrqWV1K
0/GhlTKQ0sDmGc10q/OrOkBloUx5VNb8rv4Rm6xHfxzHjlKgI5BGgn8jRK0Z8Nnv
LGLDnTaBK/jTT6dDBzYGJElB2WFidks2o4UGmGywMplzvtW0DiZjqijT5ZFUe8y1
zcNwV1upTPl96IEYLUpKdaAQyZtVBL0J6xQwx/gHndaob8jFLBdbJOwwYCEUDksL
+iWBz9iINscOJq9XUCLcZA0Ii81r0KBOz/hod35wNDTfaq9z/xuxMg==
=utqB
-----END PGP SIGNATURE-----



More information about the MIMEDefang mailing list