8.3. Comprobando el control de SPAM

En esta sección se va a enviar un correo con el contenido del archivo /usr/share/doc/spamc/sample-spam.txt para comprobar que Spamassassin está funcionando y lo hace de la forma correcta:

Ejemplo 8.2. Envío de un correo

$ /usr/bin/mail [email protected]
Subject: Prueba para el control antispam
This is the GTUBE, the
        Generic
        Test for
        Unsolicited
        Bulk
        Email

If your spam filter supports it, the GTUBE provides a test by which you
can verify that the filter is installed correctly and is detecting incoming
spam. You can send yourself a test mail containing the following string of
characters (in upper case and with no white spaces and line breaks):

XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

You should send this test mail from an account outside of your network.
.
Cc: [enter]

Ahora se muestra el correo recibido por el usuario severa:

Return-Path: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from localhost (localhost [127.0.0.1])
        by todoscsi.gsr.pt (Postfix) with ESMTP id 82F0548
        for <[email protected]>; Sun,  6 Jun 2004 16:01:41 +0100 (WEST)
Received: from todoscsi.gsr.pt ([127.0.0.1])
        by localhost (todoscsi [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id 05068-03 for <[email protected]>;
        Sun, 6 Jun 2004 16:01:37 +0100 (WEST)
Received: by todoscsi.gsr.pt (Postfix, from userid 1000)
        id 4B5D04B; Sun,  6 Jun 2004 16:01:37 +0100 (WEST)
To: [email protected]
Subject: ***SPAM*** Prueba para el control antispam 1 
Message-Id: <[email protected]>
Date: Sun,  6 Jun 2004 16:01:37 +0100 (WEST)
From: [email protected] (Sergio González González)
X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at gsr.pt
X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char E1 hex) in message header 'From'
        From: [email protected] (Sergio Gonz\341lez Gonz\341lez)\n ^
X-Spam-Status: Yes, hits=1000.0 tagged_above=4.0 required=6.3 tests=GTUBE  2 
X-Spam-Level: ****************************************************************  3 
X-Spam-Flag: YES  4 

This is the GTUBE, the
        Generic
        Test for
        Unsolicited
        Bulk
        Email

If your spam filter supports it, the GTUBE provides a test by which you
can verify that the filter is installed correctly and is detecting incoming
spam. You can send yourself a test mail containing the following string of
characters (in upper case and with no white spaces and line breaks):

XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

You should send this test mail from an account outside of your network.
1

Se puede comprobar que el asunto del correo ha sido modificado por Spamassassin; este ha considerado que el correo es SPAM y así lo marca en el asunto del correo.

2

El análisis del correo ha dado un valor de 1000.0, y como se puede comprobar, sólo hace falta un valor de 6.3 para considerar un correo como SPAM.

3

Dependiendo del nivel de SPAM, esta línea será más larga o más corta.

4

Esta cabecera indica que el correo es SPAM, por lo que puede ser utilizada para clasificar los correos desde su aplicación favorita.