IMAP4 authenticator for Squid Copyright (C) 2008 Quixotech Systems, LLC This program is based on the following program: POP3 authenticator for Squid Copyright (C) 2006 Henrik Nordstrom (ships with Squid as a basic authentication helper) Description: This program allows Squid web cache proxy users to authenticate against an IMAP4 server. The program is designed to do very simple authentication using LOGIN over cleartext IMAP4. It should be easy enough to modify to support other authentication methods, provided they are supported by Mail::IMAPClient. Being able to use IMAPS would be very nice, but I don't need to do that right now. Feel free to take that as an exercise for the reader ;-) Usage: This authenticator is similar to other basic authenticators (like NCSA and POP3) that come with Squid. Here is the relevant part from squid.conf: auth_param basic program So, for example: auth_param basic program /usr/libexec/imap4.pl 192.168.2.220 where /usr/libexec/imap4.pl is where is program is located and 192.168.2.220 is the IP of the IMAP server to be used for authentication. Dependencies: Squid (I suppose you could use it with other applications) Perl (tested with 5.8.4 ) - Mail::IMAPClient (tested with version 3.04 from CPAN) IMAP server (ummm... anyway, tested with UW-IMAP) Revision History: 2008-02-11 Robert M. Kettles Initial revision License: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.