How to selectively activate spamd in some accounts?

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,287
64
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hi there people.

I love Spamfighter cause it does a very good work filtering spam, but since we determined the high level of resources consumed by spamd was responsible for the "can't fork" memory failures I've decided to turn it off to leverage server performance, leaving filtering on Exim ACLs' hands, which are doing well their work. Although, 1/10 domains are getting lots of spam that cannot be filtered by Exim.

My question is about how to activate SpamAssassin for only those accounts that really need it, and without compromising memory consumption.

I'm using WHM 11.15.0 cPanel 11.18.3-S21703
CENTOS Enterprise 4.6 i686 on virtuozzo - WHM X v3.1.0


Please review these steps in order to advice me if anything could not work as I expect:
1) Activated spamd at Service Manager
2) Activated option: "SpamAssassin Spam Filter" at Tweak Settings > Mail
3) Activated option: "SpamAssassinTM: Reject mail with a spam score is greater then 20.0 at SMTP time." at Exim Configuration Editor > ACL Options
4) DEACTIVATED option: "SpamAssassinTM: Enable for all users without the option for users to shut off per account." at Exim Configuration Editor > SpamAssassinTM Options
5) Login to the spammed domain's cPanel and Activated the SpamAssassin usage.

Will this prevent Spamassassin from filtering spam in the domains where it's still deactivated?
Will this proccess now consume less memory than when protecting all the domains?
Anybody has more clues about it?
 

verdon

Well-Known Member
Nov 1, 2003
919
12
168
Northern Ontario, Canada
cPanel Access Level
Root Administrator
Hi Kent

configserver's solution still uses spamassasin, as well as a few other things. It also provides a nice interface for more granular control over spamassasin on a user by user basis. It's the only means I am aware of.

Good luck :)
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,287
64
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Yep, but i am actually near from getting a high memory consumption. That's another reason why ain't feeling empathy to add more addons to my server.
The method I described in my first post it is working but the solely effect of activating SpamAssassin even for one domain, makes it get the memory usage at 90%. (I am working with 1 GB RAM).
I don't really know if there is any way to fine tuning spamd to make it work more smoothly.