Big subject line but what the heck.

When I send email from SquirrelMail to friends who use spamassassin
it gets marked as spam.

Example:
(IPs and usernames xed out to protect my interests)

Content analysis details:   (5.4 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 2.0 RCVD_IN_SORBS          RBL: SORBS: sender is listed in SORBS
                            [xx.xx.xx.xxx listed in dnsbl.sorbs.net]
 2.5 RCVD_IN_DYNABLOCK      RBL: Sent directly from dynamic IP address
                            [xx.xx.xx.xxx listed in dnsbl.sorbs.net]
 0.8 PRIORITY_NO_NAME       Message has priority setting, but no X-Mailer

Ok why is this happening?

Taken from headers:
Received: from xx.xx.xx.xxx
        (SquirrelMail authenticated user xxxxx)
        by xxxx.xxxxxxxxxx.com with HTTP;
        Wed, 7 Apr 2004 11:53:12 -0400 (EDT)

The recieved header states it is coming from my dynamic IP address.
That's no good.  Maybe future versions can have a configuration
option for this but I made a quick kludge.


Quick kludge to fix:
(I am using 1.4.0 - will upgrade again when 1.5 is "stable")
in file ROOT/class/deliver/Deliver.class.php

I changed:

        $header = array();
        $header[] = "Received: from $received_from" . $rn;
        $header[] = "        (SquirrelMail authenticated user $username)" . $rn;
        $header[] = "        by $SERVER_NAME with HTTP;" . $rn;
        $header[] = "        $date" . $rn;


To:

        $header = array();
        $header[] = "X-Squirrel-Received: from $received_from" . $rn;
        $header[] = "        (SquirrelMail authenticated user $username)" . $rn;
        $header[] = "        by $SERVER_NAME with HTTP;" . $rn;
        $header[] = "        $date" . $rn;


This fixed the SORBS problem.
But what about the PRIORITY_NO_NAME spamassassin problem?

I changed:
        if ($rfc822_header->priority) {
            $prio = $rfc822_header->priority;
            $header[] = 'X-Priority: '.$prio. $rn;
            switch($prio)
            {
            case 1: $header[] = 'Importance: High'. $rn; break;
            case 3: $header[] = 'Importance: Normal'. $rn; break;
            case 5: $header[] = 'Importance: Low'. $rn; break;
            default: break;
            }
        }

To:
        if ($rfc822_header->priority) {
            $prio = $rfc822_header->priority;
            $header[] = 'X-Mailer: SquirrelMail '.$version;
            $header[] = 'X-Priority: '.$prio. $rn;
            switch($prio)
            {
            case 1: $header[] = 'Importance: High'. $rn; break;
            case 3: $header[] = 'Importance: Normal'. $rn; break;
            case 5: $header[] = 'Importance: Low'. $rn; break;
            default: break;
            }
        }


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to