Need help properly configuring squirrelmail with postfix

Posted on 2009-02-09
Last Modified: 2013-11-10
I just set up a new install of postfix on Ubuntu Intrepid. I believe it is set up correctly. Users are able to send and recive mail fine.

I also set up squirrelmail on the same server, but anything coming via squirrelmail is getting tagged as spam when we send between schools (Almost all mail destined for our schools runs through our mailscanner with spamassassin). Headers when using squirrelmail look like this:
Received: from ( [])
     by (Postfix) with ESMTP id B2520136139
     for <>; Mon, 9 Feb 2009 15:18:58 -0600 (CST)
Received: from ( [])
     by (Postfix) with ESMTP id AEB72621A5
     for <>; Mon, 9 Feb 2009 15:18:58 -0600 (CST)
Received: from
(SquirrelMail authenticated user admin)
by with HTTP;
Mon, 9 Feb 2009 15:18:58 -0600 (CST)
Message-ID: <28e463676fe39a1d67f29ac5afcbe818.squirrel@>
Date: Mon, 9 Feb 2009 15:18:58 -0600 (CST)
Subject: 5
User-Agent: SquirrelMail/1.4.15
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)

All mail is being marked as spam by the following rules:

ached not  
3 required  
-2.60 BAYES_00 Bayesian spam probability is 0 to 1%
1.91 RCVD_ILLEGAL_IP Received: contains illegal IP address
2.07 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO

I need to know what to shange in squirrelmail, apache, or postfix that will fix this issue.
Question by:tamray_tech
    LVL 4

    Accepted Solution

    There's nothing wrong with SquirrelMail. Your SpamAssassin rules however are triggering on the IP address in the headers. Try using editing your /etc/hosts file, and change this: mail localhost.localdomain localhost

    to localhost.localdomain localhost mail

    That will fix the headers. Or change your spamassassin rule. Since this is a school district, you may consider using a more accurate managed anti-spam service, which typically has a better ROI. I highly recommend:

    Author Closing Comment

    That worked. Thanks for the anti-spam solution. Mailscanner with spamassassin has worked very well for us. We scan for spam and send it to each school. They have the flexibility to scan with other solutions to check for spam we might miss, but we take the first hit, so they don't have to.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Getting postfix to support IPv6 is a relatively simple matter (when you know how - or - have read this Article). First of all you must ensure that your server has IPv6 connectivity to the Internet. By default postfix will listen only on IPv4, …
    Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
    Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
    Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now