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 2nd April 2008, 13: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
The Following User Says Thank You to jancici For This Useful Post:
jonwatson (15th September 2008)
Sponsored Links
  #2  
Old 2nd April 2008, 14:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,037
Thanks: 841
Thanked 5,659 Times in 4,466 Posts
Default

Did you switch to clamd already? In most cases, the load is caused by clamsacn and not spamasassin.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 2nd April 2008, 14:47
jancici jancici is offline
Junior Member
 
Join Date: Mar 2008
Posts: 11
Thanks: 0
Thanked 4 Times in 3 Posts
Default

well, I did disabled antivirus scan for all users already. to be sure I will check that.

I have done this update in DB
Code:
update isp_isp_user set status='u',antivirus=0,user_spamfilter=1;
yes, user can switch on antivirus scan on web. but this is not hapend often. usualy they have antivirus on their PC.
Reply With Quote
  #4  
Old 3rd April 2008, 20:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Run
Code:
touch /home/admispconfig/ispconfig/.run
to make the backend start rewrite the configuration.
__________________
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 3rd April 2008, 22:16
jancici jancici is offline
Junior Member
 
Join Date: Mar 2008
Posts: 11
Thanks: 0
Thanked 4 Times in 3 Posts
Default

that TOUCH is not helping to me

so I am starting SPAMD in script rl.local
Code:
cat /etc/rc.local
/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamd -d --max-children=2

exit 0
I did find out that modification of file
Code:
ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php
is not good idea.

so I did modified only file
Code:
ispconfig/isp/conf/spamassassin.rc.master
and this is my change
Code:
:0fw
* < 156000
# me | {SPAMASSASSIN_PATH} --prefs-file={PREFS_FILE}
| /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamc
Reply With Quote
  #6  
Old 2nd May 2008, 11:01
vogelor vogelor is offline
ISPConfig Developer
 
Join Date: Jan 2007
Location: Wernau, Germany
Posts: 219
Thanks: 42
Thanked 34 Times in 24 Posts
Default install the spamc of the os

as i know right, ispconfig is NOT using or starting the spamd daemon.
for me (at debian) this solution works fine:


1) aptitude install spamassassin (to install the version of my os)

2) change /root/ispconfig/isp/conf/spamassassin.rc: | /usr/bin/spamc

3) update isp_isp_user set status='u' where status ) '';

4) change anything inside one user (to rewrite the files)

after this, everything works fine
__________________
Der neue Luxus heißt Zeit, nicht Geld!

Firma : http://www.muv.com, http://www.computerandservice.de
Privat : http://www.vogelor.de
Reply With Quote
  #7  
Old 12th May 2008, 15:19
daff daff is offline
Junior Member
 
Join Date: Mar 2008
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I have a Debian Etch System .I installed spamassassin with apt-get and enabled it. I changed the path in /root/ispconfig/isp/conf/spamassassin.rc.master (/root/ispconfig/isp/conf/spamassassin.rc doesn't exist on my sys). I also updated the db and changed a usersetting. But I doen't get it running (spams aren't scanned anymore). What's my fault?

Last edited by daff; 12th May 2008 at 15:53.
Reply With Quote
  #8  
Old 13th May 2008, 15:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Any errors in your logs?

What's the output of
Code:
spamassassin --lint
?
__________________
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
  #9  
Old 13th May 2008, 18:32
daff daff is offline
Junior Member
 
Join Date: Mar 2008
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I think I fixed it already. I changed in /root/ispconfig/isp/conf/spamassassin.rc.master
Code:
| {SPAMASSASSIN_PATH} --prefs-file={PREFS_FILE}
to
Code:
| /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamc
I hope what is right.
Reply With Quote
  #10  
Old 14th May 2008, 17:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
 
Default

You should copy /root/ispconfig/isp/conf/spamassassin.rc.master to /root/ispconfig/isp/conf/customized_templates/spamassassin.rc.master to make sure this template won't be overwritten when you update ISPConfig.
__________________
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
Spamd/Spamc configuration with latest version Fruchtzwerg Installation/Configuration 13 7th November 2008 09:43
mod_security breaking ispc rickconn Installation/Configuration 1 7th August 2007 11:28
logcheck trouble with spamd Ovidiu Server Operation 0 24th April 2007 20:58
clamav spamassassin with simscan @ debian Shamael Anwar Installation/Configuration 2 15th December 2006 21:06
Sometimes ISPC hangs up tom Installation/Configuration 3 24th April 2006 21:34


All times are GMT +2. The time now is 00:12.


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