Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-30-2012, 02:11 PM   #1
LQ Newbie
Registered: Aug 2006
Posts: 18

Rep: Reputation: 0
squid3 and SpamBayes

I'm testing squid3 to see if I can upgrade from squid2, primarily for the c-icap/squidclamav capabilities. The system is Debian Wheezy fully updated. I've already found workarounds for the ipv6 problems that plague Debian's squid3 ver. 3.1.19.

The one problem I have been unable to circumvent is accessing the web interface of SpamBayes pop3 proxy. SpamBayes resides on a different host than squid3, but both are behind the firewall. When attempting to access SpamBayes web interface, the squid error page appears stating "zero sized reply". This occurs regardless of whether I use the host's alias, its real hostname, or its IP address. The port on which Spambayes' web interface runs is a squid safe port. Other services with web interfaces on the same host as SpamBayes(e.g. CUPS), are readily accessible. If SpamBayes is installed on the squid3 host, the web interface is then accessible.

So, with all this trial and error, the problem appears to be SpamBayes when installed on a host remote to squid3. All other permutations work. I do not have this problem with squid2.

Can any squid expert diagnose the problem here? Any help is greatly appreciated.
Old 04-04-2012, 01:22 PM   #2
LQ Newbie
Registered: Aug 2006
Posts: 18

Original Poster
Rep: Reputation: 0
squid3 and SpamBayes [solved]

The solution was to use the always_direct and never_direct options to have squid allow bypassing directly to localnet servers. There are several ways to make this work. Using the recommended method - which I assume is the most secure - the following worked.

acl localnet src

always_direct deny !localnet
always_direct allow localnet
never_direct allow all


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid3 Proxy esigande Linux - Newbie 13 12-20-2011 02:02 AM
squid3 for debian romazetiawan Linux - Software 1 04-15-2011 12:28 AM
squid2 or squid3 ? cccc Linux - Server 2 10-06-2008 01:23 PM
squid3 use only RAM xxxx Linux - Server 0 09-16-2008 03:44 AM
LXer: Defeat spam with SpamBayes LXer Syndicated Linux News 0 05-05-2006 11:03 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration