View Single Post
  #1  
Old 2nd April 2008, 12:17
jancici jancici is offline
Junior Member
 
Join Date: Mar 2008
Posts: 11
Thanks: 0
Thanked 4 Times in 3 Posts
Default spamd / spamc with ISPc 2.2.21

because spamassassin is eating all resources of server and server load is more the 10. I am thinking to switch to spamd / spamc solution.

what do you think? can it help me? I did read few thread here and looks that it is better solution.

is it better to install distribution spamd/spamc package or to use those from ISPc ??

my idea is to use those from ISPc.

they are here:
Code:
ls -la /home/admispconfig/ispconfig/tools/spamassassin/usr/bin
-rwxr-xr-x 1 admispconfig admispconfig  21454 2008-02-27 16:12 sa-compile
-rwxr-xr-x 1 admispconfig admispconfig  42963 2008-02-27 16:12 sa-learn
-rwxr-xr-x 1 admispconfig admispconfig  46290 2008-02-27 16:12 sa-update
-rwxr-xr-x 1 admispconfig admispconfig  27704 2008-02-27 16:12 spamassassin
-rwxr-xr-x 1 admispconfig admispconfig  80507 2008-02-27 16:12 spamc
-rwxr-xr-x 1 admispconfig admispconfig 102502 2008-02-27 16:12 spamd
I am looking into ispconfig/isp/conf/spamassassin.rc.master because I want to change spamassassin to spamc as I did find out this in another thread.
Code:
:0fw
* < 256000
| {SPAMASSASSIN_PATH} --prefs-file={PREFS_FILE}
but you can see that there is variable SPAMASSASSIN_PATH

doing some grep I did find file ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php
Code:
if(is_file('/home/admispconfig/ispconfig/tools/spamassassin/usr/local/bin/spamassassin')){
    $spamassassin_path = '/home/admispconfig/ispconfig/tools/spamassassin/usr/local/bin/spamassassin';
  } else {
    $spamassassin_path = '/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin';
  }

  // Variablen zuweisen
  $mod->tpl->assign( array(PREFS_FILE => $web_path."/user/".$user_username."/.user_prefs",
                           SPAM_COMMENT => $spam_comment,
                           SPAMASSASSIN_PATH => $spamassassin_path,
                                                   USERNAME => $user_username));
OKAY, lets replace spamassassin with spamc
Code:
condition
if(is_file('/home/admispconfig/ispconfig/tools/spamassassin/usr/local/bin/spamc')){
first line
$spamassassin_path = '/home/admispconfig/ispconfig/tools/spamassassin/usr/local/bin/spamc';
second line
$spamassassin_path = '/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamc';
BUT question : who is starting that deamon ??
Code:
/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamd
what do you think? is my steps right?
please how to start spamd which is install by ISPc ?
Reply With Quote
Sponsored Links