Filtering spam for multiple users

I have an RHES3 system with sendmail 8.12.11-4 and qpopper4.0.5.  I can't upgrade to the latest version of sendmail because I depend on rpm updates, and when I've tried installing the latest version of programs from source I've run into problems that are too hard to fix.  Given that my sendmail config already blocks RBL sites, my junk mail consists of mail from mostly legit-looking addresses (all of them different, so I can't block them with sendmail's access database), so I tried writing recipes/filters to block unwanted commercials in procmail, which is the school solution to this problem, along with spamassassin.  The procmail filters work for my root account, however I'm looking to block spam for all the accounts I host on my server with one set of rules, and procmail doesn't lend itself to that.  I found a page that talks about invoking a procmail ruleset directly from sendmail at http://www.professional.org/procmail/mailer.html, however I'm warned that any mail addressed to my server may disappear if I screw this up, so I'm looking for more advice before proceeding.

Fyi, I have a backup Debian server with Postfix on it and a mail account for a user that's aliased to root, so I could try working on that one first, but I'd have to replace Postfix with Sendmail to get a more approximate demo, and the last time I tried working with sendmail on Debian (ubuntu), there were significant differences between that version and the one I have on my Redhat system, so I'm not sure how helpful it would be.  I'd have to be careful about version numbers of course, but I was pretty sure I installed the same version on Ubuntu that I have working on my RHES.  
klukacAsked:
Who is Participating?
 
RomModCommented:
Question closed - 500 points refunded.

Best regards,
RomMod
Experts Exchange
Community Support Moderator
0
 
xDamoxCommented:
Hi,

Have alook at this:

http://fedoranews.org/contributors/andrew_bassett/mailscanner/

I know it's Fedora core 1 but it should work fine on RHES3
0
 
klukacAuthor Commented:
Thanks very much! These instructions, however, require me to install lots of programs and packages, and the more stuff you have to install, the more things can go wrong.  Here's how far I got:
Installed clamav (the mailscanner Quick Install instructions say to do that first).  That required me to install zlib-devel and to create a clamav user - so far, so good.
To install mailscanner, I need a bunch of packages, and ./install.sh says I don't have one of them, which turns out to be gcc-3.2.2.5 (instead I have compat-gcc-7.3-2.96.128).  So I tried installing gcc, which is obviously older than the compat-gcc version I have, however it won't work because gcc doesn't recognize cpp-3.2.3-54 because it's looking for cpp-3.2.2-5, an older version.  I would prefer to force mailscanner to recognize compat-gcc rather than install gcc and force it to recognize cpp-3.2.3-54, however I don't know how to do force rpms to install except with nodeps, which is a bad idea.  So what next?
0
 
klukacAuthor Commented:
I managed to get procmail do the job for me - procmail filters can be configured to support any number of users if the procmailrc file is placed in /etc, and the .forward file (which I have in /var/spool/mail) lists all the users concerned.  My current concern is with procmail recipe(s), but that's another question, so pls close this one and I'll open another.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.