About Us  |  Blog  |  Hosting Partners  |  Legal  |  Portal Login

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> HOWTO fix looping spamd (spamassassin)
madsere
post Oct 12 2004, 07:48 PM
Post #1


SuperGeek
****

Group: Super Moderators
Posts: 2,765
Joined: 22-August 01
Member No.: 148



Many users are reporting that spamd occationally goes into a 100% cpu usage loop which doesn't stop until completely killed and restarted. The problem is mainly reported with Ensim, but since the SpamAssassin (SA) version used by Ensim is generic it could probably happen for other platforms as well.

It appears this is caused by SA's Bayes subsystem, and by disabling Bayes we have found the problem so far to have disappeared. The Bayes subsystem is just one of a range of checks applied by SA so while there is a small loss of functionality it's minor and at least the rest works.

Howto fix the problem:

1) Edit /etc/mail/spamassassin/local.cf using vi or pico or whatever editor you prefer.
2) Add one line:
use_bayes 0
3) Exit and save
4) Stop SA (service spamassassin stop)
5) Kill any looping jobs (killall -9 spamd)
6) Start SA (service spamassassin start)


--------------------
Rene @ Webscorpion.com

Web Hosting | Resellers | Servers | Server management -> Webscorpion
Outsource your web design requirements to IT Mechanics
Go to the top of the page
 
+Quote Post
EOC_Jason
post Oct 13 2004, 08:40 PM
Post #2


SuperGeek
****

Group: Members
Posts: 1,141
Joined: 22-October 01
Member No.: 481



An issue that could be causing it is you need to rebuild your bayes DB every so often... So you might want to setup a nightly cronjob if you aren't using it in conjunction with a more recent version of MailScanner.

Also if you upgrade you need to rebuild it, and depending on which version some are not upgradeable I think.

The Bayes analysis really adds a lot of functionality for me, You can lower the required spam/ham #'s to about 20 to get your bayes kickstarted.


--------------------
Go to the top of the page
 
+Quote Post
Mirek-FWH
post Nov 2 2004, 09:50 PM
Post #3


Fellow
**

Group: Members
Posts: 105
Joined: 2-December 02
Member No.: 5,097



we tracked our problem down to a full e-mail account, heh (the one the site admin set for catch-all) adding more space to the account limit seems to have fixed it
Go to the top of the page
 
+Quote Post
acider
post Nov 21 2006, 09:16 AM
Post #4


Fellow
**

Group: Members
Posts: 198
Joined: 20-December 05
Member No.: 19,209



hi, i face a similar problem. when i run top, i can see user #22576 using up 99% cpu.

how do i trace #22576? how do i know this user# belongs to which actual email user?

pls help icon_smile.gif
Go to the top of the page
 
+Quote Post
Netino
post Nov 23 2006, 05:47 PM
Post #5


Computer Chip
***

Group: Members
Posts: 461
Joined: 13-November 02
Member No.: 4,856



Try to use greylisting to reduce mail checked by spamd.

Regards,
Netino
Go to the top of the page
 
+Quote Post
cian
post Dec 1 2006, 07:03 PM
Post #6


Fellow
**

Group: Members
Posts: 123
Joined: 7-December 03
Member No.: 11,589



Happened to me too on a new Ensim 10.1 from EV1. Disabling Bayes stopped it.

Mail load at the door was about 2 per second.

Mail load for Spamd was only about 1 a minute - Not a lot of work, as I was blocking using dnsb sorbs and more, VERY aggressively rejecting hardcore spam before it even got to mailscanner and sendmail.

New server, so I can;t see bayes needign a rebuild being the problem.

Killing bayes took my load from 6 to about 0.1 !

Cian
Go to the top of the page
 
+Quote Post
X-Man
post Dec 21 2006, 05:16 AM
Post #7


Newbie


Group: Members
Posts: 12
Joined: 22-June 05
Member No.: 17,351



sorry wrong number
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd November 2009 - 03:56 AM
 

Dedicated Servers

Managed Hosting

Colocation

Business Solutions

Why The Planet?

Contact Us