LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2005, 08:47 PM   #1
Redleg
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora
Posts: 24

Rep: Reputation: 16
Squirrelmail and Spamassassin, SAConf problem


I am using Squirrelmail and would like to give mail users easy access to Spamassasin settings. I found SAConf at the squirrelmail site, which will do what I am looking to do.

The probelm is I can activate the SAConf module in Squirrelmail and the link becomes available to configure spam settings. However, the resulting page is blank.

The readme for the SAConf module states that FTP support needs to be activeated in PHP. This is the only thing in the documentation that I do not understand so this may be this issue. Googleing combonations of FTP, support, and PHP provide many unrelated pages.

Does anyone reconize this issue with SAConf for Squirrelmail and Spamassasin?
 
Old 11-13-2005, 07:31 AM   #2
lchavez
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
I believe that you just need to set the allow_url_fopen setting in your php.ini to "On". That will allow php to go out and open remote files via http and ftp.
 
Old 11-13-2005, 09:00 PM   #3
Redleg
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora
Posts: 24

Original Poster
Rep: Reputation: 16
Thank you for that setting - it is on (allow_url_fopen = on in php.ini), so that must not be the issue.

I did try putting "echo" statements in lines of code to see where it blows up. It looks like the very first line.

Squirrelmail does not have a src/validate.php - it is actually include/validate.php - but pointing it to the new location has no effect - if I put an echo statement after the first "require_once" line it will not display. Therefore, the problem is either in validate.php or how this is pointing to it? I have tried some variations such as "include/validate.php" and commenting out the initial chdir(".."); line. As it is defined now though, it should point correctly as is, if I am reading the code right (jump up a directory, then jump up another and decend into the 'include' directory, then access validate.php). Original code is below.

looks like SAConf is an old project - maybe Squirrelmail changed too much for this to fit anymore? I am not familiar with PHP and my programming experience is limited to making toys in VB

Is there another front-end for Spamassassin that would use the users .spamassassin files in thier home directories? I have tried a webuserprefs program that also gives a blank page (grrrr)

I have been able to takle most problems I have armed with google and some documentation, but this thing has me totally stumped.

Code:
<?php

/*
 *	SAConf - SpamAssassin configuration plugin for SquirrelMail
 *	By the author of the software
 */

	chdir('..');
	require_once('../src/validate.php');
	require_once('../functions/page_header.php');
	require_once('../functions/imap.php');
	require_once('../src/load_prefs.php');
	require_once('../plugins/saconf/saconf_conf.php');
 
Old 11-23-2005, 10:21 AM   #4
Redleg
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora
Posts: 24

Original Poster
Rep: Reputation: 16
One final bump, I am fiddleing with webuserprefs (I no longer belive I can get SAConf to work )and can get it to authenticate via squirrelmail, which is progress, but it states that the user_prefs file is no available. I am sure that this is permissions related, but even setting (temporarily) permissions in /home/(username)/.spamassassin/user_prefs to 777 gives the same error.
 
Old 11-24-2005, 07:39 PM   #5
Redleg
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora
Posts: 24

Original Poster
Rep: Reputation: 16
I was told about the software package Usermin, which is a component of Webmin. The setup of Usermin was quite simple, Webmin did the install in the Usermin module by simply clicking the link to it. If you do not have Usermin installed Webmin offers to do the install for you. The users simply log in with thier username/password and they can access the Spamassassin module to changer thier settings there. This does everything I am looking to do as far as giving my users control over thier Spamassassin settings. There are other modules in Usermin that can be very usefull as well, so this was a great find.

I mention it here only to provide a solution to anyone searching for help with this problem.

Last edited by Redleg; 11-24-2005 at 07:40 PM.
 
  


Reply



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
Squirrelmail problem ? BengtOlof Linux - Newbie 1 06-16-2005 02:01 AM
SquirrelMail SACONF error... and SA ?? latino Linux - Software 7 08-19-2004 06:12 PM
SquirrelMail problem htic22 Linux - Software 0 04-27-2004 07:46 AM
Problem with squirrelmail gallet Linux - Software 0 08-04-2003 06:09 PM
SquirrelMail Problem lelrod Linux - Software 2 02-04-2003 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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