LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-08-2003, 11:18 PM   #1
latino
Member
 
Registered: Aug 2003
Location: Puerto Rico
Distribution: Centos 6.6
Posts: 142

Rep: Reputation: 15
SquirrelMail SACONF error... and SA ??


Hi All:

I am receving this error when trying to access Spam Filter
Configuration Plugin. I installed into /usr/share/squirrelmail/plugins

The error I receive is:

Warning: main(../src/validate.php): failed to open stream: No such file or directory in /usr/share/squirrelmail/plugins/saconf/saconf_options.php on line 10

Fatal error: main(): Failed opening required '../src/validate.php' (include_path='.:/usr/local/lib/php') in /usr/share/squirrelmail/plugins/saconf/saconf_options.php on line 10

This makes me ask this: IT IS NOT NEEDED THE SACONF AT SQUIRRELMAIL WEB SERVER DIR? .. Is the first time I use the -ln command so I am somehow confused... I guess it is not required there.

ALSO, I am making some testing and Spamassassin is not working ( no inbound nor outbound). I created a procmailrc file with:
:0 fw
* < 256000
| /usr/bin/spam -f

at etc/

The spamd and other sa files are at /usr/bin/

I have tried sending the sample spam text to an user and through webmail the user have sent the spam and there seems zero intervention from spamassassin. I am sure it is a configuration error.

So I will appreciate any guidance to make sa filter both inbound and outbound mail.

Thanks



Last edited by latino; 08-08-2003 at 11:20 PM.
 
Old 08-08-2003, 11:33 PM   #2
latino
Member
 
Registered: Aug 2003
Location: Puerto Rico
Distribution: Centos 6.6
Posts: 142

Original Poster
Rep: Reputation: 15
K,

If i changed the src/validate dir that doesn't exist to include (conf_options.php) and for the loadprefs.php file too I get an error on line 41:
Warning: main(SM_PATHclass/mime.class.php): failed to open stream: No such file or directory in /usr/share/squirrelmail/include/validate.php on line 41

Fatal error: main(): Failed opening required 'SM_PATHclass/mime.class.php' (include_path='.:/usr/local/lib/php') in /usr/share/squirrelmail/include/validate.php on line 41

Could it be that saconf is not compatible with squirrelmail 1.4.1?

Later
 
Old 08-08-2003, 11:38 PM   #3
latino
Member
 
Registered: Aug 2003
Location: Puerto Rico
Distribution: Centos 6.6
Posts: 142

Original Poster
Rep: Reputation: 15
How I know what value SM_PATH have in a php script?
 
Old 08-09-2003, 12:03 AM   #4
latino
Member
 
Registered: Aug 2003
Location: Puerto Rico
Distribution: Centos 6.6
Posts: 142

Original Poster
Rep: Reputation: 15
Ok seems the problem is SM_PATH as:
http://www.geocrawler.com/archives/3...9/100/9557307/

Now, I pressume saconf is broken with SquirrelMail 1.4.1 at least here...

Will continue researching this...

Later

saconf plugin is outdated have tried replacing require_once with include_once and defining SM_PATH but now It goes into a blank page.... so I can't invest more time debuggin this....

Last edited by latino; 08-09-2003 at 01:06 AM.
 
Old 07-05-2004, 01:51 AM   #5
Mavantix
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Fixing saconf v1.0 to work with SquirrelMail v1.4.3a or v1.4.x?

Here's how I was able to get saconf v1.0 to work with the current (v1.4.3a) version of SquirrelMail:

At the top, under chdir('..'); add:

define('SM_PATH','../');

Then change the paths for validate.php and load_prefs.php from src to the includes directory (I guess they moved between versions):


//require_once('../src/validate.php');
require_once('../include/validate.php');

And:

//require_once('../src/load_prefs.php');
require_once('../include/load_prefs.php');

So, the fixed version will look something like this:


chdir('..');
define('SM_PATH','../');
//require_once('../src/validate.php');
require_once('../include/validate.php');
require_once('../functions/page_header.php');
require_once('../functions/imap.php');
//require_once('../src/load_prefs.php');
require_once('../include/load_prefs.php');
require_once('../plugins/saconf/saconf_conf.php');


Once that is saved, the saconf plugin should work fine with v1.4.3a.


Also, since I run spamc from .procmailrc on each user (I don't scan all users), I had to modifiy the following things to get it working:

The .procmailrc file was being transferred in FTP_ASCII mode, which causes a CR (^M DOS CRLF format) to be appended to the lines. That then causes spamc to not run. To fix that, I changed the ftp mode to FTP_BINARY on the ftp_put/get methods in the proc_get() and proc_get() functions. (around line 150 and 180)

Secondly, it was writing MAILDIR=(my users mail dir) to .procmailrc. Since I didn't need this. I fixed it with a simple hash comment on this line (around line 235):

fputs($nf, "MAILDIR=$MAILDIR # Default mail directory\n");

so it's:

fputs($nf, "#MAILDIR=$MAILDIR # Default mail directory\n");


Hope this helps someone!
 
Old 08-10-2004, 05:06 PM   #6
edlennon
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Rep: Reputation: 0
Thanks for above information. This solved one problem, but now I have another. Have you experienced the ftp process hanging randomly....and if so, have you found a way to get around it? During the "hang" process, you cannot browse to other pages on the site. Eventually the ftp session times out or something and frees up the browser. The hanging seems to happen when I click on the "Spam Filter Configuration" link on the options page of SQ 1.4.3a.

Thanks

Ed
 
Old 08-19-2004, 02:42 PM   #7
Mavantix
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
I haven't had any trouble with the FTP part. I'm using a mostly default setup of vsFTPd.

Try checking the following:

Username/password: The same username/password used to login to the imap server is the one it uses for the FTP. Make sure that user account can login to the local ftpd. It should probably default to the users home directory as well.

/etc/ftpusers (or vsftpd.ftpusers in my case): Make sure the user isn't blocked from logging into the ftp server.

Syslogs: Check them for error messages the ftp server may be throwing.

Hope that helps,

-Mav
 
Old 08-19-2004, 06:12 PM   #8
edlennon
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by Mavantix
I haven't had any trouble with the FTP part. I'm using a mostly default setup of vsFTPd.

Try checking the following:

Username/password: The same username/password used to login to the imap server is the one it uses for the FTP. Make sure that user account can login to the local ftpd. It should probably default to the users home directory as well.

/etc/ftpusers (or vsftpd.ftpusers in my case): Make sure the user isn't blocked from logging into the ftp server.

Syslogs: Check them for error messages the ftp server may be throwing.

Hope that helps,

-Mav
Thanks. I'll double check those settings and check the syslogs.
 
  


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 - ERROR : Connection dropped by imap-server. luca2005 Linux - Software 2 06-10-2008 06:25 AM
Squirrelmail and Spamassassin, SAConf problem Redleg Linux - Software 4 11-24-2005 07:39 PM
Silly squirrelmail error Jukas Linux - Software 9 05-11-2005 12:07 PM
Postfix 2.0 and squirrelmail 1.5.0 error when send mail ley Red Hat 0 07-09-2004 02:04 AM
error using squirrelmail in rh7.3 RAMILLY Linux - Distributions 0 09-09-2002 05:25 AM

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

All times are GMT -5. The time now is 10:10 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