Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th January 2007, 11:50
james@thereidsonline.com james@thereidsonline.com is offline
Junior Member
 
Join Date: Nov 2006
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default Squirrelmail with Server Side Filtering

Hi,

Has anyone manged to get the Squirrelmail Server Side Filtering plugin working?

I've followed the instructions that come with the package, but get a blank page when I try to enter Options -> Mail Filters within Squirrelmail (suspect it is either a permission or config issue)

Thanks!
James.
Reply With Quote
Sponsored Links
  #2  
Old 8th January 2007, 22:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Are there any errors in your logs? Do you use Squirrelmail on port 80 or 81?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 9th January 2007, 20:12
james@thereidsonline.com james@thereidsonline.com is offline
Junior Member
 
Join Date: Nov 2006
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Falko,

I think my core problem is that I have not got it configured correctly.

Below is my config.php:

Code:
<?php

/**
  * SquirrelMail Serverside Filter Plugin
  * Copyright (c) 2000-2005 Patrick Swieskowski, Rick Sheaffer, Jon Stroud,  
  *                         Tony Lownds, Paul Lesneiwski
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * @package plugins
  * @subpackage serversidefilter
  *
  *   This config file controls how your filter files will be generated
  *   All variables that ask for a path can use the following constructs:
  *      [USERNAME]  = will get replaced with the actual username of the
  *                    person logged in
  *      [DOMAIN]    = will get replaced with the email domain name
  *      [DOMUSER]   = in a virtual domain setting, this gets replaced
  *                    with the system user that owns the virtual domain.
  *
  */


global $ALWAYS_CREATE, $FILTER_APP_PATH, $DEFAULT_DELIVERY,
       $ALLOW_UNSUBSCRIBED, $SPAMFILTER, $SPAMHEADER, $SPAMFILTERMAXKB, 
       $SPAMVALUE, $UNSUREVALUE, $VIRTUAL_DOMAINS, $LOCAL_MAILDIR, $USE_LDAP,
       $USE_MAILDIRS, $SEPERATOR, $USE_MYSQL, $USE_SPECIAL_SPAM_FILTER_RULE;



// Setting this value to true will create a filter file when
// the user logs in if they do not already have one.  This is
// useful if you want to have SpamAssassin run from a filterfile
// but the user has not setup mail filters.
//
$ALWAYS_CREATE = false;
                


// This is the full path to the filter files.  Note that this
// must be set to the same value as $FILTER_FILE_NAME when 
// using database lookups (see below).
//
//$FILTER_FILE_PATH = '/home/email/[DOMUSER]/users/[USERNAME]/.procmailrc';
//$FILTER_FILE_PATH = '.mailfilter';
//$FILTER_FILE_PATH = '/home/email/[DOMUSER]/users/[USERNAME]/.mailfilter';
$FILTER_FILE_PATH = '/var/www/www.[DOMAIN]/user/[USERNAME]/.procmailrc';



// This is the expected name of filter files stored in the user's
// home directory (the path to which is stored in a database backend).
//
$FILTER_FILE_NAME = '.procmailrc';
//$FILTER_FILE_NAME = '.mailfilter';



// This is the full path of the filter application you use.
// Supported filter apps are:
//   procmail
//   maildrop
//
$FILTER_APP_PATH = '/usr/bin/procmail';
//$FILTER_APP_PATH = '/usr/local/bin/maildrop';



// If you would like to include a default delivery method in your
// filter files, include that here.  If you do not want a default
// delivery method, comment this line out.  Some virtual domain
// implementations may require this.
//
//$DEFAULT_DELIVERY = '| forward'; //use command "forward" to deliver message
$DEFAULT_DELIVERY = '$MAILDIR';    //deliver to the Inbox



// Uncomment the following line to allow filtering to unsubscribed 
// mailboxes.  Comment line out to disable to only allow filtering 
// to subscribed mailboxes.
//
$ALLOW_UNSUBSCRIBED = true;



// If you use a spam filter like SpamAssassin and would like to enable
// it and filter based on a spam header, set this to the location of the
// spam filter, otherwise comment out.
//
//$SPAMFILTER= '/usr/bin/sb_filter.py';
//$SPAMHEADER = 'X-SpamBayes-Classification';
//$SPAMVALUE = 'spam';
//$UNSUREVALUE = 'unsure';

//$SPAMFILTER = '/usr/bin/spamc -u [USERNAME]';
//$SPAMHEADER = 'X-Spam-Flag';
//$SPAMVALUE = 'YES';


        
// Limits messages sent through the spam filter to be below this
// size (in kilobytes). Set to 0 if you do not want any limit.
//
$SPAMFILTERMAXKB = 256;



// If you run a Spam tagging tool such as SpamAssassin from another
// location (such as amavis, etc.), but would still like the special
// spam filter included with this plugin, make sure $SPAMFILTER above 
// is commented out but that $SPAMHEADER and $SPAMVALUE (and optionally
// $UNSUREVALUE) are correctly configured and set this to 1.  If you 
// are using the $SPAMFILTER setting above, you should leave this 
// turned off.
//
$USE_SPECIAL_SPAM_FILTER_RULE = 0;



// Set the path to the Maildir here.  This is used in the filter
// file itself. 
//
//$LOCAL_MAILDIR = '$HOME/Maildir/';         // This would be a good example for a 
                                             // standard email setup
$LOCAL_MAILDIR = '$HOME/user/[USERNAME]/';  // This example is compatible with 
                                             // vmailmgr virtual domains 
//$LOCAL_MAILDIR = '$DEFAULT/';              // In many cases, Maildrop's $DEFAULT
                                             // environment variable already points
                                             // to the Maildir



// Set this to 1 if your mailbox uses maildirs, set to 0 for mbox style mailboxs
// 
$USE_MAILDIRS = 1;



///////////////////////////////////////////////////////////////////////////
//
// VIRTUAL DOMAIN SETTINGS
//


// Set this to 1 if you host virtual domains and have virtual users
// (but *NOT* if you will be using database lookups (see below))
//
$VIRTUAL_DOMAINS = 0;



// Character that seperates username from domain name
//
$SEPERATOR = '@';



// Plugin will create appropriate .qmail or .forward file 
// for your filter application if these variables are defined.
// Comment these lines out if you do not wish to have forward 
// files created
// Note that the path name should be identical to the file name
// when using database lookups (see below)
//
$FORWARD_FILE_TYPE = "qmail";
//$FORWARD_FILE_TYPE = "forward";
$FORWARD_FILE_PATH = "/home/email/[DOMUSER]/.qmail-[USERNAME]";
$FORWARD_FILE_NAME = ".qmail-[USERNAME]";



// Set this to 1 if your user information (UID, GID, home directory)
// is stored in a MySQL database.  You also need to configure two
// other files to use MySQL user lookups:
//
//   serversidefilter/script/serversidefilter_mysql.conf
//   serversidefilter/script/Makefile
//
// If you use this setting, please make sure that $VIRTUAL_DOMAINS
// is set to zero!
//
$USE_MYSQL = 0;



// Set this to 1 if your user information (UID, GID, home directory)
// is stored in a LDAP database.  You also need to configure two
// other files to use LDAP user lookups:
//
//   serversidefilter/script/serversidefilter_ldap.conf
//   serversidefilter/script/Makefile
//
// If you use this setting, please make sure that $VIRTUAL_DOMAINS
// is set to zero!
//
$USE_LDAP = 0;



///////////////////////////////////////////////////////////////////////////
//
// VACATION FILE SETTINGS
//


// These are used to manage vacation type RC Files
//
// Note that no path should be given here (just the 
// file name) when using database lookups (see above)
//
$VAC_MSG_FILE_PATH = "vacation.txt";
$VAC_SUBJ_FILE_PATH = "vacation_subject.txt";
$VAC_CC_FILE_PATH = "vacation_cc_addresses.txt";
$VAC_KEEP_FILE_PATH = "vacation_keep_messages.txt";



?>
I suspicious in particularly of whether I've got the $FILTER_FILE_PATH set correctly, but can't see how to actually test it without just making small changes and retesting over and over again!

I suspect that I have currently got quite a few options wrong in this file, but don't know enough to know how it should really be set.

Thanks for your help!

James.
Reply With Quote
  #4  
Old 10th January 2007, 17:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Do you use Squirrelmail on port 80 or 81?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 11th January 2007, 00:28
james@thereidsonline.com james@thereidsonline.com is offline
Junior Member
 
Join Date: Nov 2006
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I am using it on port 80 - set up a separate site just for squirrelmail.
Reply With Quote
  #6  
Old 11th January 2007, 20:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
 
Default

Then check your main Apache's error log for errors. Should be in /var/log/apache2 or /var/log/httpd or something like this.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php Apps email not going through palkat General 8 21st September 2011 05:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30
Can the squirrelmail webserver different then email server? ejkeebler Server Operation 2 4th November 2005 19:28


All times are GMT +2. The time now is 06:07.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.