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 15th May 2008, 15:09
zarrelli zarrelli is offline
Member
 
Join Date: Jul 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Spamassassin 100% CPU

Hi,

after a server crash I decided to install everyting from roots, so I installed a ISPConfig on a brand new Ubuntu Hardy server, following the "perfect server" setup.

Short after creating some new users, I lost the control of the server: 100% CPU, 100% memory, 100% swap. The most of the problem was due to the process "spamassassin" which was eating all the resources.

After rebooting the server, gained access to it and quickly disabled Postfix. Doing that, the load stepped down from the former 20 to 1,7 and I could then configure ISPConfig not to use SpamAssassin.

Well, not pleasant. I prefere to have all the emails, for all the hosted domains, filtered.

So, what can I do? And, how can I do to have filtering back at a fair load?

Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 16th May 2008, 15:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Take a look here: http://www.howtoforge.com/forums/sho...pamd+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
  #3  
Old 18th May 2008, 12:50
zarrelli zarrelli is offline
Member
 
Join Date: Jul 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No way,

I did

apt-get install spamassassin

changed /root/ispconfig/isp/conf/spamassassin.rc.master

:0fw
* < 256000
| /usr/bin/spamc
/root/ispconfig/isp/conf/spamassassin.rc.master

Then

touch /home/admispconfig/ispconfig/.run


But...

syslog:May 18 12:12:29 homeland spamd[23012]: Use of uninitialized value in numeric ge (>=) at /usr/lib/perl/5.8/DB_File.pm line 276.
syslog:May 18 12:12:29 homeland spamd[23012]: Use of uninitialized value in numeric gt (>) at /usr/lib/perl/5.8/DB_File.pm line 280.
syslog:May 18 12:12:29 homeland spamd[23012]: Deep recursion on subroutine "DB_File::AUTOLOAD" at /usr/lib/perl/5.8/DB_File.pm line 235.
root@homeland:/var/log# ls /root/isp

I'm using an ubuntu server hardy
Reply With Quote
  #4  
Old 18th May 2008, 14:29
zarrelli zarrelli is offline
Member
 
Join Date: Jul 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Look here what i found on a spam email header:

X-Virus-Status: Failed
X-Virus-Report: /home/admispconfig/ispconfig/tools/clamav/bin/clamdscan error 2
X-Virus-Checker-Version: clamassassin 1.2.4 with clamdscan / WARNING: Can't parse the configuration file..


What is wrong? Mail, obviously, don't get tagged as spam
Reply With Quote
  #5  
Old 19th May 2008, 16:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Please copy /root/ispconfig/isp/conf/spamassassin.rc.master to /root/ispconfig/isp/conf/customized_templates/spamassassin.rc.master. Afterwards, you must update all your users in ISPConfig so that the new template will be used to rewrite each user's spamassassin.rc file.
__________________
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
  #6  
Old 19th May 2008, 21:14
zarrelli zarrelli is offline
Member
 
Join Date: Jul 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did as you told, but the email stopped to fall in the user mailbox.

So, I tried to delete two users in that domain and recreate them:

I can't. It says the already exists, even if the do not appear in the user manager.

I did a grep
on

/etc/passwd, /home/admispconfig/ispconfig/users, /etc/postfix/virtusertabl

and they only appear in /etc/passwd.

Then I checked isp_isp_user table and I found them there, there is also their directory unders "users".

The recycle bin keeps telling me

"The system is currently updating the configuration files."

I modified some other users, rebooted ispconfig, rebooted the servers, but nothing. Any ideas?

Thanks
Reply With Quote
  #7  
Old 20th May 2008, 00:20
zarrelli zarrelli is offline
Member
 
Join Date: Jul 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well,

problem solved. After a while ISPConfig wrote the new configuration.

I enabled spamassassin and then...well...still 100% of resources eaten, even using clamscand, following the instructions found following the link you pointed me.

The processor of the server is quite fair:

rocessor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 55
model name : AMD Athlon(tm) 64 Processor 3700+
stepping : 2
cpu MHz : 2199.743
cache size : 1024 KB

and 2 GB of ram.

Any suggestions?

Thanks
Reply With Quote
  #8  
Old 20th May 2008, 23:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Is it really ClamAV and SpamAssassin that are eating up your resources? You can run
Code:
top
to find out.
__________________
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 26th May 2008, 20:11
zarrelli zarrelli is offline
Member
 
Join Date: Jul 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Mem: 2061840k total, 2047520k used, 14320k free, 152k buffers
Swap: 2104504k total, 2104504k used, 0k free, 3620k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10144 root 20 0 4000m 1.9g 360 R 9.1 94.8 0:19.81 spamd


Well, it seems it's spamd. It is started as I launch /etc/init.d/spamassassin.

It goes even higher with cpu utilization, but it's difficult to snapshot cause the server freezes after a while.
Reply With Quote
  #10  
Old 27th May 2008, 18:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
 
Default

Are there any errors related to spamassassin 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
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
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 19:51
saving cpu with spamassassin lrider Server Operation 3 12th June 2008 14:51
ISPconfig 2.2.21 Load Averange Very High mmiyamoto General 3 6th March 2008 13:13
Question on Clamscan and SpamAssassin AZMel Installation/Configuration 3 11th January 2007 19:56
Server sometimes (1 or 2 hrs) down :/ edge Server Operation 25 31st July 2006 13:44


All times are GMT +2. The time now is 18:49.


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